org.eso.ias.sink.email.AlarmStateTracker
See theAlarmStateTracker companion object
class AlarmStateTracker
AlarmStateTracker records the changes of the state of an alarm to be notified to the user by email or some other mechanism.
The update of an alarm is a AlarmState. The state is one of the values defined in Alarm so it records activation, priority, validity and deactivation.
The tracker saves the state of the last round i.e. the actual state before resetting. This allows to know if the state changed since the last reset and also avoid saving states if they did not change from one time interval to another
The AlarmStateTracker is immutable. New change of state are added at the head of the list.
Value parameters
- id
-
the identifier of the alarm
- stateChanges
-
The state changes recorded so far for the current time interval
- stateOfLastRound
-
the last state before resetting
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article