|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AlarmApi
API for creating, updating and retrieving alarms from the platform.
| Method Summary | |
|---|---|
AlarmRepresentation |
create(AlarmRepresentation alarm)
Creates an alarm in the platform. |
AlarmRepresentation |
getAlarm(GId gid)
Gets an alarm by id |
PagedCollectionResource<AlarmCollectionRepresentation> |
getAlarms()
Gets all alarms from the platform |
PagedCollectionResource<AlarmCollectionRepresentation> |
getAlarmsByFilter(AlarmFilter filter)
Gets alarms from the platform based on the specified filter |
AlarmRepresentation |
updateAlarm(AlarmRepresentation alarm)
Updates an alarm in the platform. |
| Method Detail |
|---|
AlarmRepresentation getAlarm(GId gid)
throws SDKException
gid - id of the alarm to search for
SDKException - if the alarm is not found or if the query failed
AlarmRepresentation create(AlarmRepresentation alarm)
throws SDKException
alarm - alarm to be created
SDKException - if the alarm could not be created
AlarmRepresentation updateAlarm(AlarmRepresentation alarm)
throws SDKException
alarm - to be updated
SDKException - if the alarm could not be updated
PagedCollectionResource<AlarmCollectionRepresentation> getAlarms()
throws SDKException
SDKException - if the query failed
PagedCollectionResource<AlarmCollectionRepresentation> getAlarmsByFilter(AlarmFilter filter)
throws SDKException
filter - the filter criteria(s)
SDKException - if the query failed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||