create-rum-metric
Create a count or distribution metric from RUM events, filtered and grouped by custom fields, to track user experience.
Instructions
Create a metric based on RUM data (count or distribution, with filters and group-by)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The name of the rum-based metric. Example: rum.page_view_count | |
| eventType | Yes | The RUM event type to use. Example: view | |
| aggregationType | Yes | Aggregation type. 'count' counts events, 'distribution' creates a distribution metric | |
| path | No | Path to the metric value. Required for distribution metrics. Example: @view.loading_time | |
| includePercentiles | No | Whether to include percentile aggregations. Only for distribution metrics | |
| filterQuery | No | RUM search query to filter events. Example: @service:my-app @view.url_path:/checkout | |
| groupBy | No | Fields to group the metric by | |
| uniquenessWhen | No | When to count uniqueness. Only for session/view event types. 'match' = when event matches, 'end' = when session/view ends |