thruk_service_availability
Compute service availability as uptime/SLA percentage over a custom time window. Supports time periods, downtimes, and soft states.
Instructions
Compute availability (uptime / SLA %) for a service over a configurable time window.
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": {
"host": "<host>",
"service": "<service>"
},
"name": "thruk_service_availability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Host name | |
| since | No | Start of analysis window. Thruk relative time ("-7d", "-1m") or ISO datetime ("2026-05-01 00:00:00"). Default: last 7 days. Ignored when ``timeperiod`` is set. | -7d |
| until | No | End of analysis window (same formats as ``since``). Defaults to now. Ignored when ``timeperiod`` is set. | |
| service | Yes | Service description | |
| backends | No | Comma-separated backend names (sites). Omit for all backends. | |
| timeperiod | No | Thruk-native time period shortcut: "last24hours", "lastweek", "lastmonth", "thismonth", etc. Overrides ``since``/``until`` when provided. | |
| with_downtimes | No | Count scheduled downtime periods as outages (withdowntimes=1). | |
| include_soft_states | No | Include soft state changes in calculations (includesoftstates=1). |