health_metric_config: add storage tmp
Add the Storage_TMP to metric json config.
Change-Id: Ie32a71c936b974ebaaeb625f7018d4b875f831a2
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/health_metric_config.cpp b/health_metric_config.cpp
index 2c0c78c..be8ebb7 100644
--- a/health_metric_config.cpp
+++ b/health_metric_config.cpp
@@ -43,7 +43,8 @@
{"Memory_Available", SubType::memoryAvailable},
{"Memory_Shared", SubType::memoryShared},
{"Memory_Buffered_And_Cached", SubType::memoryBufferedAndCached},
- {"Storage_RW", SubType::storageReadWrite}};
+ {"Storage_RW", SubType::storageReadWrite},
+ {"Storage_TMP", SubType::storageReadWrite}};
/** Deserialize a Threshold from JSON. */
void from_json(const json& j, Threshold& self)
@@ -247,6 +248,18 @@
"Target": ""
}
}
+ },
+ "Storage_TMP": {
+ "Path": "/tmp",
+ "Frequency": 1,
+ "Window_size": 120,
+ "Threshold": {
+ "Critical": {
+ "Value": 85.0,
+ "Log": true,
+ "Target": ""
+ }
+ }
}
})"_json;