VOL-3741: Create per RPC Error Reason Enumeration

Change-Id: I4488a169d6cd1bdeff9cba898a1107dc1dbda928
diff --git a/protos/dmi/hw_metrics_mgmt_service.proto b/protos/dmi/hw_metrics_mgmt_service.proto
index adec0d3..2fc8078 100644
--- a/protos/dmi/hw_metrics_mgmt_service.proto
+++ b/protos/dmi/hw_metrics_mgmt_service.proto
@@ -67,6 +67,11 @@
 }

 

 message ListMetricsResponse {

+    enum Reason {

+        UNDEFINED_REASON = 0;

+        UNKNOWN_DEVICE = 1;

+        INTERNAL_ERROR = 2;

+    }

     Status status = 1;

     Reason reason = 2;

     MetricsConfig metrics = 3;

@@ -81,6 +86,13 @@
 }

 

 message MetricsConfigurationResponse {

+    enum Reason {

+        UNDEFINED_REASON = 0;

+        UNKNOWN_DEVICE = 1;

+        INTERNAL_ERROR = 2;

+        POLL_INTERVAL_UNSUPPORTED = 3;

+        INVALID_METRIC = 4;

+    }

     Status status = 1;

     Reason reason = 2;

 }

@@ -107,6 +119,13 @@
 }

 

 message GetMetricResponse {

+    enum Reason {

+        UNDEFINED_REASON = 0;

+        UNKNOWN_DEVICE = 1;

+        UNKNOWN_COMPONENT = 2;

+        INTERNAL_ERROR = 3;

+        INVALID_METRIC = 4;

+    }

     Status status = 1;

     Reason reason = 2;

     Metric metric = 3;