Color¶
-
class
aws_cdk.aws_cloudwatch.
Color
(*args: Any, **kwargs)¶ Bases:
object
A set of standard colours that can be used in annotations in a GraphWidget.
- ExampleMetadata
infused
Example:
# dashboard: cloudwatch.Dashboard # execution_count_metric: cloudwatch.Metric # error_count_metric: cloudwatch.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'¶