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 |
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
- data GetStatistics = GetStatistics' {}
- newGetStatistics :: Text -> GetStatistics
- getStatistics_queryVersion :: Lens' GetStatistics (Maybe Text)
- getStatistics_aggregationField :: Lens' GetStatistics (Maybe Text)
- getStatistics_indexName :: Lens' GetStatistics (Maybe Text)
- getStatistics_queryString :: Lens' GetStatistics Text
- data GetStatisticsResponse = GetStatisticsResponse' {}
- newGetStatisticsResponse :: Int -> GetStatisticsResponse
- getStatisticsResponse_statistics :: Lens' GetStatisticsResponse (Maybe Statistics)
- getStatisticsResponse_httpStatus :: Lens' GetStatisticsResponse Int
Creating a Request
data GetStatistics Source #
See: newGetStatistics
smart constructor.
GetStatistics' | |
|
Instances
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_aggregationField :: Lens' GetStatistics (Maybe Text) Source #
The aggregation field name.
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.
GetStatisticsResponse' | |
|
Instances
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.
getStatisticsResponse_httpStatus :: Lens' GetStatisticsResponse Int Source #
The response's http status code.