View Source Hemdal.Config.Alert (Hemdal v1.0.0)
Alert entity used for the alert configuration. It is including the following configuration params:
id
the ID for the alert. Used for launching the process, seeHemdal.Check
.enabled
let us know if the alert is enabled (ok, warn, or error) or disabled (in disabled status).name
the name provided to the alert.check_in_sec
the interval time (in seconds) to run the check. Inok
ornormal
state.recheck_in_sec
the interval time (in seconds) where the command is failing and it should be checked a number ofretries
in this interval of time previously to move tobroken
state.broken_recheck_in_sec
the interval time (in seconds) where the command is running during thebroken
state.retries
is the number of retries we are running infailing
state previously to determine it's broken.command_args
is a list of arguments to be in use with the command.host
is theHemdal.Config.Host
data.command
is a nested structure including the command to be executed, the name of the command, and the command type. SeeHemdal.Config.Alert.Command
.notifiers
is a list ofHemdal.Config.Notifier
.
Link to this section Summary
Functions
Callback implementation for Construct.cast/2
.
Callback implementation for Construct.make!/2
.
Callback implementation for Construct.make/2
.
Link to this section Types
@type t() :: %Hemdal.Config.Alert{ broken_recheck_in_sec: :integer | integer(), check_in_sec: :integer | integer(), command: Hemdal.Config.Alert.Command.t(), command_args: [String.t()] | list(), enabled: :boolean | boolean(), host: Hemdal.Config.Host.t(), id: String.t(), name: String.t(), notifiers: [Hemdal.Config.Notifier.t()] | list(), recheck_in_sec: :integer | integer(), retries: :integer | integer() }
Link to this section Functions
Callback implementation for Construct.cast/2
.
Callback implementation for Construct.make!/2
.
Callback implementation for Construct.make/2
.