get_statistics
¶
get_statistics(
query_string: QueryString,
*,
config_overrides: Optional[IoTClientConfig] = 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/io_t.py
9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 | |