Skip to main content

api.sendAlarm

api.sendAlarm(ci, element, elementtype, text, suppression,severity)

Description

Sends a normalized alarm message (NormalizedAlarm message type).

Parameters

ParameterTypeExplanation
ciStringFills in the ci/name field
elementStringFills in the ci/element field
citypeStringFills in the ci/type field
textStringFills in the event/text field
supressionStringFills in the event/supression field
severityintFills 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)
}