Skip to content

Monthly SLA attainment for one HTTP monitor: uptime (from the daily performance rollup) vs the monitor's SLA target. The target comes from the monitor's status-page links when configured (strictest wins), else defaults to 99.9. The current month is partial; a month with no check data has `attained = null`.

GET
/http/job/{job_id}/sla
curl --request GET \
--url https://api.siteqwality.com/http/job/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/sla \
--header 'Authorization: Bearer <token>'
job_id
required
string format: uuid

HTTP monitor identifier

months
integer format: int32

Calendar months to report (default 3, max 24)

Monthly SLA attainment

Media type application/json

Response for GET /http/job/{job_id}/sla.

object
http_job_id
required
string format: uuid
friendly_name
string | null
target
required

Effective SLA target percentage applied to every month.

number format: double
target_source
required

Where the target came from: “status_page” when configured on a status-page link (strictest wins), else “default”.

string
months
required

Newest month first.

Array<object>

Attainment of one calendar month against the monitor’s target.

object
month
required

“YYYY-MM” (UTC calendar month; the newest month is partial).

string
uptime_percentage

Average of daily uptime percentages, 3 decimals. null when the month has no check data.

number | null format: double
days_with_data
required
integer format: int32
target
required
number format: double
attained

uptime >= target; null when there is no data to judge.

boolean | null
Example generated
{
"http_job_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"friendly_name": "example",
"target": 1,
"target_source": "example",
"months": [
{
"month": "example",
"uptime_percentage": 1,
"days_with_data": 1,
"target": 1,
"attained": true
}
]
}

Missing or invalid authentication

HTTP monitor not found

Internal server error