Builder for HTTP notification structs.
Wraps the HTTP Notification for Alert Rules API.
Start with Guardsix.http_notification/3 and pipe through the builder
functions to configure the request and auth. Supports no_auth/1,
api_token_auth/3, basic_auth/3, and bearer_auth/2.
Summary
Functions
to_map(notif)
deprecated
Convert an HttpNotification struct into the flat map format expected by the Guardsix API.
Types
@type t() :: %Guardsix.Data.HttpNotification{ auth: map(), dispatch_option: String.t() | nil, http_body: String.t() | nil, http_format_query: String.t() | nil, http_protocol: String.t() | nil, http_querystring: String.t() | nil, http_request_type: String.t(), http_url: String.t(), ids: [String.t()], notify_http: boolean() | nil, threshold_option: String.t() | nil, threshold_value: number() | nil }
Functions
This function is deprecated. Use to_payload/1 instead.
Convert an HttpNotification struct into the flat map format expected by the Guardsix API.