Get details on a specific SLA violation
client.slas.retrieveViolation(stringviolationUrn, SlaRetrieveViolationParams { sla_urn } params, RequestOptionsoptions?): SlaRetrieveViolationResponse { allowable_downtime_hours, data_source, data_source_type, 8 more }
GET/v1/slas/{sla_urn}/violations/{violation_urn}
Get details on a specific SLA violation
Parameters
violationUrn: string
Returns
Get details on a specific SLA violation
import Clarative from 'clarative';
const client = new Clarative({
apiKey: process.env['CLARATIVE_API_KEY'], // This is the default and can be omitted
});
const response = await client.slas.retrieveViolation('violation_urn', { sla_urn: 'sla_urn' });
console.log(response.allowable_downtime_hours);{
"allowable_downtime_hours": 0,
"data_source": {
"excluded_product_tags": [
"string"
],
"included_product_tags": [
"string"
],
"urn": "urn",
"data_source_type": "STATUS_PAGE"
},
"data_source_type": "STATUS_PAGE",
"data_source_urn": "data_source_urn",
"downtime_events": [
{
"duration_hours": 0,
"end_time": "2019-12-27T18:11:19.117Z",
"name": "name",
"start_time": "2019-12-27T18:11:19.117Z"
}
],
"downtime_hours": 0,
"evaluation_period": {
"end_month": {
"month": 0,
"year": 0
},
"start_month": {
"month": 0,
"year": 0
}
},
"sla": {
"description": "description",
"name": "name",
"urn": "urn",
"vendor_urn": "vendor_urn"
},
"uptime_percentage": 0,
"urn": "urn",
"vendor": {
"created_at": "2019-12-27T18:11:19.117Z",
"description": "description",
"name": "name",
"urn": "urn"
}
}Returns Examples
{
"allowable_downtime_hours": 0,
"data_source": {
"excluded_product_tags": [
"string"
],
"included_product_tags": [
"string"
],
"urn": "urn",
"data_source_type": "STATUS_PAGE"
},
"data_source_type": "STATUS_PAGE",
"data_source_urn": "data_source_urn",
"downtime_events": [
{
"duration_hours": 0,
"end_time": "2019-12-27T18:11:19.117Z",
"name": "name",
"start_time": "2019-12-27T18:11:19.117Z"
}
],
"downtime_hours": 0,
"evaluation_period": {
"end_month": {
"month": 0,
"year": 0
},
"start_month": {
"month": 0,
"year": 0
}
},
"sla": {
"description": "description",
"name": "name",
"urn": "urn",
"vendor_urn": "vendor_urn"
},
"uptime_percentage": 0,
"urn": "urn",
"vendor": {
"created_at": "2019-12-27T18:11:19.117Z",
"description": "description",
"name": "name",
"urn": "urn"
}
}