View Source ExTier.Api.Report (ex_tier v0.11.1)
Link to this section Summary
Functions
Report usage of a given feature in an organization
Link to this section Types
@type report_params() :: %{ :org => String.t(), :feature => String.t(), optional(:n) => float(), optional(:at) => DateTime.t(), optional(:clobber) => boolean() }
Link to this section Functions
@spec report(report_params()) :: :ok | {:error, ExTier.Error.t()}
Report usage of a given feature in an organization
:ok = ExTier.report(%{org: "org:org_id", feature: "feature:feature"})