create_service_level
Create a service level indicator (SLI) on an entity to define and monitor service level objectives (SLOs) using NRQL event queries and target thresholds.
Instructions
Create a Service Level Indicator on an entity. For SLIs over OTEL distribution metrics (FROM Metric), never use function COUNT (it counts pre-aggregated data points, not requests): use GET_FIELD for availability and GET_CDF_COUNT with a threshold for latency.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_guid | Yes | GUID of the entity to attach the SLI to | |
| name | Yes | SLI name | |
| description | No | SLI description (optional) | |
| events | Yes | SLI event queries. Provide validEvents plus either goodEvents or badEvents. | |
| objectives | Yes | SLO objectives, e.g. [{target: 99.9, timeWindow: {rolling: {count: 28, unit: DAY}}}] | |
| account_id | No | Account ID (optional) |