Skip to content

Commit e7da783

Browse files
Change vendor diagnostic codes to string type
Signed-off-by: Tiyash Basu <[email protected]>
1 parent d3016f7 commit e7da783

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

proto/frequenz/api/common/v1/microgrid/communication_components/communication_components.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ message CommunicationComponent {
145145
// ```json
146146
// {
147147
// "diagnosticCode": "COMMUNICATION_COMPONENT_DIAGNOSTIC_CODE_CONFIGURATION_ERR",
148-
// "vendorDiagnosticCode": 1002,
148+
// "vendorDiagnosticCode": "ERR_1002",
149149
// "message": "VLAN mismatch detected on port 3"
150150
// }
151151
// ```
@@ -160,7 +160,7 @@ message CommunicationComponentDiagnostic {
160160
CommunicationComponentDiagnosticCode diagnostic_code = 1;
161161

162162
// Optional vendor-provided code for more granular diagnostics.
163-
optional uint32 vendor_diagnostic_code = 2;
163+
optional string vendor_diagnostic_code = 2;
164164

165165
// Human-readable message providing additional context.
166166
string message = 3;

proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ message ElectricalComponentConnection {
464464
// {
465465
// "diagnosticCode":
466466
// "ELECTRICAL_COMPONENT_DIAGNOSTIC_CODE_OVERTEMPERATURE",
467-
// "vendorDiagnosticCode": 2003,
467+
// "vendorDiagnosticCode": "2003",
468468
// "message": "Temperature sensor 3 reported 61.5°C (limit: 60°C)"
469469
// }
470470
// ```
@@ -485,7 +485,7 @@ message ElectricalComponentDiagnostic {
485485

486486
// Optional vendor-provided error code for the error, for vendor-specific
487487
// insights or more granular diagnostics.
488-
optional uint32 vendor_diagnostic_code = 2;
488+
optional string vendor_diagnostic_code = 2;
489489

490490
// Optional human-readable message providing additional context.
491491
string message = 3;

proto/frequenz/api/common/v1/microgrid/sensors/sensors.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ message Sensor {
7676
// {
7777
// "diagnosticCode":
7878
// "SENSOR_DIAGNOSTIC_CODE_INTERNAL",
79-
// "vendorErrorCode": 2003,
79+
// "vendorErrorCode": "2003",
8080
// "message": "Temperature sensor 3 reported 61.5°C (limit: 60°C)"
8181
// }
8282
// ```
@@ -91,7 +91,7 @@ message SensorDiagnostic {
9191

9292
// Optional vendor-provided diagnostic code for the error, for vendor-specific
9393
// insights or more granular diagnostics.
94-
optional uint32 vendor_diagnostic_code = 2;
94+
optional string vendor_diagnostic_code = 2;
9595

9696
// Optional human-readable message providing additional context.
9797
string message = 3;

0 commit comments

Comments
 (0)