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]) – The hex color code, prefixed with ‘#’ (e.g. ‘#00ff00’), to use when this metric is rendered on a graph. The Color class has a set of standard colors that can be used here.

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

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

deprecated :deprecated: Replaced by MetricConfig.

stability :stability: deprecated

Return type

None

Attributes

color

The hex color code, prefixed with ‘#’ (e.g. ‘#00ff00’), to use when this metric is rendered on a graph. The Color class has a set of standard colors that can be used here.

stability :stability: deprecated

Return type

Optional[str]

label

Label for the metric.

stability :stability: deprecated

Return type

Optional[str]

period

How many seconds to aggregate over.

stability :stability: deprecated

Return type

Union[int, float]

stat

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

stability :stability: deprecated

Return type

Optional[str]