Interface AlarmHistoryRestService
-
- All Known Implementing Classes:
AlarmHistoryRestServiceImpl
public interface AlarmHistoryRestService
Query the alarm history and state changes stored in theAlarmHistoryRepository
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<AlarmState>
getActiveAlarmsAt(java.lang.Long timestampInMillis)
Retrieve the last known state of all alarms which were active at the given time.AlarmState
getAlarm(java.lang.String alarmId, java.lang.String matchType, java.lang.Long timestampInMillis)
Retrieve the last known state of an alarm at the given time.java.util.Collection<AlarmState>
getStatesForAlarm(java.lang.String alarmId, java.lang.String matchType)
Retrieve the complete set of state changes for the given alarm.
-
-
-
Method Detail
-
getStatesForAlarm
java.util.Collection<AlarmState> getStatesForAlarm(java.lang.String alarmId, java.lang.String matchType)
Retrieve the complete set of state changes for the given alarm.- Parameters:
alarmId
- alarm id to querymatchType
- when set the 'reduction-key', lookup by reduction key instead of alarm id- Returns:
- state changes
-
getAlarm
AlarmState getAlarm(java.lang.String alarmId, java.lang.String matchType, java.lang.Long timestampInMillis)
Retrieve the last known state of an alarm at the given time.- Parameters:
alarmId
- alarm id to querymatchType
- when set the 'reduction-key', lookup by reduction key instead of alarm idtimestampInMillis
- timestamp in milliseconds - defaults to "now" when null- Returns:
- last known state
-
getActiveAlarmsAt
java.util.Collection<AlarmState> getActiveAlarmsAt(java.lang.Long timestampInMillis)
Retrieve the last known state of all alarms which were active at the given time.- Parameters:
timestampInMillis
- timestamp in milliseconds- Returns:
- last known state of all alarms which were active at the given time - defaults to "now" when null
-
-