Builder for email notification structs.
Wraps the Email Notification for Alert Rules API.
Start with Guardsix.email_notification/2 and pipe through the builder
functions to set subject, template, and other options.
Summary
Functions
to_map(notif)
deprecated
Convert an EmailNotification struct into the flat map format expected by the Guardsix API.
Types
@type t() :: %Guardsix.Data.EmailNotification{ disable_search_link: boolean() | nil, dispatch_option: String.t() | nil, email_emails: [String.t()], email_subject: String.t(), email_template: String.t(), 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 }
Functions
This function is deprecated. Use to_payload/1 instead.
Convert an EmailNotification struct into the flat map format expected by the Guardsix API.