HookSniff.Alerts (hooksniff v1.2.0)

Alert rules and notifications.

Summary

Functions

Create an alert

Delete an alert

Get an alert by ID

List alerts

Test an alert

Update an alert

Functions

create(client, params)

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

Create an alert

delete(client, id)

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

Delete an alert

get(client, id)

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

Get an alert by ID

list(client)

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

List alerts

test_alert(client, id)

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

Test an alert

update(client, id, params)

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

Update an alert