api.sendAlarm
api.sendAlarm(ci, element, elementtype, text, suppression,severity)
Description
Sends a normalized alarm message (NormalizedAlarm message type).
Parameters
| Parameter | Type | Explanation |
|---|---|---|
| ci | String | Fills in the ci/name field |
| element | String | Fills in the ci/element field |
| citype | String | Fills in the ci/type field |
| text | String | Fills in the event/text field |
| supression | String | Fills in the event/supression field |
| severity | int | Fills in the event/severity field |
Example
try {
res = http.get(url)
} catch (Exception e){
api.sendAlarm("ci", "element", "eltype", "Failed to poll for information", "4", 5)
}