Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 1 | #pragma once |
2 | |||||
3 | #include <array> | ||||
4 | #include <string> | ||||
5 | |||||
6 | namespace utils | ||||
7 | { | ||||
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 8 | namespace tstring |
9 | { | ||||
10 | |||||
Krzysztof Grobelny | d223819 | 2020-12-02 09:27:28 +0000 | [diff] [blame] | 11 | struct Id |
12 | { | ||||
13 | static std::string str() | ||||
14 | { | ||||
15 | return "id"; | ||||
16 | } | ||||
17 | }; | ||||
18 | |||||
Krzysztof Grobelny | e8fc575 | 2021-02-05 14:30:45 +0000 | [diff] [blame] | 19 | struct SensorPath |
Krzysztof Grobelny | d223819 | 2020-12-02 09:27:28 +0000 | [diff] [blame] | 20 | { |
21 | static std::string str() | ||||
22 | { | ||||
Krzysztof Grobelny | e8fc575 | 2021-02-05 14:30:45 +0000 | [diff] [blame] | 23 | return "sensorPath"; |
Krzysztof Grobelny | d223819 | 2020-12-02 09:27:28 +0000 | [diff] [blame] | 24 | } |
25 | }; | ||||
26 | |||||
Krzysztof Grobelny | b8cc78d | 2021-11-29 15:54:53 +0100 | [diff] [blame] | 27 | struct Metadata |
Cezary Zwolak | a4e6761 | 2021-02-18 13:16:16 +0100 | [diff] [blame] | 28 | { |
29 | static std::string str() | ||||
30 | { | ||||
Krzysztof Grobelny | b8cc78d | 2021-11-29 15:54:53 +0100 | [diff] [blame] | 31 | return "metadata"; |
Cezary Zwolak | a4e6761 | 2021-02-18 13:16:16 +0100 | [diff] [blame] | 32 | } |
33 | }; | ||||
34 | |||||
Krzysztof Grobelny | d223819 | 2020-12-02 09:27:28 +0000 | [diff] [blame] | 35 | struct OperationType |
36 | { | ||||
37 | static std::string str() | ||||
38 | { | ||||
39 | return "operationType"; | ||||
40 | } | ||||
41 | }; | ||||
42 | |||||
Krzysztof Grobelny | d223819 | 2020-12-02 09:27:28 +0000 | [diff] [blame] | 43 | struct Service |
44 | { | ||||
45 | static std::string str() | ||||
46 | { | ||||
47 | return "service"; | ||||
48 | } | ||||
49 | }; | ||||
50 | |||||
51 | struct Path | ||||
52 | { | ||||
53 | static std::string str() | ||||
54 | { | ||||
55 | return "path"; | ||||
56 | } | ||||
57 | }; | ||||
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 58 | |
Cezary Zwolak | a4e6761 | 2021-02-18 13:16:16 +0100 | [diff] [blame] | 59 | struct Type |
60 | { | ||||
61 | static std::string str() | ||||
62 | { | ||||
63 | return "type"; | ||||
64 | } | ||||
65 | }; | ||||
66 | |||||
67 | struct DwellTime | ||||
68 | { | ||||
69 | static std::string str() | ||||
70 | { | ||||
71 | return "dwellTime"; | ||||
72 | } | ||||
73 | }; | ||||
74 | |||||
75 | struct Direction | ||||
76 | { | ||||
77 | static std::string str() | ||||
78 | { | ||||
79 | return "direction"; | ||||
80 | } | ||||
81 | }; | ||||
82 | |||||
83 | struct ThresholdValue | ||||
84 | { | ||||
85 | static std::string str() | ||||
86 | { | ||||
87 | return "thresholdValue"; | ||||
88 | } | ||||
89 | }; | ||||
90 | |||||
91 | struct UserId | ||||
92 | { | ||||
93 | static std::string str() | ||||
94 | { | ||||
95 | return "userId"; | ||||
96 | } | ||||
97 | }; | ||||
98 | |||||
99 | struct Severity | ||||
100 | { | ||||
101 | static std::string str() | ||||
102 | { | ||||
103 | return "severity"; | ||||
104 | } | ||||
105 | }; | ||||
106 | |||||
Krzysztof Grobelny | dcc4e19 | 2021-03-08 09:09:34 +0000 | [diff] [blame] | 107 | struct CollectionTimeScope |
108 | { | ||||
109 | static std::string str() | ||||
110 | { | ||||
111 | return "collectionTimeScope"; | ||||
112 | } | ||||
113 | }; | ||||
114 | |||||
115 | struct CollectionDuration | ||||
116 | { | ||||
117 | static std::string str() | ||||
118 | { | ||||
119 | return "collectionDuration"; | ||||
120 | } | ||||
121 | }; | ||||
122 | |||||
Szymon Dompke | 3a61702 | 2021-07-19 18:23:02 +0200 | [diff] [blame] | 123 | struct MetricProperties |
124 | { | ||||
125 | static std::string str() | ||||
126 | { | ||||
127 | return "MetricProperties"; | ||||
128 | } | ||||
129 | }; | ||||
130 | |||||
131 | struct SensorDbusPath | ||||
132 | { | ||||
133 | static std::string str() | ||||
134 | { | ||||
135 | return "SensorDbusPath"; | ||||
136 | } | ||||
137 | }; | ||||
138 | |||||
139 | struct SensorRedfishUri | ||||
140 | { | ||||
141 | static std::string str() | ||||
142 | { | ||||
143 | return "SensorRedfishUri"; | ||||
144 | } | ||||
145 | }; | ||||
146 | |||||
Krzysztof Grobelny | 493e62e | 2022-02-14 10:55:50 +0100 | [diff] [blame] | 147 | struct MetricId |
148 | { | ||||
149 | static std::string str() | ||||
150 | { | ||||
151 | return "MetricId"; | ||||
152 | } | ||||
153 | }; | ||||
154 | |||||
155 | struct MetricProperty | ||||
156 | { | ||||
157 | static std::string str() | ||||
158 | { | ||||
159 | return "MetricProperty"; | ||||
160 | } | ||||
161 | }; | ||||
162 | |||||
163 | struct MetricValue | ||||
164 | { | ||||
165 | static std::string str() | ||||
166 | { | ||||
167 | return "MetricValue"; | ||||
168 | } | ||||
169 | }; | ||||
170 | |||||
171 | struct Timestamp | ||||
172 | { | ||||
173 | static std::string str() | ||||
174 | { | ||||
175 | return "Timestamp"; | ||||
176 | } | ||||
177 | }; | ||||
178 | |||||
179 | struct Readings | ||||
180 | { | ||||
181 | static std::string str() | ||||
182 | { | ||||
183 | return "Readings"; | ||||
184 | } | ||||
185 | }; | ||||
186 | |||||
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 187 | } // namespace tstring |
188 | } // namespace utils |