Skip to content

UpdateMetricRequest

Source code in docs_src/capo_appmonetization/types/update_metric_request.py
class UpdateMetricRequest(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 update."""
    name: NotRequired[
        "capo_appmonetization.types.metric_display_name.MetricDisplayName"
    ]
    """A human-readable display name for the metric."""
    description: NotRequired[
        "capo_appmonetization.types.metric_description.MetricDescription"
    ]
    """A description of what the metric measures."""
    event_type: NotRequired[
        "capo_appmonetization.types.source_event_type.SourceEventType"
    ]
    """The event type this metric aggregates."""
    unit_name: NotRequired["capo_appmonetization.types.unit_name.UnitName"]
    """The unit of measure for the metric (for example, "requests"), in lowercase snake_case."""
    definition: NotRequired[
        "capo_appmonetization.types.metric_definition.MetricDefinition"
    ]
    """The aggregation definition: filters, aggregation function, grouping, and period."""

app_id instance-attribute

app_id: AppId

The ID of the app.

definition instance-attribute

definition: NotRequired[MetricDefinition]

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

description instance-attribute

description: NotRequired[MetricDescription]

A description of what the metric measures.

event_type instance-attribute

event_type: NotRequired[SourceEventType]

The event type this metric aggregates.

metric_id instance-attribute

metric_id: MetricId

The ID of the metric to update.

name instance-attribute

name: NotRequired[MetricDisplayName]

A human-readable display name for the metric.

unit_name instance-attribute

unit_name: NotRequired[UnitName]

The unit of measure for the metric (for example, "requests"), in lowercase snake_case.