Cumulocity API Services / com.softwareag.jc.cumulocity.services.models / Alarm / <init>

<init>

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

Parameters

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