create-slo
Create a new Service Level Objective for monitors, metrics, or time-slice targets. Define thresholds, queries, and tags to track reliability.
Instructions
Create a new Service Level Objective (monitor-based, metric-based, or time-slice). Write-gated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | SLO name | |
| type | Yes | SLO type. 'monitor' uses linked monitors; 'metric' uses a numerator/denominator query; 'time_slice' uses time-slice SLI | |
| thresholds | Yes | One or more {target, timeframe, warning?} entries | |
| description | No | SLO description | |
| monitorIds | No | Required if type='monitor'. List of linked monitor IDs | |
| query | No | Required if type='metric' | |
| tags | No | Tags. Example: ['env:prod', 'team:backend'] | |
| targetThreshold | No | Convenience: target % (e.g. 99.9) | |
| warningThreshold | No | Convenience: warning % |