Interface for all the parts of a metric that can be changed.

interface RdsMetricChange {
    cluster?: any;
    color?: any;
    databaseClass?: string;
    dimensions?: any;
    engineName?: string;
    extendedStatistic?: any;
    instance?: any;
    label?: any;
    period?: any;
    role?: "WRITER" | "READER";
    sourceRegion?: any;
    statistic?: any;
    unit?: any;
    visible?: any;
    yAxis?: any;
}

Hierarchy (view full)

Properties

cluster?: any

Optional [Cluster] to filter down events to.

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].

databaseClass?: string

This dimension filters the data you request for all instances in a database class. For example, you can aggregate metrics for all instances that belong to the database class [db.m1.small].

dimensions?: any

The new dimension for this metric. If this object is missing this property, then no change will be made. However, if the property is there by set to [undefined] then the value will be cleared.

engineName?: string

This dimension filters the data you request for the identified engine name only. For example, you can aggregate metrics for all instances that have the engine name [mysql].

extendedStatistic?: any

The new percentile statistic for the metric associated with the alarm. If this object is missing this property, then no change will be made. However, if the property is there by set to [undefined] then the value will be set to the default.

instance?: any

Optional [Instance] to filter down events to.

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].

period?: any

The new period in seconds over which the specified stat is applied. If this object is missing this property, then no change will be made. However, if the property is there by set to [undefined] then the value will be set to the default (300s).

role?: "WRITER" | "READER"

This dimension filters the data you request for a specific Aurora DB cluster, aggregating the metric by instance role (WRITER/READER). For example, you can aggregate metrics for all READER instances that belong to a cluster.

If this is provided then [cluster] must be provided as well.

sourceRegion?: any

This dimension filters the data you request for the specified region only. For example, you can aggregate metrics for all instances in the region [us-east-1].

statistic?: any

The new statistic to apply to the alarm's associated metric. If this object is missing this property, then no change will be made. However, if the property is there by set to [undefined] then the value will be set to the default.

unit?: any

The new unit for this metric. If this object is missing this property, then no change will be made. However, if the property is there by set to [undefined] then the value will be set to the default.

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