Coffrify.Resources.Quotas (Coffrify v0.9.0)

View Source

Workspace quotas — storage, bandwidth, active transfers, throughput.

Summary

Functions

Bandwidth-by-day for the last days days (default 30).

Check current consumption vs plan caps.

Storage history over the last days days (default 90).

Throughput over the last minutes minutes (default 60).

Functions

bandwidth_daily(client, days \\ 30)

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

Bandwidth-by-day for the last days days (default 30).

check(client)

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

Check current consumption vs plan caps.

storage_history(client, days \\ 90)

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

Storage history over the last days days (default 90).

throughput_recent(client, minutes \\ 60)

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

Throughput over the last minutes minutes (default 60).