Coffrify.Resources.Audit (Coffrify v0.9.0)

View Source

Audit log — every privileged action in the workspace.

Summary

Functions

Trigger an audit export — returns a presigned URL.

Lazy Stream over every audit entry.

List audit entries (most recent first).

Types

list_opts()

@type list_opts() :: [
  action: String.t(),
  actor_id: String.t(),
  resource_type: String.t(),
  since: String.t() | DateTime.t(),
  until: String.t() | DateTime.t(),
  limit: pos_integer(),
  offset: non_neg_integer()
]

Functions

export(client, opts \\ [])

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

Trigger an audit export — returns a presigned URL.

iterate(client, opts \\ [])

@spec iterate(
  Coffrify.t(),
  keyword()
) :: Enumerable.t()

Lazy Stream over every audit entry.

list(client, opts \\ [])

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

List audit entries (most recent first).