List all violations for an SLA, sorted first by timestamp (oldest first) and second by total downtime (longest first).
List all violations for an SLA, sorted first by timestamp (oldest first) and second by total downtime (longest first).
Path Parameters
Query Parameters
An SLA data source's unique identifier
Year and month landing within the last SLA evaluation period to include in the result, in the format YYYY-MM. Defaults to the current time.
Year and month landing within the first SLA evaluation period to include in the result, in the format YYYY-MM. Defaults to 2024-01.
Returns
The total number of allowable downtime hours during the evaluation period, as defined by the SLA's terms
The unique identifier of the data source used to determine the violation
The total number of downtime hours during the evaluation period
The percentage of uptime during the evaluation period
A unique identifier composed of the SLA URN and the evaluation period
List all violations for an SLA, sorted first by timestamp (oldest first) and second by total downtime (longest first).
curl https://developer.clarative.ai/v1/slas/$SLA_URN/violations \
-H "Authorization: Bearer $CLARATIVE_API_KEY"[
{
"allowable_downtime_hours": 0,
"data_source_type": "STATUS_PAGE",
"data_source_urn": "data_source_urn",
"downtime_hours": 0,
"evaluation_period": {
"end_month": {
"month": 0,
"year": 0
},
"start_month": {
"month": 0,
"year": 0
}
},
"uptime_percentage": 0,
"urn": "urn"
}
]Returns Examples
[
{
"allowable_downtime_hours": 0,
"data_source_type": "STATUS_PAGE",
"data_source_urn": "data_source_urn",
"downtime_hours": 0,
"evaluation_period": {
"end_month": {
"month": 0,
"year": 0
},
"start_month": {
"month": 0,
"year": 0
}
},
"uptime_percentage": 0,
"urn": "urn"
}
]