Color

class aws_cdk.aws_cloudwatch.Color

Bases: object

A set of standard colours that can be used in annotations in a GraphWidget.

Example:

# dashboard is of type Dashboard
# execution_count_metric is of type Metric
# error_count_metric is of type Metric


dashboard.add_widgets(cloudwatch.GraphWidget(
    title="Executions vs error rate",

    left=[execution_count_metric],

    right=[error_count_metric.with(
        statistic="average",
        label="Error rate",
        color=cloudwatch.Color.GREEN
    )]
))

Attributes

BLUE = '#1f77b4'
BROWN = '#8c564b'
GREEN = '#2ca02c'
GREY = '#7f7f7f'
ORANGE = '#ff7f0e'
PINK = '#e377c2'
PURPLE = '#9467bd'
RED = '#d62728'