url.monitor

Operation: GET /dataservice/url/monitor

List url’s with monitoring configuration and details about the current state of alarm.

def get() -> List[UrlMonitoringInfoInner]: ...

Example:

from catalyswan.core import create_client

url = "example.com"
username = "admin"
password = "password123"

with create_client(
    url=url, username=username, password=password
) as client:
    client.url.monitor.get()

Operation: PUT /dataservice/url/monitor

Update monitor configuration related to the url

def put(payload: Any) -> None: ...

Example:

from catalyswan.core import create_client

url = "example.com"
username = "admin"
password = "password123"

with create_client(
    url=url, username=username, password=password
) as client:
    client.url.monitor.put()

Operation: POST /dataservice/url/monitor

Monitor the url with specified configuration.

def post(payload: Any) -> None: ...

Example:

from catalyswan.core import create_client

url = "example.com"
username = "admin"
password = "password123"

with create_client(
    url=url, username=username, password=password
) as client:
    client.url.monitor.post()

Operation: DELETE /dataservice/url/monitor

Delete an url which is already being monitored.

def delete(url: str) -> None: ...

Example:

from catalyswan.core import create_client

url = "example.com"
username = "admin"
password = "password123"

with create_client(
    url=url, username=username, password=password
) as client:
    client.url.monitor.delete()