public interface EventApi
Modifier and Type | Method and Description |
---|---|
EventRepresentation |
create(EventRepresentation event)
Creates event in the platform.
|
Future |
createAsync(EventRepresentation event)
Creates event in the platform.
|
void |
delete(EventRepresentation event)
Deletes event from the platform.
|
void |
deleteEventsByFilter(EventFilter filter)
Deletes events from the platform based on the specified filter
|
EventRepresentation |
getEvent(com.cumulocity.model.idtype.GId gid)
Gets event by id
|
EventCollection |
getEvents()
Gets the all the event in the platform
|
EventCollection |
getEventsByFilter(EventFilter filter)
Gets the events from the platform based on specified filter
|
EventRepresentation |
update(EventRepresentation eventRepresentation)
This update the event in the platform.
|
EventRepresentation getEvent(com.cumulocity.model.idtype.GId gid) throws SDKException
gid
- id of the event to search forSDKException
- if the event is not found or if the query failedEventRepresentation create(EventRepresentation event) throws SDKException
event
- event to be createdSDKException
- if the event could not be createdFuture createAsync(EventRepresentation event) throws SDKException
event
- event to be createdSDKException
- if the event could not be createdvoid delete(EventRepresentation event) throws SDKException
event
- to be deletedSDKException
- if the event could not be deletedvoid deleteEventsByFilter(EventFilter filter) throws IllegalArgumentException, SDKException
filter
- the filter criteria(s)IllegalArgumentException
- when null event filter providedSDKException
- if the event(s) could not be deletedEventCollection getEvents() throws SDKException
SDKException
- if the query failedEventCollection getEventsByFilter(EventFilter filter) throws SDKException
filter
- the filter criteria(s)SDKException
- if the query failedEventRepresentation update(EventRepresentation eventRepresentation) throws SDKException
eventRepresentation
- event to be updatedSDKException
- if the event could not be updatedCopyright © 2020 (C) Cumulocity GmbH. All rights reserved.