amazonka-iot-2.0: Amazon IoT SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IoT.GetStatistics

Description

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.

Synopsis

Creating a Request

data GetStatistics Source #

See: newGetStatistics smart constructor.

Constructors

GetStatistics' 

Fields

Instances

Instances details
ToJSON GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

ToHeaders GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

ToPath GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

ToQuery GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

AWSRequest GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

Associated Types

type AWSResponse GetStatistics #

Generic GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

Associated Types

type Rep GetStatistics :: Type -> Type #

Read GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

Show GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

NFData GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

Methods

rnf :: GetStatistics -> () #

Eq GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

Hashable GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

type AWSResponse GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

type Rep GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

type Rep GetStatistics = D1 ('MetaData "GetStatistics" "Amazonka.IoT.GetStatistics" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "GetStatistics'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "aggregationField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "indexName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "queryVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "queryString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newGetStatistics Source #

Create a value of GetStatistics 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:aggregationField:GetStatistics', getStatistics_aggregationField - The aggregation field name.

$sel:indexName:GetStatistics', getStatistics_indexName - The name of the index to search. The default value is AWS_Things.

$sel:queryVersion:GetStatistics', getStatistics_queryVersion - The version of the query used to search.

GetStatistics, getStatistics_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.

Request Lenses

getStatistics_indexName :: Lens' GetStatistics (Maybe Text) Source #

The name of the index to search. The default value is AWS_Things.

getStatistics_queryVersion :: Lens' GetStatistics (Maybe Text) Source #

The version of the query used to search.

getStatistics_queryString :: Lens' GetStatistics Text Source #

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.

Destructuring the Response

data GetStatisticsResponse Source #

See: newGetStatisticsResponse smart constructor.

Constructors

GetStatisticsResponse' 

Fields

Instances

Instances details
Generic GetStatisticsResponse Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

Associated Types

type Rep GetStatisticsResponse :: Type -> Type #

Read GetStatisticsResponse Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

Show GetStatisticsResponse Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

NFData GetStatisticsResponse Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

Methods

rnf :: GetStatisticsResponse -> () #

Eq GetStatisticsResponse Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

type Rep GetStatisticsResponse Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

type Rep GetStatisticsResponse = D1 ('MetaData "GetStatisticsResponse" "Amazonka.IoT.GetStatistics" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "GetStatisticsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "statistics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Statistics)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetStatisticsResponse Source #

Create a value of GetStatisticsResponse 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:statistics:GetStatisticsResponse', getStatisticsResponse_statistics - The statistics returned by the Fleet Indexing service based on the query and aggregation field.

$sel:httpStatus:GetStatisticsResponse', getStatisticsResponse_httpStatus - The response's http status code.

Response Lenses

getStatisticsResponse_statistics :: Lens' GetStatisticsResponse (Maybe Statistics) Source #

The statistics returned by the Fleet Indexing service based on the query and aggregation field.