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/gen/xyz/openbmc_project/Metrics/Reset/meson.build b/gen/xyz/openbmc_project/Metrics/Reset/meson.build
new file mode 100644
index 0000000..529390d
--- /dev/null
+++ b/gen/xyz/openbmc_project/Metrics/Reset/meson.build
@@ -0,0 +1,15 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'xyz/openbmc_project/Metrics/Reset__cpp'.underscorify(),
+ input: [ '../../../../../yaml/xyz/openbmc_project/Metrics/Reset.interface.yaml', ],
+ output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'aserver.hpp', 'client.hpp', ],
+ depend_files: sdbusplusplus_depfiles,
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'cpp',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.current_source_dir() / '../../../../../yaml',
+ 'xyz/openbmc_project/Metrics/Reset',
+ ],
+)
+
diff --git a/gen/xyz/openbmc_project/Metrics/meson.build b/gen/xyz/openbmc_project/Metrics/meson.build
index 1dd738e..b780e50 100644
--- a/gen/xyz/openbmc_project/Metrics/meson.build
+++ b/gen/xyz/openbmc_project/Metrics/meson.build
@@ -1,4 +1,19 @@
# Generated file; do not modify.
+subdir('Reset')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Metrics/Reset__markdown'.underscorify(),
+ input: [ '../../../../yaml/xyz/openbmc_project/Metrics/Reset.interface.yaml', ],
+ output: [ 'Reset.md' ],
+ depend_files: sdbusplusplus_depfiles,
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.current_source_dir() / '../../../../yaml',
+ 'xyz/openbmc_project/Metrics/Reset',
+ ],
+)
+
subdir('Value')
generated_others += custom_target(
'xyz/openbmc_project/Metrics/Value__markdown'.underscorify(),