Skip to main content
GET
/
sla
/
schedules
/
{id}
Get a single SLA schedule
curl --request GET \
  --url https://api.altostrat.io/sla/schedules/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "disabled": true,
  "daily": true,
  "weekly": true,
  "monthly": true,
  "day_of_week": "<string>",
  "day_of_month": 123,
  "sla_target": 123,
  "show_only_breached_sites_in_pdf": true,
  "calculate_sla_within_schedule_hours": true,
  "business_hours_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "sites": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "timezone": "<string>",
  "ignore_power_outages": true,
  "notification_group": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

UUID of the schedule

Response

OK. Returns the schedule if found.

id
string<uuid>
name
string

User-defined name for this SLA schedule

disabled
boolean
daily
boolean

Whether to run every day

weekly
boolean

Whether to run every week

monthly
boolean

Whether to run every month (1-28 day constraints)

day_of_week
string

Only relevant if weekly=true (e.g. 'monday')

day_of_month
integer

Only relevant if monthly=true (range 1..28)

sla_target
number

Percentage target for SLA (75-100)

show_only_breached_sites_in_pdf
boolean

If true, only show sites that actually breach SLA in PDF

calculate_sla_within_schedule_hours
boolean

If true, only business hours are used for SLA calculations

business_hours_id
string<uuid>

The ID referencing hours from the 'chrono' microservice

sites
string<uuid>[]
timezone
string

Time zone for the SLA schedule

ignore_power_outages
boolean

If set, ignores 'Power Outage' cause in calculations

notification_group
string | null

Optional group name to notify. If set, the system sends the PDF to that group.

created_at
string<date-time>
updated_at
string<date-time>
I