pub struct PredefinedMetricSpecification {
pub predefined_metric_type: String,
pub resource_label: Option<String>,
}
Expand description
Represents a predefined metric for a target tracking scaling policy to use with Application Auto Scaling.
Only the AWS services that you're using send metrics to Amazon CloudWatch. To determine whether a desired metric already exists by looking up its namespace and dimension using the CloudWatch metrics dashboard in the console, follow the procedure in Building Dashboards with CloudWatch in the Application Auto Scaling User Guide.
Fields§
§predefined_metric_type: String
The metric type. The ALBRequestCountPerTarget
metric type applies only to Spot Fleet requests and ECS services.
resource_label: Option<String>
Identifies the resource associated with the metric type. You can't specify a resource label unless the metric type is ALBRequestCountPerTarget
and there is a target group attached to the Spot Fleet request or ECS service.
The format is app/<load-balancer-name>/<load-balancer-id>/targetgroup/<target-group-name>/<target-group-id>, where:
-
app/<load-balancer-name>/<load-balancer-id> is the final portion of the load balancer ARN
-
targetgroup/<target-group-name>/<target-group-id> is the final portion of the target group ARN.
Trait Implementations§
Source§impl Clone for PredefinedMetricSpecification
impl Clone for PredefinedMetricSpecification
Source§fn clone(&self) -> PredefinedMetricSpecification
fn clone(&self) -> PredefinedMetricSpecification
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for PredefinedMetricSpecification
impl Default for PredefinedMetricSpecification
Source§fn default() -> PredefinedMetricSpecification
fn default() -> PredefinedMetricSpecification
Source§impl<'de> Deserialize<'de> for PredefinedMetricSpecification
impl<'de> Deserialize<'de> for PredefinedMetricSpecification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for PredefinedMetricSpecification
impl PartialEq for PredefinedMetricSpecification
Source§fn eq(&self, other: &PredefinedMetricSpecification) -> bool
fn eq(&self, other: &PredefinedMetricSpecification) -> bool
self
and other
values to be equal, and is used by ==
.