alarms.count

Operation: GET /dataservice/alarms/count

Get the count of alarms which are active and not acknowledged by user.

def get_count_1() -> Any: ...

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.alarms.count.get_count_1()

Operation: POST /dataservice/alarms/count

Get the count of alarms as per the query passed.

def post_count(
    payload: Optional[Any] = None, site_id: Optional[str] = None
) -> List[AlarmCountPost]: ...

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.alarms.count.post_count()