compare_metric_windows
Compare an aggregate against the same window in the past so regressions show up as a delta, which is more conclusive than an absolute value alone.
Instructions
Compare an aggregate against the same window in the past.
The baseline makes a regression visible as a delta, which is usually more conclusive than an absolute value taken on its own.
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": {
"nrql_select": "<nrql_select>",
"event_type": "<event_type>"
},
"name": "compare_metric_windows"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | 1 HOUR AGO | |
| where | No | WHERE clause body. | |
| event_type | Yes | Event type, e.g. Transaction or Metric. | |
| account_ids | No | ||
| nrql_select | Yes | Aggregations only, e.g. 'percentile(duration, 95)' or 'rate(count(*), 1 minute)'. | |
| compare_with | No | 1 DAY AGO |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |