MetricGraphConfig

class aws_cdk.aws_cloudwatch.MetricGraphConfig(*, metric_name, namespace, period, rendering_properties, color=None, dimensions=None, label=None, statistic=None, unit=None)

Bases: object

(deprecated) Properties used to construct the Metric identifying part of a Graph.

Parameters
  • metric_name (str) – (deprecated) Name of the metric.

  • namespace (str) – (deprecated) Namespace of the metric.

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

  • rendering_properties (MetricRenderingProperties) – (deprecated) Rendering properties override yAxis parameter of the widget object.

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

  • dimensions (Optional[List[Dimension]]) – (deprecated) The dimensions to apply to the alarm.

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

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

  • unit (Optional[Unit]) – (deprecated) The unit of the alarm.

Deprecated

Replaced by MetricConfig

Stability

deprecated

Attributes

color

(deprecated) Color for the graph line.

Deprecated

Use color in renderingProperties

Stability

deprecated

Return type

Optional[str]

dimensions

(deprecated) The dimensions to apply to the alarm.

Stability

deprecated

Return type

Optional[List[Dimension]]

label

(deprecated) Label for the metric.

Deprecated

Use label in renderingProperties

Stability

deprecated

Return type

Optional[str]

metric_name

(deprecated) Name of the metric.

Stability

deprecated

Return type

str

namespace

(deprecated) Namespace of the metric.

Stability

deprecated

Return type

str

period

(deprecated) How many seconds to aggregate over.

Deprecated

Use period in renderingProperties

Stability

deprecated

Return type

Union[int, float]

rendering_properties

(deprecated) Rendering properties override yAxis parameter of the widget object.

Stability

deprecated

Return type

MetricRenderingProperties

statistic

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

Deprecated

Use stat in renderingProperties

Stability

deprecated

Return type

Optional[str]

unit

(deprecated) The unit of the alarm.

Deprecated

not used in dashboard widgets

Stability

deprecated

Return type

Optional[Unit]