Skip to content

CustomizedLoadMetricSpecification

Source code in docs_src/capo_auto_scaling_plans/types/customized_load_metric_specification.py
class CustomizedLoadMetricSpecification(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 load metric specification.</p>"""
    statistic: "capo_auto_scaling_plans.types.metric_statistic.MetricStatistic"
    """<p>The statistic of the metric. The only valid value is <code>Sum</code>.</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 load 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. The only valid value is Sum.

unit instance-attribute

unit: NotRequired[MetricUnit]

The unit of the metric.