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

Notifier is in charge of define the amount of notifiers it should be
in use for a notification, and the data to perform the notification.

The available fields are the following ones:

- `token` is the information needed to send a message for some
  platforms like Slack or Mattermost. But it could means even a
  password for an email backend.
- `module` specifies the notifier module to use, e.g. `Hemdal.Notifier.Slack`
  or `Hemdal.Notifier.Mattermost` (default: `Hemdal.Notifier.Slack`).
- `username` is the name of the user to show the notification. But
  it could means different things depending on the backend. For an
  email backend it could be the user/email to send the message.
- `log_level` used to send the notifications. If we specify an
  `error` log level it will notify only when a change from/to error
  is happening. See `Hemdal.Event.Notification` for further
  information.
- `metadata` the extra data sent to the notifier.

# `t`

```elixir
@type t() :: %Hemdal.Config.Notifier{
  log_level: String.t(),
  metadata: map(),
  module: Hemdal.Config.Module.t() | atom(),
  token: String.t(),
  username: String.t()
}
```

# `cast`

# `make`

# `make!`

---

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