MetricConfig

class aws_cdk.aws_cloudwatch.MetricConfig(*, math_expression=None, metric_stat=None, rendering_properties=None)

Bases: object

__init__(*, math_expression=None, metric_stat=None, rendering_properties=None)

Properties of a rendered metric.

Parameters
  • math_expression (Optional[MetricExpressionConfig]) – In case the metric is a math expression, the details of the math expression. Default: - None

  • metric_stat (Optional[MetricStatConfig]) – In case the metric represents a query, the details of the query. Default: - None

  • rendering_properties (Optional[Mapping[str, Any]]) – Additional properties which will be rendered if the metric is used in a dashboard. Examples are ‘label’ and ‘color’, but any key in here will be added to dashboard graphs. Default: - None

Return type

None

Attributes

math_expression

In case the metric is a math expression, the details of the math expression.

default :default: - None

Return type

Optional[MetricExpressionConfig]

metric_stat

In case the metric represents a query, the details of the query.

default :default: - None

Return type

Optional[MetricStatConfig]

rendering_properties

Additional properties which will be rendered if the metric is used in a dashboard.

Examples are ‘label’ and ‘color’, but any key in here will be added to dashboard graphs.

default :default: - None

Return type

Optional[Mapping[str, Any]]