MetricDefinition
¶
Used by
-
AppMonetizationClient Operations -
AsyncAppMonetizationClient Operations
Source code in docs_src/capo_appmonetization/types/metric_definition.py
filters
instance-attribute
¶
filters: MetricFilterList
The predicates selecting which events contribute to the metric. Combined with logical AND.
function
instance-attribute
¶
function: AggregationFunction
The aggregation function applied to matching events (SUM, COUNT, or MAX).
function_field
instance-attribute
¶
function_field: NotRequired[IdentifierField]
The event property key the aggregation function operates on. Required for SUM and MAX; ignored for COUNT.
group_by
instance-attribute
¶
group_by: GroupByFieldList
The event fields to group aggregated results by.