View Source Alarmist.Event (alarmist v0.2.0)
Struct sent to subscribers on property changes
:id- which alarm:state-:setor:clear:description- alarm description ornilwhen the alarm has been cleared:timestamp- the timestamp (System.monotonic_time/0) when the changed happened:previous_state- the previous value (:unknownif no previous information):previous_timestamp- the timestamp when the property changed to:previous_state. Use this to calculate how long the property was the previous state.
Summary
Types
@type t() :: %Alarmist.Event{ description: Alarmist.alarm_description(), id: Alarmist.alarm_id(), previous_state: Alarmist.alarm_state() | :unknown, previous_timestamp: integer(), state: Alarmist.alarm_state(), timestamp: integer() }