Builder

class Builder

Properties

Link copied to clipboard

The metric to return, including the metric name, namespace, and dimensions.

Link copied to clipboard
var period: Int?

The granularity, in seconds, of the returned data points. For metrics with regular resolution, a period can be as short as one minute (60 seconds) and must be a multiple of 60. For high-resolution metrics that are collected at intervals of less than one minute, the period can be 1, 5, 10, 30, 60, or any multiple of 60. High-resolution metrics are those metrics stored by a PutMetricData call that includes a StorageResolution of 1 second.

Link copied to clipboard
var stat: String?

The statistic to return. It can include any CloudWatch statistic or extended statistic.

Link copied to clipboard

When you are using a Put operation, this defines what unit you want to use when storing the metric.

Functions

Link copied to clipboard
fun metric(block: Metric.Builder.() -> Unit)