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

Builder for HTTP notification structs.

Wraps the [HTTP Notification for Alert Rules API](https://docs.logpoint.com/siem/product-docs/readme/siem_api_reference/http-notification-for-alert-rules).
Start with `LogpointApi.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`.

# `t`

```elixir
@type t() :: %LogpointApi.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
}
```

# `api_token_auth`

# `basic_auth`

# `bearer_auth`

# `body`

# `dispatch_option`

# `format_query`

# `new`

# `no_auth`

# `notify_http`

# `protocol`

# `querystring`

# `threshold`

# `to_map`

Convert an `HttpNotification` 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*
