# `Hemdal.Config.Alert`
[🔗](https://github.com/altenwald/hemdal/blob/v1.4.0/lib/hemdal/config/alert.ex#L1)

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,
  see `Hemdal.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. In `ok` or
  `normal` state.
- `recheck_in_sec` the interval time (in seconds) where the command is
  failing and it should be checked a number of `retries` in this interval of
  time previously to move to `broken` state.
- `broken_recheck_in_sec` the interval time (in seconds) where the command is
  running during the `broken` state.
- `retries` is the number of retries we are running in `failing` state
  previously to determine it's broken.
- `command_args` is a list of arguments to be in use with the command.
- `host` is the `Hemdal.Config.Host` data.
- `command` is a nested structure including the command to be executed,
  the name of the command, and the command type. See `Hemdal.Config.Command`.
- `notifiers` is a list of `Hemdal.Config.Notifier`.

# `t`

```elixir
@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()
}
```

# `cast`

# `make`

# `make!`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
