Get uptime metrics for an SLA data source
GET/v1/slas/{sla_urn}/data-sources/{data_source_urn}/uptime-metrics
Get uptime metrics for an SLA data source
Path Parameters
sla_urn: string
data_source_urn: string
Query Parameters
end: string
ISO-formatted datetime for the end of the evaluation period (e.g. 2024-01-31, 2024-01-31T23:59:59Z)
formatdate-time
start: string
ISO-formatted datetime for the start of the evaluation period (e.g. 2024-01-01, 2024-01-15T08:00:00Z)
formatdate-time
Returns
data_source_urn: string
The unique identifier of the data source
sla_urn: string
The unique identifier of the SLA
vendor_urn: string
The unique identifier of the vendor
Get uptime metrics for an SLA data source
curl https://developer.clarative.ai/v1/slas/$SLA_URN/data-sources/$DATA_SOURCE_URN/uptime-metrics \
-H "Authorization: Bearer $CLARATIVE_API_KEY"{
"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"
}
],
"metrics": {
"downtime_hours": 0,
"uptime_percentage": 0
},
"metrics_deduplicated": {
"downtime_hours": 0,
"uptime_percentage": 0
},
"sla_urn": "sla_urn",
"timeframe": {
"end": "2019-12-27T18:11:19.117Z",
"start": "2019-12-27T18:11:19.117Z"
},
"vendor_urn": "vendor_urn"
}Returns Examples
{
"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"
}
],
"metrics": {
"downtime_hours": 0,
"uptime_percentage": 0
},
"metrics_deduplicated": {
"downtime_hours": 0,
"uptime_percentage": 0
},
"sla_urn": "sla_urn",
"timeframe": {
"end": "2019-12-27T18:11:19.117Z",
"start": "2019-12-27T18:11:19.117Z"
},
"vendor_urn": "vendor_urn"
}