aito.api.aggregate
- aito.api.aggregate(client: AitoClient, query: Dict, raise_for_status: bool | None = None, use_job: bool = False) AggregateResponse | RequestError
send a query to the Aggregate API
Returns aggregated values like averages, sums, counts, etc.
- Parameters:
client (AitoClient) – the AitoClient instance
query (Dict) – the aggregate query
raise_for_status (Optional[bool]) – raise
RequestErrorif the request fails instead of returning the error If set to None, value from Client will be used. Defaults to Noneuse_job (bool) – use job fo request that takes longer than 30 seconds, defaults to False
- Returns:
AggregateResponseorRequestErrorif an error occurred and not raise_for_status- Return type:
Union[AggregateResponse, RequestError]