get_percentiles
async
¶
get_percentiles(
query_string: QueryString,
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
index_name: Optional[IndexName] = None,
aggregation_field: Optional[AggregationField] = None,
query_version: Optional[QueryVersion] = None,
percents: Optional[PercentList] = None,
) -> GetPercentilesResponse
Groups the aggregated values that match the query into percentile groupings. The default percentile groupings are: 1,5,25,50,75,95,99, although you can specify your own when you call GetPercentiles. This function returns a value for each percentile group specified (or the default percentile groupings). The percentile group "1" contains the aggregated field value that occurs in approximately one percent of the values that match the query. The percentile group "5" contains the aggregated field value that occurs in approximately five percent of the values that match the query, and so on. The result is an approximation, the more values that match the query, the more accurate the percentile values.
Requires permission to access the GetPercentiles action.
Parameters:
-
index_name(Optional[IndexName], default:None) –The name of the index to search.
-
query_string(QueryString) –The search query string.
-
aggregation_field(Optional[AggregationField], default:None) –The field to aggregate.
-
query_version(Optional[QueryVersion], default:None) –The query version.
-
percents(Optional[PercentList], default:None) –The percentile groups returned.
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
9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 | |