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 |
Amazonka.MwAA.PublishMetrics
Description
An operation for publishing metrics from the customers to the Ops plane.
Synopsis
- data PublishMetrics = PublishMetrics' {
- environmentName :: Text
- metricData :: [MetricDatum]
- newPublishMetrics :: Text -> PublishMetrics
- publishMetrics_environmentName :: Lens' PublishMetrics Text
- publishMetrics_metricData :: Lens' PublishMetrics [MetricDatum]
- data PublishMetricsResponse = PublishMetricsResponse' {
- httpStatus :: Int
- newPublishMetricsResponse :: Int -> PublishMetricsResponse
- publishMetricsResponse_httpStatus :: Lens' PublishMetricsResponse Int
Creating a Request
data PublishMetrics Source #
See: newPublishMetrics
smart constructor.
Constructors
PublishMetrics' | |
Fields
|
Instances
Arguments
:: Text | |
-> PublishMetrics |
Create a value of PublishMetrics
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:environmentName:PublishMetrics'
, publishMetrics_environmentName
- Publishes environment metric data to Amazon CloudWatch.
$sel:metricData:PublishMetrics'
, publishMetrics_metricData
- Publishes metric data points to Amazon CloudWatch. CloudWatch associates
the data points with the specified metrica.
Request Lenses
publishMetrics_environmentName :: Lens' PublishMetrics Text Source #
Publishes environment metric data to Amazon CloudWatch.
publishMetrics_metricData :: Lens' PublishMetrics [MetricDatum] Source #
Publishes metric data points to Amazon CloudWatch. CloudWatch associates the data points with the specified metrica.
Destructuring the Response
data PublishMetricsResponse Source #
See: newPublishMetricsResponse
smart constructor.
Constructors
PublishMetricsResponse' | |
Fields
|
Instances
newPublishMetricsResponse Source #
Create a value of PublishMetricsResponse
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:httpStatus:PublishMetricsResponse'
, publishMetricsResponse_httpStatus
- The response's http status code.
Response Lenses
publishMetricsResponse_httpStatus :: Lens' PublishMetricsResponse Int Source #
The response's http status code.