Skip to content

CustomizableMetricParameters

Source code in docs_src/capo_compute_optimizer/types/customizable_metric_parameters.py
class CustomizableMetricParameters(TypedDict, closed=True):
    threshold: NotRequired[
        "capo_compute_optimizer.types.customizable_metric_threshold.CustomizableMetricThreshold"
    ]
    """<p> The threshold value used for the specified metric parameter. </p> <note> <p>You can only specify the threshold value for CPU utilization.</p> </note>"""
    headroom: NotRequired[
        "capo_compute_optimizer.types.customizable_metric_headroom.CustomizableMetricHeadroom"
    ]
    """<p> The headroom value in percentage used for the specified metric parameter. </p> <p>The following lists the valid values for CPU and memory utilization.</p> <ul> <li> <p>CPU utilization: <code>PERCENT_30 | PERCENT_20 | PERCENT_0</code> </p> </li> <li> <p>Memory utilization: <code>PERCENT_30 | PERCENT_20 | PERCENT_10</code> </p> </li> </ul>"""

headroom instance-attribute

headroom: NotRequired[CustomizableMetricHeadroom]

The headroom value in percentage used for the specified metric parameter.

The following lists the valid values for CPU and memory utilization.

  • CPU utilization: PERCENT_30 | PERCENT_20 | PERCENT_0

  • Memory utilization: PERCENT_30 | PERCENT_20 | PERCENT_10

threshold instance-attribute

threshold: NotRequired[CustomizableMetricThreshold]

The threshold value used for the specified metric parameter.

You can only specify the threshold value for CPU utilization.