Query aggregated monitor stats
get_aggregatesAnswer questions like 'how many times did the nightly import fail last week' or 'which checks had the worst success rate'. Returns totals for the range per monitor per environment (or per region for checks): run_count, complete_count, fail_count, tick_count, alert_count, event_count, duration_mean, downtime_seconds, uptime, and a derived success_rate, matching cronitor metric aggregate. Requires at least one of monitors, groups, tags, or types.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_aggregates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Range end as unix seconds. Defaults to now. | |
| env | No | Environment key or name. Defaults to the organization's default environment. A human saying 'staging' usually means the environment named staging. | |
| tags | No | Tags; includes every monitor carrying any of them. | |
| time | No | Named time range ending now. Overrides start and end. | |
| start | No | Range start as unix seconds. Defaults to one hour before end. | |
| types | No | Monitor types to include. | |
| groups | No | Group keys; includes every monitor in each group. | |
| regions | No | Check regions to include. Defaults to every region. | |
| monitors | No | Monitor keys to include. |