Skip to content

CustomizedScalingMetricSpecification

Source code in docs_src/capo_auto_scaling_plans/types/customized_scaling_metric_specification.py
class CustomizedScalingMetricSpecification(TypedDict, closed=True):
    metric_name: "capo_auto_scaling_plans.types.metric_name.MetricName"
    """<p>The name of the metric.</p>"""
    namespace: "capo_auto_scaling_plans.types.metric_namespace.MetricNamespace"
    """<p>The namespace of the metric.</p>"""
    dimensions: NotRequired[
        "capo_auto_scaling_plans.types.metric_dimensions.MetricDimensions"
    ]
    """<p>The dimensions of the metric.</p> <p>Conditional: If you published your metric with dimensions, you must specify the same dimensions in your customized scaling metric specification.</p>"""
    statistic: "capo_auto_scaling_plans.types.metric_statistic.MetricStatistic"
    """<p>The statistic of the metric.</p>"""
    unit: NotRequired["capo_auto_scaling_plans.types.metric_unit.MetricUnit"]
    """<p>The unit of the metric. </p>"""

dimensions instance-attribute

dimensions: NotRequired[MetricDimensions]

The dimensions of the metric.

Conditional: If you published your metric with dimensions, you must specify the same dimensions in your customized scaling metric specification.

metric_name instance-attribute

metric_name: MetricName

The name of the metric.

namespace instance-attribute

namespace: MetricNamespace

The namespace of the metric.

statistic instance-attribute

statistic: MetricStatistic

The statistic of the metric.

unit instance-attribute

unit: NotRequired[MetricUnit]

The unit of the metric.