Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Synopsis
- data GetPercentiles = GetPercentiles' {
- percents :: Maybe [Double]
- queryVersion :: Maybe Text
- aggregationField :: Maybe Text
- indexName :: Maybe Text
- queryString :: Text
- newGetPercentiles :: Text -> GetPercentiles
- getPercentiles_percents :: Lens' GetPercentiles (Maybe [Double])
- getPercentiles_queryVersion :: Lens' GetPercentiles (Maybe Text)
- getPercentiles_aggregationField :: Lens' GetPercentiles (Maybe Text)
- getPercentiles_indexName :: Lens' GetPercentiles (Maybe Text)
- getPercentiles_queryString :: Lens' GetPercentiles Text
- data GetPercentilesResponse = GetPercentilesResponse' {
- percentiles :: Maybe [PercentPair]
- httpStatus :: Int
- newGetPercentilesResponse :: Int -> GetPercentilesResponse
- getPercentilesResponse_percentiles :: Lens' GetPercentilesResponse (Maybe [PercentPair])
- getPercentilesResponse_httpStatus :: Lens' GetPercentilesResponse Int
Creating a Request
data GetPercentiles Source #
See: newGetPercentiles
smart constructor.
GetPercentiles' | |
|
Instances
Create a value of GetPercentiles
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:percents:GetPercentiles'
, getPercentiles_percents
- The percentile groups returned.
$sel:queryVersion:GetPercentiles'
, getPercentiles_queryVersion
- The query version.
$sel:aggregationField:GetPercentiles'
, getPercentiles_aggregationField
- The field to aggregate.
$sel:indexName:GetPercentiles'
, getPercentiles_indexName
- The name of the index to search.
$sel:queryString:GetPercentiles'
, getPercentiles_queryString
- The search query string.
Request Lenses
getPercentiles_percents :: Lens' GetPercentiles (Maybe [Double]) Source #
The percentile groups returned.
getPercentiles_queryVersion :: Lens' GetPercentiles (Maybe Text) Source #
The query version.
getPercentiles_aggregationField :: Lens' GetPercentiles (Maybe Text) Source #
The field to aggregate.
getPercentiles_indexName :: Lens' GetPercentiles (Maybe Text) Source #
The name of the index to search.
getPercentiles_queryString :: Lens' GetPercentiles Text Source #
The search query string.
Destructuring the Response
data GetPercentilesResponse Source #
See: newGetPercentilesResponse
smart constructor.
GetPercentilesResponse' | |
|
Instances
newGetPercentilesResponse Source #
Create a value of GetPercentilesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:percentiles:GetPercentilesResponse'
, getPercentilesResponse_percentiles
- The percentile values of the aggregated fields.
$sel:httpStatus:GetPercentilesResponse'
, getPercentilesResponse_httpStatus
- The response's http status code.
Response Lenses
getPercentilesResponse_percentiles :: Lens' GetPercentilesResponse (Maybe [PercentPair]) Source #
The percentile values of the aggregated fields.
getPercentilesResponse_httpStatus :: Lens' GetPercentilesResponse Int Source #
The response's http status code.