libZSservicesZSamazonka-iotZSamazonka-iot
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoT.GetPercentiles

Description

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

Creating a Request

data GetPercentiles Source #

See: newGetPercentiles smart constructor.

Constructors

GetPercentiles' 

Fields

Instances

Instances details
Eq GetPercentiles Source # 
Instance details

Defined in Amazonka.IoT.GetPercentiles

Read GetPercentiles Source # 
Instance details

Defined in Amazonka.IoT.GetPercentiles

Show GetPercentiles Source # 
Instance details

Defined in Amazonka.IoT.GetPercentiles

Generic GetPercentiles Source # 
Instance details

Defined in Amazonka.IoT.GetPercentiles

Associated Types

type Rep GetPercentiles :: Type -> Type #

NFData GetPercentiles Source # 
Instance details

Defined in Amazonka.IoT.GetPercentiles

Methods

rnf :: GetPercentiles -> () #

Hashable GetPercentiles Source # 
Instance details

Defined in Amazonka.IoT.GetPercentiles

ToJSON GetPercentiles Source # 
Instance details

Defined in Amazonka.IoT.GetPercentiles

AWSRequest GetPercentiles Source # 
Instance details

Defined in Amazonka.IoT.GetPercentiles

Associated Types

type AWSResponse GetPercentiles #

ToHeaders GetPercentiles Source # 
Instance details

Defined in Amazonka.IoT.GetPercentiles

ToPath GetPercentiles Source # 
Instance details

Defined in Amazonka.IoT.GetPercentiles

ToQuery GetPercentiles Source # 
Instance details

Defined in Amazonka.IoT.GetPercentiles

type Rep GetPercentiles Source # 
Instance details

Defined in Amazonka.IoT.GetPercentiles

type Rep GetPercentiles = D1 ('MetaData "GetPercentiles" "Amazonka.IoT.GetPercentiles" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "GetPercentiles'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "percents") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Double])) :*: S1 ('MetaSel ('Just "queryVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "aggregationField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "indexName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "queryString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse GetPercentiles Source # 
Instance details

Defined in Amazonka.IoT.GetPercentiles

newGetPercentiles Source #

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_indexName :: Lens' GetPercentiles (Maybe Text) Source #

The name of the index to search.

Destructuring the Response

data GetPercentilesResponse Source #

See: newGetPercentilesResponse smart constructor.

Constructors

GetPercentilesResponse' 

Fields

Instances

Instances details
Eq GetPercentilesResponse Source # 
Instance details

Defined in Amazonka.IoT.GetPercentiles

Read GetPercentilesResponse Source # 
Instance details

Defined in Amazonka.IoT.GetPercentiles

Show GetPercentilesResponse Source # 
Instance details

Defined in Amazonka.IoT.GetPercentiles

Generic GetPercentilesResponse Source # 
Instance details

Defined in Amazonka.IoT.GetPercentiles

Associated Types

type Rep GetPercentilesResponse :: Type -> Type #

NFData GetPercentilesResponse Source # 
Instance details

Defined in Amazonka.IoT.GetPercentiles

Methods

rnf :: GetPercentilesResponse -> () #

type Rep GetPercentilesResponse Source # 
Instance details

Defined in Amazonka.IoT.GetPercentiles

type Rep GetPercentilesResponse = D1 ('MetaData "GetPercentilesResponse" "Amazonka.IoT.GetPercentiles" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "GetPercentilesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "percentiles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PercentPair])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.