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_pdb.json b/configurations/minerva_pdb.json
index e1fd42d..2c8340d 100644
--- a/configurations/minerva_pdb.json
+++ b/configurations/minerva_pdb.json
@@ -17,6 +17,57 @@
"vout1"
],
"Name": "PDB_HSC",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Label": "iout1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 30.0
+ },
+ {
+ "Direction": "greater than",
+ "Label": "pin",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 1440.0
+ },
+ {
+ "Direction": "greater than",
+ "Label": "temp1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 80.0
+ },
+ {
+ "Direction": "less than",
+ "Label": "vin",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 46.0
+ },
+ {
+ "Direction": "greater than",
+ "Label": "vin",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 55.0
+ },
+ {
+ "Direction": "less than",
+ "Label": "vout1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 46.0
+ },
+ {
+ "Direction": "greater than",
+ "Label": "vout1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 55.0
+ }
+ ],
"Type": "pmbus",
"iout1_Name": "PDB_HSC_CURR_A",
"pin_Name": "PDB_HSC_PWR_W",
@@ -36,6 +87,64 @@
"vout1"
],
"Name": "PDB_BRICK",
+ "Thresholds": [
+ {
+ "Direction": "greater than",
+ "Label": "iout1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 71.6
+ },
+ {
+ "Direction": "greater than",
+ "Label": "pin",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 874.0
+ },
+ {
+ "Direction": "greater than",
+ "Label": "pout1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 860.0
+ },
+ {
+ "Direction": "greater than",
+ "Label": "temp1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 105.0
+ },
+ {
+ "Direction": "less than",
+ "Label": "vin",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 38.0
+ },
+ {
+ "Direction": "greater than",
+ "Label": "vin",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 60.0
+ },
+ {
+ "Direction": "less than",
+ "Label": "vout1",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 10.8
+ },
+ {
+ "Direction": "greater than",
+ "Label": "vout1",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 13.2
+ }
+ ],
"Type": "pmbus",
"iout1_Name": "PDB_BRICK_CURR_A",
"pin_Name": "PDB_BRICK_PIN_PWR_W",