Get details on a specific SLA violation
slas.retrieve_violation(strviolation_urn, SlaRetrieveViolationParams**kwargs) -> SlaRetrieveViolationResponse
GET/v1/slas/{sla_urn}/violations/{violation_urn}
Get details on a specific SLA violation
Parameters
sla_urn: str
violation_urn: str
Returns
Get details on a specific SLA violation
import os
from clarative import Clarative
client = Clarative(
api_key=os.environ.get("CLARATIVE_API_KEY"), # This is the default and can be omitted
)
response = client.slas.retrieve_violation(
violation_urn="violation_urn",
sla_urn="sla_urn",
)
print(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",
"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",
"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"
}
}