Hemdal.Event (Hemdal v1.2.1)
View SourceGenerate events to be consumed. It's the producer for the events.
Summary
Types
The event is generated usually in Hemdal.Check module and it's
based on the structure
Types
@type t() :: %Hemdal.Event{ alert: Hemdal.Config.Alert.t() | nil, fail_duration: non_neg_integer(), fail_started: NaiveDateTime.t() | nil, last_update: NaiveDateTime.t(), metadata: map(), prev_status: Hemdal.Check.status(), status: Hemdal.Check.status() }
The event is generated usually in Hemdal.Check module and it's
based on the structure:
alertbased onHemdal.Config.Alertstatuswhich is the current status to notifyprev_statuswhich is the previous statusfail_startedwhen the fail started to happensfail_durationhow long the fail is/waslast_updatewhen the event was createdmetadatamore information for the event
Functions
@spec notify(t()) :: :ok