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 |
Synopsis
- data MetricDataResult = MetricDataResult' {
- values :: Maybe [Double]
- id :: Maybe Text
- timestamps :: Maybe [ISO8601]
- messages :: Maybe [MessageData]
- label :: Maybe Text
- statusCode :: Maybe StatusCode
- newMetricDataResult :: MetricDataResult
- metricDataResult_values :: Lens' MetricDataResult (Maybe [Double])
- metricDataResult_id :: Lens' MetricDataResult (Maybe Text)
- metricDataResult_timestamps :: Lens' MetricDataResult (Maybe [UTCTime])
- metricDataResult_messages :: Lens' MetricDataResult (Maybe [MessageData])
- metricDataResult_label :: Lens' MetricDataResult (Maybe Text)
- metricDataResult_statusCode :: Lens' MetricDataResult (Maybe StatusCode)
Documentation
data MetricDataResult Source #
A GetMetricData
call returns an array of MetricDataResult
structures. Each of these structures includes the data points for that
metric, along with the timestamps of those data points and other
identifying information.
See: newMetricDataResult
smart constructor.
MetricDataResult' | |
|
Instances
newMetricDataResult :: MetricDataResult Source #
Create a value of MetricDataResult
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:values:MetricDataResult'
, metricDataResult_values
- The data points for the metric corresponding to Timestamps
. The number
of values always matches the number of timestamps and the timestamp for
Values[x] is Timestamps[x].
$sel:id:MetricDataResult'
, metricDataResult_id
- The short name you specified to represent this metric.
$sel:timestamps:MetricDataResult'
, metricDataResult_timestamps
- The timestamps for the data points, formatted in Unix timestamp format.
The number of timestamps always matches the number of values and the
value for Timestamps[x] is Values[x].
$sel:messages:MetricDataResult'
, metricDataResult_messages
- A list of messages with additional information about the data returned.
$sel:label:MetricDataResult'
, metricDataResult_label
- The human-readable label associated with the data.
$sel:statusCode:MetricDataResult'
, metricDataResult_statusCode
- The status of the returned data. Complete
indicates that all data
points in the requested time range were returned. PartialData
means
that an incomplete set of data points were returned. You can use the
NextToken
value that was returned and repeat your request to get more
data points. NextToken
is not returned if you are performing a math
expression. InternalError
indicates that an error occurred. Retry your
request using NextToken
, if present.
metricDataResult_values :: Lens' MetricDataResult (Maybe [Double]) Source #
The data points for the metric corresponding to Timestamps
. The number
of values always matches the number of timestamps and the timestamp for
Values[x] is Timestamps[x].
metricDataResult_id :: Lens' MetricDataResult (Maybe Text) Source #
The short name you specified to represent this metric.
metricDataResult_timestamps :: Lens' MetricDataResult (Maybe [UTCTime]) Source #
The timestamps for the data points, formatted in Unix timestamp format. The number of timestamps always matches the number of values and the value for Timestamps[x] is Values[x].
metricDataResult_messages :: Lens' MetricDataResult (Maybe [MessageData]) Source #
A list of messages with additional information about the data returned.
metricDataResult_label :: Lens' MetricDataResult (Maybe Text) Source #
The human-readable label associated with the data.
metricDataResult_statusCode :: Lens' MetricDataResult (Maybe StatusCode) Source #
The status of the returned data. Complete
indicates that all data
points in the requested time range were returned. PartialData
means
that an incomplete set of data points were returned. You can use the
NextToken
value that was returned and repeat your request to get more
data points. NextToken
is not returned if you are performing a math
expression. InternalError
indicates that an error occurred. Retry your
request using NextToken
, if present.