MetricStat
¶
Source code in docs_src/capo_auto_scaling/types/metric_stat.py
metric
instance-attribute
¶
metric: NotRequired[Metric]
The CloudWatch metric to return, including the metric name, namespace, and dimensions. To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics.
stat
instance-attribute
¶
stat: NotRequired[XmlStringMetricStat]
The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of valid values, see the table in Statistics in the Amazon CloudWatch User Guide.
The most commonly used metrics for predictive scaling are Average and Sum.
unit
instance-attribute
¶
unit: NotRequired[MetricUnit]
The unit to use for the returned data points. For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference.