Alarm(o: JSONObject)
Alternative constructor used to parse Alarm fetched from Cumulocity. NOTE: You do not need to use this method. It is called implicitly when using the AlarmsService get method
o
- JSON object complying with Cumulocity REST definition
Alarm(source: Alarm.Source, type: String, status: Alarm.Status, severity: Alarm.Severity, text: String)
Create a new alarm to be posted to Cumulocity
Constructor
Create a new alarm to be posted to Cumulocity