Skip to content

GetMetricRequest

Source code in docs_src/capo_appmonetization/types/get_metric_request.py
class GetMetricRequest(TypedDict, closed=True):
    app_id: "capo_appmonetization.types.app_id.AppId"
    """The ID of the app."""
    metric_id: "capo_appmonetization.types.metric_id.MetricId"
    """The ID of the metric to retrieve."""
    stage: NotRequired["capo_appmonetization.types.plan_stage.PlanStage"]
    """The offering stage to read the metric from: DRAFT (the latest draft) or PUBLISHED (the offering customers see). Absent: PUBLISHED when scope=live, DRAFT when scope=sandbox."""
    scope: "capo_appmonetization.types.request_scope.RequestScope"
    """Required. The environment: live or sandbox. live reads the published offering by default; sandbox reads the app's draft."""

app_id instance-attribute

app_id: AppId

The ID of the app.

metric_id instance-attribute

metric_id: MetricId

The ID of the metric to retrieve.

scope instance-attribute

scope: RequestScope

Required. The environment: live or sandbox. live reads the published offering by default; sandbox reads the app's draft.

stage instance-attribute

stage: NotRequired[PlanStage]

The offering stage to read the metric from: DRAFT (the latest draft) or PUBLISHED (the offering customers see). Absent: PUBLISHED when scope=live, DRAFT when scope=sandbox.