remove default values from in code json config
Remove the properties with default values from in code config.
Change-Id: I86f06ea60c0cdfef11594bc3825bc34f73ee2d02
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/health_metric_config.cpp b/health_metric_config.cpp
index 1c91033..9370ada 100644
--- a/health_metric_config.cpp
+++ b/health_metric_config.cpp
@@ -195,8 +195,6 @@
json defaultHealthMetricConfig = R"({
"CPU": {
- "Window_size": 120,
- "Hysteresis": 1.0,
"Threshold": {
"Critical_Upper": {
"Value": 90.0,
@@ -211,20 +209,12 @@
}
},
"CPU_User": {
- "Window_size": 120,
- "Hysteresis": 1.0
},
"CPU_Kernel": {
- "Window_size": 120,
- "Hysteresis": 1.0
},
"Memory": {
- "Window_size": 120,
- "Hysteresis": 1.0
},
"Memory_Available": {
- "Window_size": 120,
- "Hysteresis": 1.0,
"Threshold": {
"Critical_Lower": {
"Value": 15.0,
@@ -234,12 +224,8 @@
}
},
"Memory_Free": {
- "Window_size": 120,
- "Hysteresis": 1.0
},
"Memory_Shared": {
- "Window_size": 120,
- "Hysteresis": 1.0,
"Threshold": {
"Critical_Upper": {
"Value": 85.0,
@@ -249,13 +235,9 @@
}
},
"Memory_Buffered_And_Cached": {
- "Window_size": 120,
- "Hysteresis": 1.0
},
"Storage_RW": {
"Path": "/run/initramfs/rw",
- "Window_size": 120,
- "Hysteresis": 1.0,
"Threshold": {
"Critical_Lower": {
"Value": 15.0,
@@ -266,8 +248,6 @@
},
"Storage_TMP": {
"Path": "/tmp",
- "Window_size": 120,
- "Hysteresis": 1.0,
"Threshold": {
"Critical_Lower": {
"Value": 15.0,