Class DecoderResult
java.lang.Object
com.cumulocity.rest.representation.BaseResourceRepresentation
com.cumulocity.microservice.customdecoders.api.model.DecoderResult
- All Implemented Interfaces:
com.cumulocity.rest.representation.ResourceRepresentation
,Serializable
public class DecoderResult
extends com.cumulocity.rest.representation.BaseResourceRepresentation
implements Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAlarm
(com.cumulocity.rest.representation.alarm.AlarmRepresentation alarmRepresentation, boolean internal) void
addAlarms
(Collection<com.cumulocity.rest.representation.alarm.AlarmRepresentation> alarmRepresentations) void
addAlarmTypesToAcknowledge
(String... alarmTypes) void
addAlarmTypesToClear
(String... alarmTypes) void
addAlarmTypesToUpdate
(com.cumulocity.model.event.CumulocityAlarmStatuses status, String... alarmTypes) void
addDataFragment
(DataFragmentUpdate dataFragmentUpdate) void
addEvent
(com.cumulocity.rest.representation.event.EventRepresentation eventRepresentation, boolean internal) void
addMeasurement
(MeasurementDto measurementDto) void
addMeasurements
(Collection<MeasurementDto> measurementDtoCollection) static DecoderResult
empty()
boolean
List<com.cumulocity.rest.representation.alarm.AlarmRepresentation>
List<com.cumulocity.rest.representation.event.EventRepresentation>
int
hashCode()
final DecoderResult
setAsFailed
(String message) Methods inherited from class com.cumulocity.rest.representation.BaseResourceRepresentation
getSelf, getSelfDecoded, setSelf, toJSON, toString
-
Constructor Details
-
DecoderResult
public DecoderResult()
-
-
Method Details
-
empty
-
setAsFailed
-
addAlarm
public void addAlarm(com.cumulocity.rest.representation.alarm.AlarmRepresentation alarmRepresentation, boolean internal) -
addAlarms
public void addAlarms(Collection<com.cumulocity.rest.representation.alarm.AlarmRepresentation> alarmRepresentations) -
addAlarmTypesToClear
-
addAlarmTypesToAcknowledge
-
addAlarmTypesToUpdate
public void addAlarmTypesToUpdate(com.cumulocity.model.event.CumulocityAlarmStatuses status, String... alarmTypes) -
addEvent
public void addEvent(com.cumulocity.rest.representation.event.EventRepresentation eventRepresentation, boolean internal) -
addMeasurement
-
addMeasurements
-
addDataFragment
-
getAlarms
@JSONTypeHint(com.cumulocity.rest.representation.alarm.AlarmRepresentation.class) public List<com.cumulocity.rest.representation.alarm.AlarmRepresentation> getAlarms() -
getEvents
@JSONTypeHint(com.cumulocity.rest.representation.event.EventRepresentation.class) public List<com.cumulocity.rest.representation.event.EventRepresentation> getEvents() -
getMeasurements
-
getDataFragments
-
getAlarmTypesToUpdate
-
equals
-
hashCode
public int hashCode()
-