configurations: catalina: add sensor threshold hysteresis

Set hysteresis to 2% of trigger threshold to ensure more precise
triggering assert and deassert of sensor threshold event log.

Add hysteresis setting for below config files:
- catalina_fio.json
- catalina_hdd_nvme.json
- catalina_hdd.json
- catalina_pdb.json
- catalina_scm.json

Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I4df8f35f650fa73943214cee51e23e6a10884ad4
diff --git a/configurations/meta/catalina_fio.json b/configurations/meta/catalina_fio.json
index 12bcc5a..796a03c 100644
--- a/configurations/meta/catalina_fio.json
+++ b/configurations/meta/catalina_fio.json
@@ -13,12 +13,14 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.9,
                     "Name": "upper critical",
                     "Severity": 1,
                     "Value": 45
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.1,
                     "Name": "lower critical",
                     "Severity": 1,
                     "Value": 5
@@ -33,12 +35,14 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.9,
                     "Name": "upper critical",
                     "Severity": 1,
                     "Value": 45
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.1,
                     "Name": "lower critical",
                     "Severity": 1,
                     "Value": 5
diff --git a/configurations/meta/catalina_hdd.json b/configurations/meta/catalina_hdd.json
index b061de5..29c9146 100644
--- a/configurations/meta/catalina_hdd.json
+++ b/configurations/meta/catalina_hdd.json
@@ -19,6 +19,7 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.272,
                     "Label": "in1",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -26,6 +27,7 @@
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.21,
                     "Label": "in1",
                     "Name": "lower critical",
                     "Severity": 1,
@@ -50,6 +52,7 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.272,
                     "Label": "in1",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -57,6 +60,7 @@
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.21,
                     "Label": "in1",
                     "Name": "lower critical",
                     "Severity": 1,
diff --git a/configurations/meta/catalina_hdd_nvme.json b/configurations/meta/catalina_hdd_nvme.json
index fa50966..d3869be 100644
--- a/configurations/meta/catalina_hdd_nvme.json
+++ b/configurations/meta/catalina_hdd_nvme.json
@@ -8,12 +8,14 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 1.4,
                     "Name": "upper critical",
                     "Severity": 1,
                     "Value": 70
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.1,
                     "Name": "lower critical",
                     "Severity": 1,
                     "Value": 5
@@ -29,12 +31,14 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 1.4,
                     "Name": "upper critical",
                     "Severity": 1,
                     "Value": 70
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.1,
                     "Name": "lower critical",
                     "Severity": 1,
                     "Value": 5
diff --git a/configurations/meta/catalina_pdb.json b/configurations/meta/catalina_pdb.json
index 6b16220..3dd0bdd 100644
--- a/configurations/meta/catalina_pdb.json
+++ b/configurations/meta/catalina_pdb.json
@@ -499,6 +499,7 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.2592,
                     "Label": "in1",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -506,6 +507,7 @@
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.2112,
                     "Label": "in1",
                     "Name": "lower critical",
                     "Severity": 1,
@@ -531,6 +533,7 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.2592,
                     "Label": "in1",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -538,6 +541,7 @@
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.2112,
                     "Label": "in1",
                     "Name": "lower critical",
                     "Severity": 1,
@@ -563,6 +567,7 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.272,
                     "Label": "in1",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -570,6 +575,7 @@
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.21,
                     "Label": "in1",
                     "Name": "lower critical",
                     "Severity": 1,
@@ -644,6 +650,7 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 1.6,
                     "Label": "temp1",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -651,6 +658,7 @@
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.1,
                     "Label": "temp1",
                     "Name": "lower critical",
                     "Severity": 1,
@@ -658,6 +666,7 @@
                 },
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 1.186,
                     "Label": "vin",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -665,6 +674,7 @@
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.782,
                     "Label": "vin",
                     "Name": "lower critical",
                     "Severity": 1,
@@ -672,6 +682,7 @@
                 },
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 1.186,
                     "Label": "vout1",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -679,6 +690,7 @@
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.782,
                     "Label": "vout1",
                     "Name": "lower critical",
                     "Severity": 1,
@@ -706,6 +718,7 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 1.6,
                     "Label": "temp1",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -713,6 +726,7 @@
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.1,
                     "Label": "temp1",
                     "Name": "lower critical",
                     "Severity": 1,
@@ -720,6 +734,7 @@
                 },
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 1.186,
                     "Label": "vin",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -727,6 +742,7 @@
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.782,
                     "Label": "vin",
                     "Name": "lower critical",
                     "Severity": 1,
@@ -734,6 +750,7 @@
                 },
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 1.186,
                     "Label": "vout1",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -741,6 +758,7 @@
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.782,
                     "Label": "vout1",
                     "Name": "lower critical",
                     "Severity": 1,
@@ -768,6 +786,7 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 1.6,
                     "Label": "temp1",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -775,6 +794,7 @@
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.1,
                     "Label": "temp1",
                     "Name": "lower critical",
                     "Severity": 1,
