VOL-3448: Introduce returning error for GetHWComponentInfo , GetMetric , GetSoftwareVersion APIs
Change-Id: Ia592bcc642ad5aa3b3891b8bdd1f9cf21bd51da2
diff --git a/protos/dmi/hw_metrics_mgmt_service.proto b/protos/dmi/hw_metrics_mgmt_service.proto
index a30199f..adec0d3 100644
--- a/protos/dmi/hw_metrics_mgmt_service.proto
+++ b/protos/dmi/hw_metrics_mgmt_service.proto
@@ -106,6 +106,12 @@
MetricNames metric_id = 2;
}
+message GetMetricResponse {
+ Status status = 1;
+ Reason reason = 2;
+ Metric metric = 3;
+}
+
service NativeMetricsManagementService {
// List the supported metrics for the passed device.
@@ -121,5 +127,5 @@
rpc UpdateMetricsConfiguration(MetricsConfigurationRequest) returns(MetricsConfigurationResponse);
// Get the instantenous value of a metric
- rpc GetMetric(GetMetricRequest) returns(Metric);
+ rpc GetMetric(GetMetricRequest) returns(GetMetricResponse);
}