create-rum-metric
Create a count or distribution metric from RUM events, with filters and group-by tags.
Instructions
Create a metric based on RUM data (count or distribution, with filters and group-by)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"eventType": "<eventType>",
"aggregationType": "<aggregationType>"
},
"name": "create-rum-metric"
}
}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 |