@@ -782,6 +802,7 @@
                 },
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.26,
                     "Label": "vin",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -789,6 +810,7 @@
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.216,
                     "Label": "vin",
                     "Name": "lower critical",
                     "Severity": 1,
@@ -796,6 +818,7 @@
                 },
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.26,
                     "Label": "vout1",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -803,6 +826,7 @@
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.216,
                     "Label": "vout1",
                     "Name": "lower critical",
                     "Severity": 1,
@@ -830,6 +854,7 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.272,
                     "Label": "vout1",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -837,6 +862,7 @@
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.21,
                     "Label": "vout1",
                     "Name": "lower critical",
                     "Severity": 1,
@@ -844,6 +870,7 @@
                 },
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 2.5,
                     "Label": "temp1",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -851,6 +878,7 @@
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.1,
                     "Label": "temp1",
                     "Name": "lower critical",
                     "Severity": 1,
@@ -877,6 +905,7 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.272,
                     "Label": "vout1",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -884,6 +913,7 @@
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.21,
                     "Label": "vout1",
                     "Name": "lower critical",
                     "Severity": 1,
@@ -891,6 +921,7 @@
                 },
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 2.5,
                     "Label": "temp1",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -898,6 +929,7 @@
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.1,
                     "Label": "temp1",
                     "Name": "lower critical",
                     "Severity": 1,
@@ -923,6 +955,7 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.272,
                     "Label": "vout1",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -930,6 +963,7 @@
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.21,
                     "Label": "vout1",
                     "Name": "lower critical",
                     "Severity": 1,
@@ -937,6 +971,7 @@
                 },
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 2.5,
                     "Label": "temp1",
                     "Name": "upper critical",
                     "Severity": 1,
@@ -944,6 +979,7 @@
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.1,
                     "Label": "temp1",
                     "Name": "lower critical",
                     "Severity": 1,
@@ -963,12 +999,14 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 1.6,
                     "Name": "upper critical",
                     "Severity": 1,
                     "Value": 80
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.1,
                     "Name": "lower critical",
                     "Severity": 1,
                     "Value": 5
diff --git a/configurations/meta/catalina_scm.json b/configurations/meta/catalina_scm.json
index 46ec107..92cb3eb 100644
--- a/configurations/meta/catalina_scm.json
+++ b/configurations/meta/catalina_scm.json
@@ -7,12 +7,14 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.264,
                     "Name": "upper critical",
                     "Severity": 1,
                     "Value": 13.2
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.216,
                     "Name": "lower critical",
                     "Severity": 1,
                     "Value": 10.8
@@ -27,12 +29,14 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.105,
                     "Name": "upper critical",
                     "Severity": 1,
                     "Value": 5.25
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.095,
                     "Name": "lower critical",
                     "Severity": 1,
                     "Value": 4.75
@@ -47,12 +51,14 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.072,
                     "Name": "upper critical",
                     "Severity": 1,
                     "Value": 3.6
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.06,
                     "Name": "lower critical",
                     "Severity": 1,
                     "Value": 3.0
@@ -67,12 +73,14 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.0525,
                     "Name": "upper critical",
                     "Severity": 1,
                     "Value": 2.625
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.0475,
                     "Name": "lower critical",
                     "Severity": 1,
                     "Value": 2.375
@@ -87,12 +95,14 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.0396,
                     "Name": "upper critical",
                     "Severity": 1,
                     "Value": 1.98
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.0324,
                     "Name": "lower critical",
                     "Severity": 1,
                     "Value": 1.62
@@ -107,12 +117,14 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.0396,
                     "Name": "upper critical",
                     "Severity": 1,
                     "Value": 1.98
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.0324,
                     "Name": "lower critical",
                     "Severity": 1,
                     "Value": 1.62
@@ -127,12 +139,14 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.0252,
                     "Name": "upper critical",
                     "Severity": 1,
                     "Value": 1.26
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.0228,
                     "Name": "lower critical",
                     "Severity": 1,
                     "Value": 1.14
@@ -155,12 +169,14 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.068,
                     "Name": "upper critical",
                     "Severity": 1,
                     "Value": 3.4
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.052,
                     "Name": "lower critical",
                     "Severity": 1,
                     "Value": 2.6
@@ -174,12 +190,14 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.022,
                     "Name": "upper critical",
                     "Severity": 1,
                     "Value": 1.1
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.018,
                     "Name": "lower critical",
                     "Severity": 1,
                     "Value": 0.9
@@ -204,12 +222,14 @@
             "Thresholds": [
                 {
                     "Direction": "greater than",
+                    "Hysteresis": 0.9,
                     "Name": "upper critical",
                     "Severity": 1,
                     "Value": 45
                 },
                 {
                     "Direction": "less than",
+                    "Hysteresis": 0.1,
                     "Name": "lower critical",
                     "Severity": 1,
                     "Value": 5