Skip to content

MetricUsage

Source code in docs_src/capo_appmonetization/types/metric_usage.py
class MetricUsage(TypedDict, closed=True):
    metric_id: "capo_appmonetization.types.metric_id.MetricId"
    """The metric this usage is for."""
    quantity: "capo_appmonetization.types.quantity.Quantity"
    """The metric's usage over the window, as a plain decimal string (for example, "1500" or "12.5"). For a SUM or COUNT metric this is the total; for a MAX metric it is the largest value recorded. Within a fixed window the value can only grow, as late-arriving events are counted."""

metric_id instance-attribute

metric_id: MetricId

The metric this usage is for.

quantity instance-attribute

quantity: Quantity

The metric's usage over the window, as a plain decimal string (for example, "1500" or "12.5"). For a SUM or COUNT metric this is the total; for a MAX metric it is the largest value recorded. Within a fixed window the value can only grow, as late-arriving events are counted.