MetricRenderingProperties

class aws_cdk.aws_cloudwatch.MetricRenderingProperties(*, period, color=None, label=None, stat=None)

Bases: object

__init__(*, period, color=None, label=None, stat=None)

Custom rendering properties that override the default rendering properties specified in the yAxis parameter of the widget object.

Parameters
  • period (Union[int, float]) – How many seconds to aggregate over.

  • color (Optional[str]) – Color for the graph line.

  • label (Optional[str]) – Label for the metric.

  • stat (Optional[str]) – Aggregation function to use (can be either simple or a percentile).

Attributes

color

Color for the graph line.

Return type

Optional[str]

label

Label for the metric.

Return type

Optional[str]

period

How many seconds to aggregate over.

Return type

Union[int, float]

stat

Aggregation function to use (can be either simple or a percentile).

Return type

Optional[str]