class AlarmsService : ConnectionRequest<User, List<Alarm>>
Allows Alarms to be posted and queried from Cumulocity
AlarmsService(connection: CumulocityConnectionFactory.CumulocityConnection)
Creates a single use instance that cab be used to launch a query, do not reuse the same instance for multiple queries |
val connection: CumulocityConnectionFactory.CumulocityConnection
Connection referencing cumulocity tenant, instance and credentials to use |
fun get(id: String, responder: RequestResponder<List<Alarm>>): Unit
Retrieves the Alarm details for the given id |
|
fun getAllForDevice(deviceId: String, responder: RequestResponder<List<Alarm>>): Unit
Retrieves the alarm details for the given managed object |
|
fun path(): String |
|
fun post(alarms: Array<Alarm>, responder: RequestResponder<List<Alarm>>): Unit
Creates new Alarms in Cumulocity |
|
fun response(response: String): List<Alarm> |