Post by AMI_Mani on Feb 3, 2020 11:09:17 GMT
Hi,
As per the metadata for Telemetry Service Triggers, we have an attribute named "EventTriggers" as mentioned below:
"EventTriggers": {
"description": "The array of MessageIds that specify when a trigger condition is met based on an event.",
"items": {
"type": [
"string",
"null"
]
},
"longDescription": "This property shall contain an array of MessageIds that specify when a trigger condition is met based on an event. When the Service generates an event and if it contains a MessageId within this array, a trigger condition shall be met.",
"pattern": "^[A-Za-z0-9]+\\.\\d+\\.\\d+\\.[A-Za-z0-9.]+$",
"readonly": false,
"type": "array",
"versionAdded": "v1_1_0"
}
How Event triggers different from eventnotification?
MessageIds means ResourceAdded, ResourceUpdated, Alerts or Message registries resource?
We have mentioned a sample POST body for creating Telemetry Service Triggers as mentioned below:
{
"Id":"Temperature_Trigger",
"Name":"Temperature Trigger",
"MetricType":"Numeric",
"TriggerActions":[
"LogToLogService",
"RedfishMetricReport",
"RedfishEvent"
],
"EventTriggers":[
"ResourceAdded",
"ResourceUpdated",
"Alert"
],
"NumericThresholds": {
"LowerCritical": {
"Activation": "Either",
"DwellTime": "PT1M",
"Reading": 30.0
},
"UpperCritical": {
"Activation": "Increasing",
"DwellTime": "PT1M50S",
"Reading": 80.0
}
},,
"MetricProperties":[
"/redfish/v1/Chassis/Self/Thermal#/Temperatures/92/ReadingCelsius"
]
}
Please let us know, if the above mentioned POST body is correct. If so, based on the above POST Body for Telemetry Service Triggers, what exact functionality needs to happen, if for example, any "ResourceAdded" or "ResourceUpdated" event happens(Even Manager Account is created, ResourceAdded will be applicable)
Thanks,
Mani
As per the metadata for Telemetry Service Triggers, we have an attribute named "EventTriggers" as mentioned below:
"EventTriggers": {
"description": "The array of MessageIds that specify when a trigger condition is met based on an event.",
"items": {
"type": [
"string",
"null"
]
},
"longDescription": "This property shall contain an array of MessageIds that specify when a trigger condition is met based on an event. When the Service generates an event and if it contains a MessageId within this array, a trigger condition shall be met.",
"pattern": "^[A-Za-z0-9]+\\.\\d+\\.\\d+\\.[A-Za-z0-9.]+$",
"readonly": false,
"type": "array",
"versionAdded": "v1_1_0"
}
How Event triggers different from eventnotification?
MessageIds means ResourceAdded, ResourceUpdated, Alerts or Message registries resource?
We have mentioned a sample POST body for creating Telemetry Service Triggers as mentioned below:
{
"Id":"Temperature_Trigger",
"Name":"Temperature Trigger",
"MetricType":"Numeric",
"TriggerActions":[
"LogToLogService",
"RedfishMetricReport",
"RedfishEvent"
],
"EventTriggers":[
"ResourceAdded",
"ResourceUpdated",
"Alert"
],
"NumericThresholds": {
"LowerCritical": {
"Activation": "Either",
"DwellTime": "PT1M",
"Reading": 30.0
},
"UpperCritical": {
"Activation": "Increasing",
"DwellTime": "PT1M50S",
"Reading": 80.0
}
},,
"MetricProperties":[
"/redfish/v1/Chassis/Self/Thermal#/Temperatures/92/ReadingCelsius"
]
}
Please let us know, if the above mentioned POST body is correct. If so, based on the above POST Body for Telemetry Service Triggers, what exact functionality needs to happen, if for example, any "ResourceAdded" or "ResourceUpdated" event happens(Even Manager Account is created, ResourceAdded will be applicable)
Thanks,
Mani