sla_getsli
Retrieves SLA service level indicator (SLI) data to verify period-by-period whether services met their availability targets.
Instructions
Get SLA Service Level Indicator (SLI) data — the actual calculated availability percentages for services covered by an SLA. Returns period-by-period SLI values showing whether the SLO target was met. Required: 'slaid'. Optionally filter by 'serviceids' and time range with 'period_from'/'period_to'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slaid | Yes | ID of the SLA to retrieve SLI data for. | |
| server | No | Target Zabbix server. Available: default. Defaults to 'default' if omitted. | |
| raw_json | No | Strips the security disclaimer preamble from the response so it is pure JSON. Default: false. Requires the bearer token to have 'allow_raw_json' explicitly enabled by an operator in the admin portal - tokens without that policy receive a PolicyError instead. WARNING: setting true bypasses the prompt-injection mitigation marker that wraps untrusted Zabbix data (host names, item descriptions, problem text). LLM clients (Claude, GPT, Cursor, ...) should leave this false; only programmatic non-LLM consumers (Python scripts, n8n workflows that json.loads the result) should set true. | |
| period_to | No | Return SLI data up to this time (Unix timestamp, ISO 8601 date-time such as 2026-04-01T08:00:00Z, or a relative time such as now-1h, now/d or now-7d/d; a value without a zone is read in the zone resolved for the call). | |
| serviceids | No | Return SLI data only for these service IDs. | |
| period_from | No | Return SLI data starting from this time (Unix timestamp, ISO 8601 date-time such as 2026-04-01T08:00:00Z, or a relative time such as now-1h, now/d or now-7d/d; a value without a zone is read in the zone resolved for the call). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |