Skip to content
Get started

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

ParametersExpand Collapse
sla_urn: str
ReturnsExpand Collapse
class SlaListDataSourcesResponse:
monitor_data_sources: List[MonitorDataSource]

A list of any monitor data sources associated with the SLA

description: Optional[str]

The monitor's description

name: str

The monitor's display name

urn: str

A unique identifier for the data source

data_source_type: Optional[Literal["MONITOR"]]

The type of the data source

sla_urn: str

A unique identifier for the SLA associated with this data source

status_page_data_source: Optional[StatusPageDataSource]

The SLA's data source for incidents pulled from vendor status pages, if applicable

excluded_product_tags: List[str]

A list of incident tags that are excluded from the SLA's calculations

included_product_tags: List[str]

A list of incident tags that are included in the SLA's calculations

urn: str

A unique identifier for the data source

data_source_type: Optional[Literal["STATUS_PAGE"]]

The type of the data source

vendor_urn: str

A unique identifier for the vendor associated with this data source

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"
}