Alarmist.Event (alarmist v0.2.2)
View SourceStruct sent to subscribers on property changes
:id
- which alarm:state
-:set
or:clear
:description
- alarm description ornil
when the alarm has been cleared:timestamp
- the timestamp (System.monotonic_time/0
) when the changed happened:previous_state
- the previous value (:unknown
if 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() }