Skip to content

Metric

Source code in docs_src/capo_appmonetization/types/metric.py
class Metric(TypedDict, closed=True):
    app_id: "capo_appmonetization.types.app_id.AppId"
    """The ID of the app the metric belongs to."""
    metric_id: "capo_appmonetization.types.metric_id.MetricId"
    """The ID of the metric. We assign this value when you create the metric; it is unique within the app. Treat it as opaque."""
    name: "capo_appmonetization.types.metric_display_name.MetricDisplayName"
    """A human-readable display name for the metric."""
    description: "capo_appmonetization.types.metric_description.MetricDescription"
    """A description of what the metric measures."""
    event_type: "capo_appmonetization.types.source_event_type.SourceEventType"
    """The event type this metric aggregates."""
    unit_name: "capo_appmonetization.types.unit_name.UnitName"
    """The unit of measure for the metric."""
    definition: "capo_appmonetization.types.metric_definition.MetricDefinition"
    """The aggregation definition: filters, aggregation function, grouping, and period."""
    arn: NotRequired["capo_appmonetization.types.resource_arn.ResourceArn"]
    """The Amazon Resource Name (ARN) of the metric. Output only."""
    stage: NotRequired["capo_appmonetization.types.plan_stage.PlanStage"]
    """The offering stage this metric was read from: DRAFT or PUBLISHED. Present on metric reads; absent on write responses."""

app_id instance-attribute

app_id: AppId

The ID of the app the metric belongs to.

arn instance-attribute

arn: NotRequired[ResourceArn]

The Amazon Resource Name (ARN) of the metric. Output only.

definition instance-attribute

definition: MetricDefinition

The aggregation definition: filters, aggregation function, grouping, and period.

description instance-attribute

description: MetricDescription

A description of what the metric measures.

event_type instance-attribute

event_type: SourceEventType

The event type this metric aggregates.

metric_id instance-attribute

metric_id: MetricId

The ID of the metric. We assign this value when you create the metric; it is unique within the app. Treat it as opaque.

name instance-attribute

A human-readable display name for the metric.

stage instance-attribute

stage: NotRequired[PlanStage]

The offering stage this metric was read from: DRAFT or PUBLISHED. Present on metric reads; absent on write responses.

unit_name instance-attribute

unit_name: UnitName

The unit of measure for the metric.