interface MetricArgs {
    color?: any;
    dimensions?: any;
    extendedStatistic?: any;
    label?: any;
    name: Input<string>;
    namespace: Input<string>;
    period?: any;
    statistic?: any;
    unit?: any;
    visible?: any;
    yAxis?: any;
}

Properties

color?: any

The six-digit HTML hex color code to be used for this metric.

Only used if this metric is displayed in a [Dashboard] with a [MetricWidget].

dimensions?: any

The dimensions for this metric. For the list of available dimensions see the AWS documentation here.

extendedStatistic?: any

The percentile statistic for the metric associated with the alarm. Specify a value between [0.0] and [100].

label?: any

The label to display for this metric in the graph legend. If this is not specified, the metric is given an autogenerated label that distinguishes it from the other metrics in the widget.

Only used if this metric is displayed in a [Dashboard] with a [MetricWidget].

name: Input<string>

The name for this metric. See docs for supported metrics.

namespace: Input<string>

The namespace for this metric. See docs for the list of namespaces. See docs for supported metrics.

period?: any

The period in seconds over which the specified stat is applied. Must be in multiples of 60. Default to [300] if unspecified.

statistic?: any

The statistic to apply to the alarm's associated metric. Either of the following is supported: SampleCount, Average, Sum, Minimum, Maximum

unit?: any
visible?: any

Set this to true to have the metric appear in the graph, or false to have it be hidden. The default is true.

Only used if this metric is displayed in a [Dashboard] with a [MetricWidget].

yAxis?: any

Where on the graph to display the y-axis for this metric. The default is left.

Only used if this metric is displayed in a [Dashboard] with a [MetricWidget].

Generated using TypeDoc