FRAMES NO FRAMES | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | MEMBER | ACTION | DETAIL: IMPORT | CONSTANT | MEMBER | ACTION |
Alarm("22","c8y_UnavailabilityAlarm","12669915",1464365565.661,"No communication with device since 2016-05-27T18:11:23.886+02:00","ACKNOWLEDGED","MAJOR",1,{})
Alarm("11","com_cumulocity_events_BatteryWarning","1122",1464365565.661,"Low battery level","ACTIVE","MINOR",1,{"history":{}})
Create an Alarm, send Alarm("","c8y_UnavailabilityAlarm","12669915",1464365565.661,"No communication with device since 2016-05-27T18:11:23.886+02:00","ACKNOWLEDGED","MAJOR",1,{}) to Alarm.CHANNEL;
You can update the text, status and severity fields. send Alarm("11","c8y_UnavailabilityAlarm","12669915",1464365565.661,"Low battery level","ACTIVE","MINOR",1,{}) to Alarm.CHANNEL;
Constant summary | |
---|---|
string | CHANNEL := "CumulocityIoT"
The channel for sending updates/ new Alarms to. |
Member summary | |
---|---|
string | id
Unique identifier for this Alarm. |
string | type
The type of the Cumulocity event. |
string | source
Identifier of the source of the event. |
float | time
Timestamp of the event. |
string | text
Text or message of the Alarm. |
string | status
The status of the alarm: ACTIVE, ACKNOWLEDGED or CLEARED. |
string | severity
The severity of the alarm: CRITICAL, MAJOR, MINOR or WARNING. Must be upper-case. |
integer | count
The number of times this alarm has been sent. |
dictionary<string, any> | params
Any other propertiess available on the Alarm . |
Constant detail |
---|
string CHANNEL := "CumulocityIoT"The channel for sending updates/ new Alarms to.
Member detail |
---|
integer countThe number of times this alarm has been sent.
string idUnique identifier for this Alarm.
dictionary<string, any> paramsAny other propertiess available on the Alarm .
string severityThe severity of the alarm: CRITICAL, MAJOR, MINOR or WARNING. Must be upper-case.
string sourceIdentifier of the source of the event.
string statusThe status of the alarm: ACTIVE, ACKNOWLEDGED or CLEARED.
string textText or message of the Alarm.
float timeTimestamp of the event.
string typeThe type of the Cumulocity event.
FRAMES NO FRAMES | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | MEMBER | ACTION | DETAIL: IMPORT | CONSTANT | MEMBER | ACTION |