Commit b408e0d
committed
Remove
This commit removes the `SensorMetricSample` message in favour of using
`MetricSample` for sensors. The `SensorMetricSample` message was
a subset of the `MetricSample` message.
From a design perspective focused on consistency, flexibility, and
minimizing API surface area while handling variations via optional
fields (which is idiomatic in Protobuf3), there's a strong argument that
`SensorMetricSample` is redundant and potentially confusing, and that
having only `MetricSample` is a cleaner design.
Signed-off-by: Tiyash Basu <[email protected]>SensorMetricSample in favour of MetricSample
1 parent 3840e36 commit b408e0d
File tree
2 files changed
+7
-14
lines changed- proto/frequenz/api/common/v1/microgrid/sensors
2 files changed
+7
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
Lines changed: 6 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | 210 | | |
223 | 211 | | |
224 | 212 | | |
| |||
233 | 221 | | |
234 | 222 | | |
235 | 223 | | |
| 224 | + | |
| 225 | + | |
236 | 226 | | |
237 | 227 | | |
238 | 228 | | |
239 | 229 | | |
240 | 230 | | |
| 231 | + | |
| 232 | + | |
241 | 233 | | |
242 | 234 | | |
243 | 235 | | |
| |||
254 | 246 | | |
255 | 247 | | |
256 | 248 | | |
257 | | - | |
| 249 | + | |
258 | 250 | | |
259 | 251 | | |
260 | 252 | | |
| |||
0 commit comments