HookSniff.Alerts (hooksniff v1.0.0)

Alert rules and notifications.

Summary

Functions

List all alert rules (auto-paginate). Accepts :limit and :max_pages opts.

List all alert notifications (auto-paginate). Accepts :limit and :max_pages opts.

List alert notifications (paginated). Accepts :limit and :offset opts.

List alert rules (paginated). Accepts :limit and :offset opts.

Functions

list_all(client, opts \\ [])

@spec list_all(
  HookSniff.t(),
  keyword()
) :: {:ok, list()} | {:error, term()}

List all alert rules (auto-paginate). Accepts :limit and :max_pages opts.

list_all_notifications(client, opts \\ [])

@spec list_all_notifications(
  HookSniff.t(),
  keyword()
) :: {:ok, list()} | {:error, term()}

List all alert notifications (auto-paginate). Accepts :limit and :max_pages opts.

list_notifications(client, opts \\ [])

@spec list_notifications(
  HookSniff.t(),
  keyword()
) :: {:ok, map()} | {:error, term()}

List alert notifications (paginated). Accepts :limit and :offset opts.

list_rules(client, opts \\ [])

@spec list_rules(
  HookSniff.t(),
  keyword()
) :: {:ok, map()} | {:error, term()}

List alert rules (paginated). Accepts :limit and :offset opts.