|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cumulocity.sdk.client.alarm.AlarmApiImpl
public class AlarmApiImpl
Constructor Summary | |
---|---|
AlarmApiImpl(RestConnector restConnector,
TemplateUrlParser templateUrlParser,
String platfromApiUri)
Deprecated. |
|
AlarmApiImpl(RestConnector restConnector,
TemplateUrlParser templateUrlParser,
String platformApiUri,
int pageSize)
|
Method Summary | |
---|---|
AlarmRepresentation |
create(AlarmRepresentation representation)
Creates an alarm in the platform. |
AlarmRepresentation |
getAlarm(GId alarmId)
Gets an alarm by id |
PagedCollectionResource<AlarmCollectionRepresentation> |
getAlarms()
Gets all alarms from the platform |
PagedCollectionResource<AlarmCollectionRepresentation> |
getAlarmsByFilter(AlarmFilter alarmFilter)
Gets alarms from the platform based on the specified filter |
AlarmRepresentation |
updateAlarm(AlarmRepresentation alarmToUpdate)
Updates an alarm in the platform. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public AlarmApiImpl(RestConnector restConnector, TemplateUrlParser templateUrlParser, String platfromApiUri)
public AlarmApiImpl(RestConnector restConnector, TemplateUrlParser templateUrlParser, String platformApiUri, int pageSize)
Method Detail |
---|
public AlarmRepresentation getAlarm(GId alarmId) throws SDKException
AlarmApi
getAlarm
in interface AlarmApi
alarmId
- id of the alarm to search for
SDKException
- if the alarm is not found or if the query failedpublic AlarmRepresentation updateAlarm(AlarmRepresentation alarmToUpdate) throws SDKException
AlarmApi
updateAlarm
in interface AlarmApi
alarmToUpdate
- to be updated
SDKException
- if the alarm could not be updatedpublic PagedCollectionResource<AlarmCollectionRepresentation> getAlarms() throws SDKException
AlarmApi
getAlarms
in interface AlarmApi
SDKException
- if the query failedpublic AlarmRepresentation create(AlarmRepresentation representation) throws SDKException
AlarmApi
create
in interface AlarmApi
representation
- alarm to be created
SDKException
- if the alarm could not be createdpublic PagedCollectionResource<AlarmCollectionRepresentation> getAlarmsByFilter(AlarmFilter alarmFilter) throws SDKException
AlarmApi
getAlarmsByFilter
in interface AlarmApi
alarmFilter
- 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 |