public interface AlarmApi
Modifier and Type | Method and Description |
---|---|
AlarmRepresentation |
create(AlarmRepresentation alarm)
Creates an alarm in the platform.
|
Future |
createAsync(AlarmRepresentation alarm)
Creates an alarm in the platform.
|
void |
deleteAlarmsByFilter(AlarmFilter filter)
Delete alarms from the platform based on the specified filter
|
AlarmRepresentation |
getAlarm(com.cumulocity.model.idtype.GId gid)
Gets an alarm by id
|
AlarmCollection |
getAlarms()
Gets all alarms from the platform
|
AlarmCollection |
getAlarmsByFilter(AlarmFilter filter)
Gets alarms from the platform based on the specified filter
|
AlarmRepresentation |
update(AlarmRepresentation alarm)
Updates an alarm in the platform.
|
AlarmRepresentation |
updateAlarm(AlarmRepresentation alarm)
Deprecated.
|
AlarmRepresentation getAlarm(com.cumulocity.model.idtype.GId gid) throws SDKException
gid
- id of the alarm to search forSDKException
- if the alarm is not found or if the query failedAlarmRepresentation create(AlarmRepresentation alarm) throws SDKException
alarm
- alarm to be createdSDKException
- if the alarm could not be createdFuture createAsync(AlarmRepresentation alarm) throws SDKException
alarm
- alarm to be createdSDKException
- if the alarm could not be createdAlarmRepresentation update(AlarmRepresentation alarm) throws SDKException
alarm
- to be updatedSDKException
- if the alarm could not be updatedAlarmCollection getAlarms() throws SDKException
SDKException
- if the query failedAlarmCollection getAlarmsByFilter(AlarmFilter filter) throws SDKException
filter
- the filter criteria(s)SDKException
- if the query failedvoid deleteAlarmsByFilter(AlarmFilter filter) throws IllegalArgumentException, SDKException
filter
- the filter criteria(s)SDKException
- if the query failedIllegalArgumentException
@Deprecated AlarmRepresentation updateAlarm(AlarmRepresentation alarm) throws SDKException
alarm
- to be updatedSDKException
- if the alarm could not be updatedCopyright © 2020 (C) Cumulocity GmbH. All rights reserved.