Constructor and Description |
---|
AlarmApiImpl(RestConnector restConnector,
UrlProcessor urlProcessor,
AlarmsApiRepresentation alarmsApiRepresentation,
int pageSize) |
Modifier and Type | Method and Description |
---|---|
AlarmRepresentation |
create(AlarmRepresentation representation)
Creates an alarm in the platform.
|
Future |
createAsync(AlarmRepresentation representation)
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 alarmId)
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 alarmToUpdate)
Updates an alarm in the platform.
|
AlarmRepresentation |
updateAlarm(AlarmRepresentation alarmToUpdate)
Deprecated.
|
public AlarmApiImpl(RestConnector restConnector, UrlProcessor urlProcessor, AlarmsApiRepresentation alarmsApiRepresentation, int pageSize)
public AlarmRepresentation getAlarm(com.cumulocity.model.idtype.GId alarmId) throws SDKException
AlarmApi
getAlarm
in interface AlarmApi
alarmId
- id of the alarm to search forSDKException
- if the alarm is not found or if the query failed@Deprecated public AlarmRepresentation updateAlarm(AlarmRepresentation alarmToUpdate) throws SDKException
AlarmApi
updateAlarm
in interface AlarmApi
alarmToUpdate
- to be updatedSDKException
- if the alarm could not be updatedpublic AlarmRepresentation update(AlarmRepresentation alarmToUpdate) throws SDKException
AlarmApi
update
in interface AlarmApi
alarmToUpdate
- to be updatedSDKException
- if the alarm could not be updatedpublic AlarmCollection 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 createdSDKException
- if the alarm could not be createdpublic Future createAsync(AlarmRepresentation representation) throws SDKException
AlarmApi
createAsync
in interface AlarmApi
representation
- alarm to be createdSDKException
- if the alarm could not be createdpublic AlarmCollection getAlarmsByFilter(AlarmFilter filter) throws SDKException
AlarmApi
getAlarmsByFilter
in interface AlarmApi
filter
- the filter criteria(s)SDKException
- if the query failedpublic void deleteAlarmsByFilter(AlarmFilter filter) throws IllegalArgumentException, SDKException
AlarmApi
deleteAlarmsByFilter
in interface AlarmApi
filter
- the filter criteria(s)SDKException
- if the query failedIllegalArgumentException
Copyright © 2020 (C) Cumulocity GmbH. All rights reserved.