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 |
Retrieves batches of metric data collected based on your sending activity.
You can execute this operation no more than 16 times per second, and with at most 160 queries from the batches per second (cumulative).
Synopsis
- data BatchGetMetricData = BatchGetMetricData' {}
- newBatchGetMetricData :: NonEmpty BatchGetMetricDataQuery -> BatchGetMetricData
- batchGetMetricData_queries :: Lens' BatchGetMetricData (NonEmpty BatchGetMetricDataQuery)
- data BatchGetMetricDataResponse = BatchGetMetricDataResponse' {
- errors :: Maybe [MetricDataError]
- results :: Maybe [MetricDataResult]
- httpStatus :: Int
- newBatchGetMetricDataResponse :: Int -> BatchGetMetricDataResponse
- batchGetMetricDataResponse_errors :: Lens' BatchGetMetricDataResponse (Maybe [MetricDataError])
- batchGetMetricDataResponse_results :: Lens' BatchGetMetricDataResponse (Maybe [MetricDataResult])
- batchGetMetricDataResponse_httpStatus :: Lens' BatchGetMetricDataResponse Int
Creating a Request
data BatchGetMetricData Source #
Represents a request to retrieve a batch of metric data.
See: newBatchGetMetricData
smart constructor.
BatchGetMetricData' | |
|
Instances
newBatchGetMetricData Source #
Create a value of BatchGetMetricData
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:queries:BatchGetMetricData'
, batchGetMetricData_queries
- A list of queries for metrics to be retrieved.
Request Lenses
batchGetMetricData_queries :: Lens' BatchGetMetricData (NonEmpty BatchGetMetricDataQuery) Source #
A list of queries for metrics to be retrieved.
Destructuring the Response
data BatchGetMetricDataResponse Source #
Represents the result of processing your metric data batch request
See: newBatchGetMetricDataResponse
smart constructor.
BatchGetMetricDataResponse' | |
|
Instances
newBatchGetMetricDataResponse Source #
Create a value of BatchGetMetricDataResponse
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:errors:BatchGetMetricDataResponse'
, batchGetMetricDataResponse_errors
- A list of MetricDataError
encountered while processing your metric
data batch request.
$sel:results:BatchGetMetricDataResponse'
, batchGetMetricDataResponse_results
- A list of successfully retrieved MetricDataResult
.
$sel:httpStatus:BatchGetMetricDataResponse'
, batchGetMetricDataResponse_httpStatus
- The response's http status code.
Response Lenses
batchGetMetricDataResponse_errors :: Lens' BatchGetMetricDataResponse (Maybe [MetricDataError]) Source #
A list of MetricDataError
encountered while processing your metric
data batch request.
batchGetMetricDataResponse_results :: Lens' BatchGetMetricDataResponse (Maybe [MetricDataResult]) Source #
A list of successfully retrieved MetricDataResult
.
batchGetMetricDataResponse_httpStatus :: Lens' BatchGetMetricDataResponse Int Source #
The response's http status code.