health metric config: add missing threshold level
Add the missing threshold levels to health metric config.
Change-Id: Ie988e1f1ac53a6a562e38cf6c61c1669b9269d7d
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/health_metric_config.cpp b/health_metric_config.cpp
index e5312a0..144b49f 100644
--- a/health_metric_config.cpp
+++ b/health_metric_config.cpp
@@ -36,6 +36,9 @@
static const auto validThresholdTypes =
std::unordered_map<std::string, ThresholdIntf::Type>{
+ {"HardShutdown", ThresholdIntf::Type::HardShutdown},
+ {"SoftShutdown", ThresholdIntf::Type::SoftShutdown},
+ {"PerformanceLoss", ThresholdIntf::Type::PerformanceLoss},
{"Critical", ThresholdIntf::Type::Critical},
{"Warning", ThresholdIntf::Type::Warning}};