xref: /openbmc/telemetry/src/utils/tstring.hpp (revision 493e62eb)
1 #pragma once
2 
3 #include <array>
4 #include <string>
5 
6 namespace utils
7 {
8 namespace tstring
9 {
10 
11 struct Id
12 {
strutils::tstring::Id13     static std::string str()
14     {
15         return "id";
16     }
17 };
18 
19 struct SensorPath
20 {
strutils::tstring::SensorPath21     static std::string str()
22     {
23         return "sensorPath";
24     }
25 };
26 
27 struct Metadata
28 {
strutils::tstring::Metadata29     static std::string str()
30     {
31         return "metadata";
32     }
33 };
34 
35 struct OperationType
36 {
strutils::tstring::OperationType37     static std::string str()
38     {
39         return "operationType";
40     }
41 };
42 
43 struct Service
44 {
strutils::tstring::Service45     static std::string str()
46     {
47         return "service";
48     }
49 };
50 
51 struct Path
52 {
strutils::tstring::Path53     static std::string str()
54     {
55         return "path";
56     }
57 };
58 
59 struct Type
60 {
strutils::tstring::Type61     static std::string str()
62     {
63         return "type";
64     }
65 };
66 
67 struct DwellTime
68 {
strutils::tstring::DwellTime69     static std::string str()
70     {
71         return "dwellTime";
72     }
73 };
74 
75 struct Direction
76 {
strutils::tstring::Direction77     static std::string str()
78     {
79         return "direction";
80     }
81 };
82 
83 struct ThresholdValue
84 {
strutils::tstring::ThresholdValue85     static std::string str()
86     {
87         return "thresholdValue";
88     }
89 };
90 
91 struct UserId
92 {
strutils::tstring::UserId93     static std::string str()
94     {
95         return "userId";
96     }
97 };
98 
99 struct Severity
100 {
strutils::tstring::Severity101     static std::string str()
102     {
103         return "severity";
104     }
105 };
106 
107 struct CollectionTimeScope
108 {
strutils::tstring::CollectionTimeScope109     static std::string str()
110     {
111         return "collectionTimeScope";
112     }
113 };
114 
115 struct CollectionDuration
116 {
strutils::tstring::CollectionDuration117     static std::string str()
118     {
119         return "collectionDuration";
120     }
121 };
122 
123 struct MetricProperties
124 {
strutils::tstring::MetricProperties125     static std::string str()
126     {
127         return "MetricProperties";
128     }
129 };
130 
131 struct SensorDbusPath
132 {
strutils::tstring::SensorDbusPath133     static std::string str()
134     {
135         return "SensorDbusPath";
136     }
137 };
138 
139 struct SensorRedfishUri
140 {
strutils::tstring::SensorRedfishUri141     static std::string str()
142     {
143         return "SensorRedfishUri";
144     }
145 };
146 
147 struct MetricId
148 {
strutils::tstring::MetricId149     static std::string str()
150     {
151         return "MetricId";
152     }
153 };
154 
155 struct MetricProperty
156 {
strutils::tstring::MetricProperty157     static std::string str()
158     {
159         return "MetricProperty";
160     }
161 };
162 
163 struct MetricValue
164 {
strutils::tstring::MetricValue165     static std::string str()
166     {
167         return "MetricValue";
168     }
169 };
170 
171 struct Timestamp
172 {
strutils::tstring::Timestamp173     static std::string str()
174     {
175         return "Timestamp";
176     }
177 };
178 
179 struct Readings
180 {
strutils::tstring::Readings181     static std::string str()
182     {
183         return "Readings";
184     }
185 };
186 
187 } // namespace tstring
188 } // namespace utils
189