Cumulocity API Services / com.softwareag.jc.cumulocity.services.api / AlarmsService

AlarmsService

class AlarmsService : ConnectionRequest<User, List<Alarm>>

Allows Alarms to be posted and queried from Cumulocity

Constructors

<init>

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

Properties

connection

val connection: CumulocityConnectionFactory.CumulocityConnection

Connection referencing cumulocity tenant, instance and credentials to use

Functions

get

fun get(id: String, responder: RequestResponder<List<Alarm>>): Unit

Retrieves the Alarm details for the given id

getAllForDevice

fun getAllForDevice(deviceId: String, responder: RequestResponder<List<Alarm>>): Unit

Retrieves the alarm details for the given managed object

path

fun path(): String

post

fun post(alarms: Array<Alarm>, responder: RequestResponder<List<Alarm>>): Unit

Creates new Alarms in Cumulocity

response

fun response(response: String): List<Alarm>