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/minerva_pttv.json b/configurations/minerva_pttv.json
index 94e10a8..bc1df6b 100644
--- a/configurations/minerva_pttv.json
+++ b/configurations/minerva_pttv.json
@@ -13,6 +13,92 @@
"in6"
],
"Name": "PTTV_ADC",
+ "Thresholds": [
+ {
+ "Direction": "less than",
+ "Label": "in0",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 20.24
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in0",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 39.05
+ },
+ {
+ "Direction": "less than",
+ "Label": "in1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 20.24
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 39.05
+ },
+ {
+ "Direction": "less than",
+ "Label": "in2",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 16.33
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in2",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 33.24
+ },
+ {
+ "Direction": "less than",
+ "Label": "in3",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 13.09
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in3",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 26.91
+ },
+ {
+ "Direction": "less than",
+ "Label": "in4",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 46.0
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in4",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 55.0
+ },
+ {
+ "Direction": "less than",
+ "Label": "in6",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 3.135
+ },
+ {
+ "Direction": "greater than",
+ "Label": "in6",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 3.465
+ }
+ ],
"Type": "ADC128D818",
"in0_Name": "PTTV_ADC_P46V_0_VOLT_V",
"in0_Scale": 43.233563571,
@@ -38,6 +124,36 @@
"power1"
],
"Name": "PTTV_P48V_VR",
+ "Thresholds": [
+ {
+ "Direction": "less than",
+ "Label": "curr1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0.0
+ },
+ {
+ "Direction": "greater than",
+ "Label": "curr1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 2.3
+ },
+ {
+ "Direction": "less than",
+ "Label": "power1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0.0
+ },
+ {
+ "Direction": "greater than",
+ "Label": "power1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 111.0
+ }
+ ],
"Type": "INA238",
"curr1_Name": "PTTV_P48V_VR_CURR_A",
"in1_Name": "PTTV_P48V_VR_VOLT_V",
@@ -52,6 +168,36 @@
"power1"
],
"Name": "PTTV_P48V",
+ "Thresholds": [
+ {
+ "Direction": "less than",
+ "Label": "curr1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0.0
+ },
+ {
+ "Direction": "greater than",
+ "Label": "curr1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 28.3
+ },
+ {
+ "Direction": "less than",
+ "Label": "power1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 0.0
+ },
+ {
+ "Direction": "greater than",
+ "Label": "power1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 1302.0
+ }
+ ],
"Type": "INA238",
"curr1_Name": "PTTV_P48V_CURR_A",
"in1_Name": "PTTV_P48V_VOLT_V",
@@ -61,60 +207,140 @@
"Address": "0x60",
"Bus": 24,
"Name": "PTTV_THRMCUP_REF_TEMP_C",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 60.0
+ }
+ ],
"Type": "MCP9600"
},
{
"Address": "0x62",
"Bus": 24,
"Name": "PTTV_THRMCUP_IOA_TEMP_C",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 100.0
+ }
+ ],
"Type": "MCP9600"
},
{
"Address": "0x63",
"Bus": 24,
"Name": "PTTV_THRMCUP_IOB_TEMP_C",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 100.0
+ }
+ ],
"Type": "MCP9600"
},
{
"Address": "0x64",
"Bus": 24,
"Name": "PTTV_THRMCUP_HBM4_TEMP_C",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 100.0
+ }
+ ],
"Type": "MCP9600"
},
{
"Address": "0x65",
"Bus": 24,
"Name": "PTTV_THRMCUP_HBM5_TEMP_C",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 100.0
+ }
+ ],
"Type": "MCP9600"
},
{
"Address": "0x66",
"Bus": 24,
"Name": "PTTV_THRMCUP_HBM6_TEMP_C",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 100.0
+ }
+ ],
"Type": "MCP9600"
},
{
"Address": "0x67",
"Bus": 24,
"Name": "PTTV_THRMCUP_CORE_TEMP_C",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 100.0
+ }
+ ],
"Type": "MCP9600"
},
{
"Address": "0x64",
"Bus": 25,
"Name": "PTTV_THRMCUP_HBM1_TEMP_C",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 100.0
+ }
+ ],
"Type": "MCP9600"
},
{
"Address": "0x65",
"Bus": 25,
"Name": "PTTV_THRMCUP_HBM2_TEMP_C",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 100.0
+ }
+ ],
"Type": "MCP9600"
},
{
"Address": "0x66",
"Bus": 25,
"Name": "PTTV_THRMCUP_HBM3_TEMP_C",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 100.0
+ }
+ ],
"Type": "MCP9600"
},
{