## Get Uptime Metrics **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 - `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 - `data_source_urn: string` The unique identifier of the data source - `downtime_events: array of object { duration_hours, end_time, name, start_time }` A list of downtime events that occurred during the timeframe - `duration_hours: number` The duration of the downtime event in hours - `end_time: string` The end time of the downtime event - `name: string` The display name of the downtime event - `start_time: string` The start time of the downtime event - `downtime_hours: number` The total number of downtime hours during the timeframe - `sla_urn: string` The unique identifier of the SLA - `timeframe: object { end, start }` The timeframe for which the uptime metrics are calculated - `end: string` The ISO-formatted end datetime of the timeframe for which the metrics are calculated - `start: string` The ISO-formatted start datetime of the timeframe for which the metrics are calculated - `uptime_percentage: number` The percentage of uptime during the timeframe - `vendor_urn: string` The unique identifier of the vendor ### Example ```http curl https://developer.clarative.ai/v1/slas/$SLA_URN/data-sources/$DATA_SOURCE_URN/uptime-metrics \ -H "Authorization: Bearer $CLARATIVE_API_KEY" ```