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 |
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.
PublishMetrics' | |
|
Instances
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.
PublishMetricsResponse' | |
|
Instances
Eq PublishMetricsResponse Source # | |
Defined in Amazonka.MwAA.PublishMetrics | |
Read PublishMetricsResponse Source # | |
Show PublishMetricsResponse Source # | |
Defined in Amazonka.MwAA.PublishMetrics showsPrec :: Int -> PublishMetricsResponse -> ShowS # show :: PublishMetricsResponse -> String # showList :: [PublishMetricsResponse] -> ShowS # | |
Generic PublishMetricsResponse Source # | |
Defined in Amazonka.MwAA.PublishMetrics type Rep PublishMetricsResponse :: Type -> Type # | |
NFData PublishMetricsResponse Source # | |
Defined in Amazonka.MwAA.PublishMetrics rnf :: PublishMetricsResponse -> () # | |
type Rep PublishMetricsResponse Source # | |
Defined in Amazonka.MwAA.PublishMetrics type Rep PublishMetricsResponse = D1 ('MetaData "PublishMetricsResponse" "Amazonka.MwAA.PublishMetrics" "libZSservicesZSamazonka-mwaaZSamazonka-mwaa" 'False) (C1 ('MetaCons "PublishMetricsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.