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 | |||||
Cezary Zwolak | a4e6761 | 2021-02-18 13:16:16 +0100 | [diff] [blame] | 27 | struct SensorMetadata |
28 | { | ||||
29 | static std::string str() | ||||
30 | { | ||||
31 | return "sensorMetadata"; | ||||
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 | |||||
43 | struct MetricMetadata | ||||
44 | { | ||||
45 | static std::string str() | ||||
46 | { | ||||
47 | return "metricMetadata"; | ||||
48 | } | ||||
49 | }; | ||||
50 | |||||
51 | struct Service | ||||
52 | { | ||||
53 | static std::string str() | ||||
54 | { | ||||
55 | return "service"; | ||||
56 | } | ||||
57 | }; | ||||
58 | |||||
59 | struct Path | ||||
60 | { | ||||
61 | static std::string str() | ||||
62 | { | ||||
63 | return "path"; | ||||
64 | } | ||||
65 | }; | ||||
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 66 | |
Cezary Zwolak | a4e6761 | 2021-02-18 13:16:16 +0100 | [diff] [blame] | 67 | struct Type |
68 | { | ||||
69 | static std::string str() | ||||
70 | { | ||||
71 | return "type"; | ||||
72 | } | ||||
73 | }; | ||||
74 | |||||
75 | struct DwellTime | ||||
76 | { | ||||
77 | static std::string str() | ||||
78 | { | ||||
79 | return "dwellTime"; | ||||
80 | } | ||||
81 | }; | ||||
82 | |||||
83 | struct Direction | ||||
84 | { | ||||
85 | static std::string str() | ||||
86 | { | ||||
87 | return "direction"; | ||||
88 | } | ||||
89 | }; | ||||
90 | |||||
91 | struct ThresholdValue | ||||
92 | { | ||||
93 | static std::string str() | ||||
94 | { | ||||
95 | return "thresholdValue"; | ||||
96 | } | ||||
97 | }; | ||||
98 | |||||
99 | struct UserId | ||||
100 | { | ||||
101 | static std::string str() | ||||
102 | { | ||||
103 | return "userId"; | ||||
104 | } | ||||
105 | }; | ||||
106 | |||||
107 | struct Severity | ||||
108 | { | ||||
109 | static std::string str() | ||||
110 | { | ||||
111 | return "severity"; | ||||
112 | } | ||||
113 | }; | ||||
114 | |||||
Wludzik, Jozef | e236279 | 2020-10-27 17:23:55 +0100 | [diff] [blame] | 115 | } // namespace tstring |
116 | } // namespace utils |