configurations: harma: update sensors threshold
Update the threshold value. The previous value was
temporary and was referenced from other projects.
Test plan:
1. check sensor with updated values.
2. check sensor with added values.
Testing:
$ curl ** https://**/power_MB_E1S1_P12V_PWR_W
{
"@odata.id": "/**/power_MB_E1S1_P12V_PWR_W",
"@odata.type": "#Sensor.v1_2_0.Sensor",
"Id": "power_MB_E1S1_P12V_PWR_W",
"Name": "MB E1S1 P12V PWR W",
"Reading": 4.10625,
"ReadingRangeMax": 3000.0,
"ReadingRangeMin": 0.0,
"ReadingType": "Power",
"ReadingUnits": "W",
"Status": {
"Health": "OK",
"State": "Enabled"
},
"Thresholds": {
"UpperCritical": {
"Reading": 25.0
}
}
}
$ curl ** https://**/temperature_PTTV_THRMCUP_HBM3_TEMP_C
{
"@odata.id": "/**/temperature_PTTV_THRMCUP_HBM3_TEMP_C",
"@odata.type": "#Sensor.v1_2_0.Sensor",
"Id": "temperature_PTTV_THRMCUP_HBM3_TEMP_C",
"Name": "PTTV THRMCUP HBM3 TEMP C",
"Reading": 27.1875,
"ReadingRangeMax": 127.0,
"ReadingRangeMin": -128.0,
"ReadingType": "Temperature",
"ReadingUnits": "Cel",
"Status": {
"Health": "OK",
"State": "Enabled"
},
"Thresholds": {
"UpperCritical": {
"Reading": 100.0
}
}
}
Change-Id: I354729568bfb7ede4e028391d41af9d260f4c053
Signed-off-by: Daniel Hsu <Daniel-Hsu@quantatw.com>
diff --git a/configurations/harma_scm.json b/configurations/harma_scm.json
index c67de86..dc89a0c 100644
--- a/configurations/harma_scm.json
+++ b/configurations/harma_scm.json
@@ -29,13 +29,13 @@
"Direction": "greater than",
"Name": "upper critical",
"Severity": 1,
- "Value": 5.5
+ "Value": 5.25
},
{
"Direction": "less than",
"Name": "lower critical",
"Severity": 1,
- "Value": 4.5
+ "Value": 4.75
}
],
"Type": "ADC"
@@ -49,13 +49,13 @@
"Direction": "greater than",
"Name": "upper critical",
"Severity": 1,
- "Value": 3.53
+ "Value": 3.6
},
{
"Direction": "less than",
"Name": "lower critical",
"Severity": 1,
- "Value": 3.07
+ "Value": 3.0
}
],
"Type": "ADC"
@@ -89,13 +89,13 @@
"Direction": "greater than",
"Name": "upper critical",
"Severity": 1,
- "Value": 1.89
+ "Value": 1.98
},
{
"Direction": "less than",
"Name": "lower critical",
"Severity": 1,
- "Value": 1.71
+ "Value": 1.62
}
],
"Type": "ADC"
@@ -109,13 +109,13 @@
"Direction": "greater than",
"Name": "upper critical",
"Severity": 1,
- "Value": 1.89
+ "Value": 3.6
},
{
"Direction": "less than",
"Name": "lower critical",
"Severity": 1,
- "Value": 1.71
+ "Value": 1.62
}
],
"Type": "ADC"
@@ -148,13 +148,13 @@
"Direction": "greater than",
"Name": "upper critical",
"Severity": 1,
- "Value": 1.08
+ "Value": 1.1
},
{
"Direction": "less than",
"Name": "lower critical",
"Severity": 1,
- "Value": 0.92
+ "Value": 0.9
}
],
"Type": "ADC"
@@ -178,7 +178,7 @@
"Direction": "less than",
"Name": "lower critical",
"Severity": 1,
- "Value": 5
+ "Value": 5.0
}
],
"Type": "TMP75"