Kantoor.Provisioning.Usage (Kantoor v1.0.0)

Counters per domain for usage reporting: users (active, suspended), seats, mailboxes and the bytes of mail in the index. Computed from Postgres when asked.

A seat is a user row of the domain, suspended or not; max_users is the limit checked when a user is created. storage_bytes is the size of visible messages (what quotas count); held over-quota mail is reported separately.

Summary

Functions

The counters of one domain (a Domain with its settings loaded).

Functions

for_domain(domain)

@spec for_domain(Kantoor.Mailboxes.Domain.t()) :: map()

The counters of one domain (a Domain with its settings loaded).