Skip to content

GetMetricUsageRequest

Source code in docs_src/capo_appmonetization/types/get_metric_usage_request.py
class GetMetricUsageRequest(TypedDict, closed=True):
    app_id: "capo_appmonetization.types.app_id.AppId"
    """The ID of the app."""
    user_id: "capo_appmonetization.types.user_id.UserId"
    """The end user whose usage is read. Do not include personally identifiable or otherwise sensitive data in this value."""
    started_at: "capo_appmonetization.types.timestamp.Timestamp"
    """Inclusive start of the reporting window (half-open [startedAt, endedAt))."""
    ended_at: "capo_appmonetization.types.timestamp.Timestamp"
    """Exclusive end of the reporting window. Must be after startedAt; the window may span at most 744 hours (31 days, the longest monthly billing period). Must not be in the future beyond a small clock-skew allowance."""
    scope: "capo_appmonetization.types.request_scope.RequestScope"
    """Required. The environment: live or sandbox. sandbox reads the app's isolated test environment. Usage is kept separately per environment."""
    max_results: NotRequired[
        "capo_appmonetization.types.get_metric_usage_max_results.GetMetricUsageMaxResults"
    ]
    """Maximum number of per-metric usage entries to return in this page (1-25, default 25)."""
    next_token: NotRequired["capo_appmonetization.types.next_token.NextToken"]
    """Opaque continuation token from a prior response. The window (startedAt/endedAt) must be unchanged across a pagination sequence."""

app_id instance-attribute

app_id: AppId

The ID of the app.

ended_at instance-attribute

ended_at: Timestamp

Exclusive end of the reporting window. Must be after startedAt; the window may span at most 744 hours (31 days, the longest monthly billing period). Must not be in the future beyond a small clock-skew allowance.

max_results instance-attribute

max_results: NotRequired[GetMetricUsageMaxResults]

Maximum number of per-metric usage entries to return in this page (1-25, default 25).

next_token instance-attribute

next_token: NotRequired[NextToken]

Opaque continuation token from a prior response. The window (startedAt/endedAt) must be unchanged across a pagination sequence.

scope instance-attribute

scope: RequestScope

Required. The environment: live or sandbox. sandbox reads the app's isolated test environment. Usage is kept separately per environment.

started_at instance-attribute

started_at: Timestamp

Inclusive start of the reporting window (half-open [startedAt, endedAt)).

user_id instance-attribute

user_id: UserId

The end user whose usage is read. Do not include personally identifiable or otherwise sensitive data in this value.