get_statistics
async
¶
get_statistics(
query_string: QueryString,
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
index_name: Optional[IndexName] = None,
aggregation_field: Optional[AggregationField] = None,
query_version: Optional[QueryVersion] = None,
) -> GetStatisticsResponse
Returns the count, average, sum, minimum, maximum, sum of squares, variance, and standard deviation for the specified aggregated field. If the aggregation field is of type String, only the count statistic is returned.
Requires permission to access the GetStatistics action.
Parameters:
-
index_name(Optional[IndexName], default:None) –The name of the index to search. The default value is
AWS_Things. -
query_string(QueryString) –The query used to search. You can specify "*" for the query string to get the count of all indexed things in your Amazon Web Services account.
-
aggregation_field(Optional[AggregationField], default:None) –The aggregation field name.
-
query_version(Optional[QueryVersion], default:None) –The version of the query used to search.
Raises:
-
IndexNotReadyException–The index is not ready.
-
InternalFailureException–An unexpected error has occurred.
-
InvalidAggregationException–The aggregation is invalid.
-
InvalidQueryException–The query is invalid.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
UnauthorizedException–You are not authorized to perform this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/async_io_t.py
9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 | |