| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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
- data GetStatistics = GetStatistics' {}
- newGetStatistics :: Text -> GetStatistics
- getStatistics_aggregationField :: Lens' GetStatistics (Maybe Text)
- getStatistics_indexName :: Lens' GetStatistics (Maybe Text)
- getStatistics_queryVersion :: 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.
Constructors
| GetStatistics' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetStatistics |
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_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_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
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.