Post by ginugeorge on Dec 21, 2021 18:36:24 GMT
Consider we are creating a numeric trigger with the below mentioned request body
{
"Id": "TemperatureNumericTrigger",
"Name": "Temperature_NumericTrigger_Trigger",
"MetricType": "Numeric",
"TriggerActions": [
"LogToLogService","RedfishEvent","RedfishMetricReport"
],
"NumericThresholds": {
"LowerCritical": {
"Activation": "Decreasing",
"DwellTime": "PT1M",
"Reading": 30
},
"LowerWarning": {
"Activation": "Decreasing",
"DwellTime": "PT1M",
"Reading": 50
},
"UpperCritical": {
"Activation": "Increasing",
"DwellTime": "PT1M",
"Reading": 80
},
"UpperWarning": {
"Activation": "Increasing",
"DwellTime": "PT1M",
"Reading": 70
}
},
"MetricProperties": [
"/redfish/v1/Chassis/Self/Thermal#/Temperatures/116/ReadingCelsius"
]
}
Assume that the ReadingCelsius of the Temperature Sensor 116 is 80 at present.
We have two sets of defined behaviour as mentioned below :
Behaviour 1 :
Step 1 : The current sensor reading goes above 80(say 85) – Based on the dwell time satisfaction, need to generate RedfishLog/RedfishEvent/RedfishMetricReport for the Numeric Thresholds – UpperWarning and UpperCritical at this point.
Step 2 : The current sensor reading increases further from 85 to 95 - No Trigger Action perfomed at this point.
Step 3 : The current sensor reading decreases from 95 to 75 - No Trigger Action perfomed at this point.
Step 4: The current sensor reading increases again from 75 to 90 - Based on the dwell time satisfaction, need to generate RedfishLog/RedfishEvent/RedfishMetricReport for the Numeric Thresholds - UpperCritical at this point.
Step 5 : The current sensor reading decreases further from 75 to 45 - Based on the dwell time satisfaction, need to generate RedfishLog/RedfishEvent/RedfishMetricReport for the Numeric Thresholds – LowerWarning at this point.
Step 6 : The current sensor reading decreases further from 45 to 25 – Based on the dwell time satisfaction, need to generate RedfishLog/RedfishEvent/RedfishMetricReport for the Numeric Thresholds – LowerCritical at this point.
Step 7 : The current sensor reading decreases further from 25 to 15 - No Trigger Action perfomed at this point.
Step 8 : The current sensor reading increases again from 15 to 35 - No Trigger Action perfomed at this point.
Step 1 : The current sensor reading goes above 80(say 85) – Based on the dwell time satisfaction, need to generate RedfishLog/RedfishEvent/RedfishMetricReport for the Numeric Thresholds – UpperWarning and UpperCritical at this point.
Step 2 : The current sensor reading increases further from 85 to 95 - No Trigger Action perfomed at this point.
Step 3 : The current sensor reading decreases from 95 to 75 - No Trigger Action perfomed at this point.
Step 4: The current sensor reading increases again from 75 to 90 - Based on the dwell time satisfaction, need to generate RedfishLog/RedfishEvent/RedfishMetricReport for the Numeric Thresholds - UpperCritical at this point.
Step 5 : The current sensor reading decreases further from 75 to 45 - Based on the dwell time satisfaction, need to generate RedfishLog/RedfishEvent/RedfishMetricReport for the Numeric Thresholds – LowerWarning at this point.
Step 6 : The current sensor reading decreases further from 45 to 25 – Based on the dwell time satisfaction, need to generate RedfishLog/RedfishEvent/RedfishMetricReport for the Numeric Thresholds – LowerCritical at this point.
Step 7 : The current sensor reading decreases further from 25 to 15 - No Trigger Action perfomed at this point.
Step 8 : The current sensor reading increases again from 15 to 35 - No Trigger Action perfomed at this point.
Behaviour 2 :
Step 1 : The current sensor reading goes above 80(say 85)
Step 2 : The current sensor reading increases further from 85 to 95
Step 3 : The current sensor reading decreases from 95 to 75
Step 4: The current sensor reading increases again from 75 to 90
Step 5 : The current sensor reading decreases further from 75 to 45
Step 6 : The current sensor reading decreases further from 45 to 25
Step 7 : The current sensor reading decreases further from 25 to 15
Step 8 : The current sensor reading increases again from 15 to 35
Based on the dwell time satisfaction, for each of the above mentioned steps for every change in sensor reading, we should be generating RedfishLog/RedfishEvent/RedfishMetricReport for the applicable Numeric Thresholds.
Step 1 : The current sensor reading goes above 80(say 85)
Step 2 : The current sensor reading increases further from 85 to 95
Step 3 : The current sensor reading decreases from 95 to 75
Step 4: The current sensor reading increases again from 75 to 90
Step 5 : The current sensor reading decreases further from 75 to 45
Step 6 : The current sensor reading decreases further from 45 to 25
Step 7 : The current sensor reading decreases further from 25 to 15
Step 8 : The current sensor reading increases again from 15 to 35
Based on the dwell time satisfaction, for each of the above mentioned steps for every change in sensor reading, we should be generating RedfishLog/RedfishEvent/RedfishMetricReport for the applicable Numeric Thresholds.
So, the clarification is whether the trigger actions should be performed under certain scenarios alone(as explained in Behaviour 1)
or
the trigger actions should be performed for every change in the Sensor Reading(as explained in Behaviour 2) ? Please suggest if any opinions.