class EventsService : ConnectionRequest<User, List<Event>>
Access point for retrieving and sending events to/from Cumulocity, data represented as Event and accessed via API endpoint /event/events
EventsService(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<Event>>): Unit
Retrieves the event for the given id |
|
fun getAllForDevice(id: String, responder: RequestResponder<List<Event>>): Unit
Retrieves the 100 events emitted for the given object |
|
fun path(): String |
|
fun post(events: Array<Event>, responder: RequestResponder<List<Event>>): Unit
Submits the events to cumulocity for the given managed object |
|
fun response(response: String): List<Event> |