|
||||||||||
| 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 AlarmApialarmId - id of the alarm to search for
SDKException - if the alarm is not found or if the query failed
public AlarmRepresentation updateAlarm(AlarmRepresentation alarmToUpdate)
throws SDKException
AlarmApi
updateAlarm in interface AlarmApialarmToUpdate - to be updated
SDKException - if the alarm could not be updated
public PagedCollectionResource<AlarmCollectionRepresentation> getAlarms()
throws SDKException
AlarmApi
getAlarms in interface AlarmApiSDKException - if the query failed
public AlarmRepresentation create(AlarmRepresentation representation)
throws SDKException
AlarmApi
create in interface AlarmApirepresentation - alarm to be created
SDKException - if the alarm could not be created
public PagedCollectionResource<AlarmCollectionRepresentation> getAlarmsByFilter(AlarmFilter alarmFilter)
throws SDKException
AlarmApi
getAlarmsByFilter in interface AlarmApialarmFilter - 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 | |||||||||