List all data sources for an SLA
slas.list_data_sources(strsla_urn) -> SlaListDataSourcesResponse
GET/v1/slas/{sla_urn}/data-sources
List all data sources for an SLA
Parameters
sla_urn: str
Returns
List all data sources for an SLA
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.list_data_sources(
"sla_urn",
)
print(response.monitor_data_sources){
"monitor_data_sources": [
{
"description": "description",
"name": "name",
"urn": "urn",
"data_source_type": "MONITOR"
}
],
"sla_urn": "sla_urn",
"status_page_data_source": {
"excluded_product_tags": [
"string"
],
"included_product_tags": [
"string"
],
"urn": "urn",
"data_source_type": "STATUS_PAGE"
},
"vendor_urn": "vendor_urn"
}Returns Examples
{
"monitor_data_sources": [
{
"description": "description",
"name": "name",
"urn": "urn",
"data_source_type": "MONITOR"
}
],
"sla_urn": "sla_urn",
"status_page_data_source": {
"excluded_product_tags": [
"string"
],
"included_product_tags": [
"string"
],
"urn": "urn",
"data_source_type": "STATUS_PAGE"
},
"vendor_urn": "vendor_urn"
}