phosphor-health-monitor: add reset interface
- Add the reset interface for resetting the persistent counter, such as
reboot count.
- The intention of this change corresponds to ResetMetrics in Redfish
ManagerDiagnosticData -
https://redfish.dmtf.org/schemas/v1/ManagerDiagnosticData.v1_2_1.json
Change-Id: I31f2efac44f996afb2e0575585d3414196412dfd
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/yaml/xyz/openbmc_project/Metrics/Reset.interface.yaml b/yaml/xyz/openbmc_project/Metrics/Reset.interface.yaml
new file mode 100644
index 0000000..efb3b54
--- /dev/null
+++ b/yaml/xyz/openbmc_project/Metrics/Reset.interface.yaml
@@ -0,0 +1,7 @@
+description: >
+ This interface allows to reset persistent metric counters.
+
+methods:
+ - name: Reset
+ description: >
+ Resets the persistent count for the metric.