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.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
Eq GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

Read GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

Show GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

Generic GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

Associated Types

type Rep GetStatistics :: Type -> Type #

NFData GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

Methods

rnf :: GetStatistics -> () #

Hashable GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

ToJSON GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

AWSRequest GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

Associated Types

type AWSResponse 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

type Rep GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

type Rep GetStatistics = D1 ('MetaData "GetStatistics" "Amazonka.IoT.GetStatistics" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "GetStatistics'" 'PrefixI 'True) ((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 GetStatistics Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

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:queryVersion:GetStatistics', getStatistics_queryVersion - The version of the query used to search.

$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:queryString: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_queryVersion :: Lens' GetStatistics (Maybe Text) Source #

The version of the query used to search.

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

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

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
Eq GetStatisticsResponse Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

Read GetStatisticsResponse Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

Show GetStatisticsResponse Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

Generic GetStatisticsResponse Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

Associated Types

type Rep GetStatisticsResponse :: Type -> Type #

NFData GetStatisticsResponse Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

Methods

rnf :: GetStatisticsResponse -> () #

type Rep GetStatisticsResponse Source # 
Instance details

Defined in Amazonka.IoT.GetStatistics

type Rep GetStatisticsResponse = D1 ('MetaData "GetStatisticsResponse" "Amazonka.IoT.GetStatistics" "libZSservicesZSamazonka-iotZSamazonka-iot" '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.