data.device.statistics
Operation: GET /dataservice/data/device/statistics
Get statistics types
def get_statistics_type() -> 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.data.device.statistics.get_statistics_type()
Operation: GET /dataservice/data/device/statistics/{state_data_type}
Get device statistics data
def generate_device_statistics_data(
state_data_type: str,
scroll_id: Optional[str] = None,
start_date: Optional[str] = None,
end_date: Optional[str] = None,
count: Optional[int] = None,
time_zone: Optional[str] = None,
) -> List[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.data.device.statistics.generate_device_statistics_data()