========================== device.history.aggregation ========================== Operation: GET /dataservice/device/history/aggregation ------------------------------------------------------ Get aggregated data based on input query and filters. The data can be filtered on time and other unique parameters based upon necessity and intended usage .. code:: python def get(query: Optional[str] = None) -> Any: ... Example: ^^^^^^^^ .. code:: python 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.device.history.aggregation.get() Operation: POST /dataservice/device/history/aggregation ------------------------------------------------------- Get aggregated data based on input query and filters. The data can be filtered on time and other unique parameters based upon necessity and intended usage .. code:: python def post(payload: Any) -> Any: ... Example: ^^^^^^^^ .. code:: python 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.device.history.aggregation.post()