# `LogpointApi.Data.EmailNotification`
[🔗](https://github.com/MikaelFangel/logpoint_api/blob/v2.2.0/lib/logpoint_api/data/email_notification.ex#L1)

Builder for email notification structs.

Wraps the [Email Notification for Alert Rules API](https://docs.logpoint.com/siem/product-docs/readme/siem_api_reference/email-notification-for-alert-rules).
Start with `LogpointApi.email_notification/2` and pipe through the builder
functions to set subject, template, and other options.

# `t`

```elixir
@type t() :: %LogpointApi.Data.EmailNotification{
  disable_search_link: boolean() | nil,
  dispatch_option: String.t() | nil,
  email_emails: [String.t()],
  email_subject: String.t() | nil,
  email_template: String.t() | nil,
  ids: [String.t()],
  logo_enable: boolean() | nil,
  logo_type: String.t() | nil,
  logo_value: String.t() | nil,
  notify_email: boolean() | nil,
  simple_view: boolean() | nil,
  threshold_option: String.t() | nil,
  threshold_value: number() | nil
}
```

# `disable_search_link`

# `dispatch_option`

# `logo`

# `new`

# `notify_email`

# `simple_view`

# `subject`

# `template`

# `threshold`

# `to_map`

Convert an `EmailNotification` struct into the flat map format expected by the Logpoint API.

# `validate`

```elixir
@spec validate(t()) :: :ok | {:error, [String.t()]}
```

---

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