thruk_alert_heatmap
Count alerts grouped by time buckets over a configurable window. Filter by host, hostgroup, service, or custom variable to analyze alert patterns.
Instructions
Return alert counts grouped by time bucket over a window.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Start of analysis window. Thruk relative time ("-2h", "-7d") or ISO datetime ("2026-05-21 14:00:00"). Default: last 24 h. | -24h |
| until | No | End of the time window (same formats as since). Default: now. | |
| bucket | No | Time bucket width: '15m', '30m', '1h' (default), '6h', '1d'. | 1h |
| filter | No | Structured filter tree supporting AND/OR nesting. Two node types: leaf: {"type":"leaf", "field":"...", "op":"...", "value":...} group: {"type":"group", "operator":"and"|"or", "conditions":[...]} Available fields: custom_var, host, hostgroup, service Operators: eq, gte, in, lte, neq, regex Examples: # Objects in HG_AGILE: {"type":"leaf","field":"hostgroup","op":"eq","value":"HG_AGILE"} # In HG_AGILE OR with KERNEL=windows: {"type":"group","operator":"or","conditions":[ {"type":"leaf","field":"hostgroup","op":"eq","value":"HG_AGILE"}, {"type":"leaf","field":"custom_var","op":"eq","value":{"var":"KERNEL","val":"windows"}} ]} | |
| backends | No | Comma-separated backend names (sites). Omit for all backends. |