@@ -173,9 +173,9 @@ message SensorDiagnostic {
173173 // A standardized error code representing the category of the issue.
174174 SensorDiagnosticCode diagnostic_code = 1 ;
175175
176- // Optional vendor-provided error code for the error, for vendor-specific
176+ // Optional vendor-provided diagnostic code for the error, for vendor-specific
177177 // insights or more granular diagnostics.
178- optional uint32 vendor_error_code = 2 ;
178+ optional uint32 vendor_diagnostic_code = 2 ;
179179
180180 // Optional human-readable message providing additional context.
181181 string message = 3 ;
@@ -189,30 +189,35 @@ message SensorState {
189189 // List of states of the microgrid sensor.
190190 //
191191 // !!! note
192- // The list will contain unique members. No state will exist twice in
193- // this list.
192+ // This list is treated as a set, and therefore its members will be unique,
193+ // i.e., no state will exist twice in this list.
194+ //
195+ // !!! note
196+ // If the state is `SENSOR_STATE_CODE_ERROR`, the sensor is in an error
197+ // state. In such cases, the `errors` field will be populated with the
198+ // list of errors.
194199 repeated SensorStateCode states = 2 ;
195200
196201 // List of warnings for the microgrid sensor.
197202 //
198203 // !!! note
199- // This list is expected to have warnings if and only if the sensor is
200- // reporting warnings .
204+ // This list is treated as a set, and therefore its members will be unique,
205+ // i.e., no state will exist twice in this list .
201206 //
202207 // !!! note
203- // The list will contain unique members. No warning will exist twice in
204- // this list .
208+ // This list is expected to have warnings if and only if the sensor is
209+ // reporting warnings .
205210 repeated SensorDiagnostic warnings = 3 ;
206211
207212 // List of errors for the microgrid sensor.
208213 //
209214 // !!! note
210- // This list is expected to have errors if and only if the sensor is in
211- // an error state.
215+ // This list is treated as a set, and therefore its members will be unique,
216+ // i.e., no state will exist twice in this list .
212217 //
213218 // !!! note
214- // The list will contain unique members. No error will exist twice in
215- // this list .
219+ // This list is expected to have errors if and only if the sensor is in
220+ // an error state .
216221 repeated SensorDiagnostic errors = 4 ;
217222}
218223
0 commit comments