List all violations for an SLA
GET/v1/slas/{sla_urn}/violations
List all violations for an SLA
Path Parameters
sla_urn: string
Query Parameters
data_source_urn: optional string
An SLA data source's unique identifier
timeframe_end: optional string
Year and month landing within the last SLA evaluation period to include in the result, in the format YYYY-MM
timeframe_start: optional string
Year and month landing within the first SLA evaluation period to include in the result, in the format YYYY-MM
Returns
allowable_downtime_hours: number
The total number of allowable downtime hours during the evaluation period, as defined by the SLA's terms
downtime_hours: number
The total number of downtime hours during the evaluation period
uptime_percentage: number
The percentage of uptime during the evaluation period
urn: string
A unique identifier composed of the SLA URN and the evaluation period
List all violations for an SLA
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",
"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",
"downtime_hours": 0,
"evaluation_period": {
"end_month": {
"month": 0,
"year": 0
},
"start_month": {
"month": 0,
"year": 0
}
},
"uptime_percentage": 0,
"urn": "urn"
}
]