Skip to content

Publish Metrics

mwaa_publish_metrics R Documentation

Internal only

Description

Internal only. Publishes environment health metrics to Amazon CloudWatch.

Usage

mwaa_publish_metrics(EnvironmentName, MetricData)

Arguments

EnvironmentName

[required] Internal only. The name of the environment.

MetricData

[required] Internal only. Publishes metrics to Amazon CloudWatch. To learn more about the metrics published to Amazon CloudWatch, see Amazon MWAA performance metrics in Amazon CloudWatch.

Value

An empty list.

Request syntax

svc$publish_metrics(
  EnvironmentName = "string",
  MetricData = list(
    list(
      MetricName = "string",
      Timestamp = as.POSIXct(
        "2015-01-01"
      ),
      Dimensions = list(
        list(
          Name = "string",
          Value = "string"
        )
      ),
      Value = 123.0,
      Unit = "Seconds"|"Microseconds"|"Milliseconds"|"Bytes"|"Kilobytes"|"Megabytes"|"Gigabytes"|"Terabytes"|"Bits"|"Kilobits"|"Megabits"|"Gigabits"|"Terabits"|"Percent"|"Count"|"Bytes/Second"|"Kilobytes/Second"|"Megabytes/Second"|"Gigabytes/Second"|"Terabytes/Second"|"Bits/Second"|"Kilobits/Second"|"Megabits/Second"|"Gigabits/Second"|"Terabits/Second"|"Count/Second"|"None",
      StatisticValues = list(
        SampleCount = 123,
        Sum = 123.0,
        Minimum = 123.0,
        Maximum = 123.0
      )
    )
  )
)