alarms.aggregation

Operation: GET /dataservice/alarms/aggregation

Get aggregated count of alarms based on given query.

def get(
    query: str, site_id: Optional[str] = None
) -> AlarmAggregationResponse: ...

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.aggregation.get()

Operation: POST /dataservice/alarms/aggregation

Get aggregated count of alarms based on given query.

def post(
    payload: Any, site_id: Optional[str] = None
) -> AlarmAggregationResponse: ...

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.aggregation.post()