Hemdal.Config.Alert (Hemdal v1.2.1)
View SourceAlert entity used for the alert configuration. It is including the following configuration params:
idthe ID for the alert. Used for launching the process, seeHemdal.Check.enabledlet us know if the alert is enabled (ok, warn, or error) or disabled (in disabled status).namethe name provided to the alert.check_in_secthe interval time (in seconds) to run the check. Inokornormalstate.recheck_in_secthe interval time (in seconds) where the command is failing and it should be checked a number ofretriesin this interval of time previously to move tobrokenstate.broken_recheck_in_secthe interval time (in seconds) where the command is running during thebrokenstate.retriesis the number of retries we are running infailingstate previously to determine it's broken.command_argsis a list of arguments to be in use with the command.hostis theHemdal.Config.Hostdata.commandis a nested structure including the command to be executed, the name of the command, and the command type. SeeHemdal.Config.Command.notifiersis a list ofHemdal.Config.Notifier.
Summary
Functions
Callback implementation for Construct.cast/2.
Callback implementation for Construct.make/2.
Callback implementation for Construct.make!/2.
Types
@type t() :: %Hemdal.Config.Alert{ broken_recheck_in_sec: integer(), check_in_sec: integer(), command: Hemdal.Config.Command.t(), command_args: [String.t()], enabled: boolean(), host: Hemdal.Config.Host.t(), id: String.t(), name: String.t(), notifiers: [Hemdal.Config.Notifier.t()], recheck_in_sec: integer(), retries: integer() }
Functions
Callback implementation for Construct.cast/2.
Callback implementation for Construct.make/2.
Callback implementation for Construct.make!/2.