Commit e821150
committed
Add warnings to sensor
This commit adds a new field `warnings` to the `SensorState` message in
the `sensors.proto` file. This field is a repeated field of type
`SensorDiagnostic`, which is used to represent warnings for the
microgrid sensor. The `warnings` field is expected to have warnings if
and only if the sensor is reporting warnings. The list will contain
unique members, meaning no warning will exist twice in this list.
This makes the `SensorState` message consistent with respect to
`ElectricalComponentState`.
Signed-off-by: Tiyash Basu <[email protected]>SensorState
1 parent d0e83a9 commit e821150
File tree
2 files changed
+12
-0
lines changed- proto/frequenz/api/common/v1/microgrid/sensors
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
196 | 207 | | |
197 | 208 | | |
198 | 209 | | |
| |||
0 commit comments