Coffrify.Resources.Alerts (Coffrify v0.9.0)

View Source

Alert rules — fire on download count, rate, failed password, geo, expiration.

Summary

Functions

Create an alert rule.

Delete an alert rule.

List configured alert rules.

Update an alert rule.

Functions

create(client, opts)

@spec create(Coffrify.t(), map() | keyword()) ::
  {:ok, map()} | {:error, Exception.t()}

Create an alert rule.

delete(client, id)

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

Delete an alert rule.

list(client)

@spec list(Coffrify.t()) :: {:ok, map()} | {:error, Exception.t()}

List configured alert rules.

update(client, id, patch)

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

Update an alert rule.