pub struct PredictiveScalingPredefinedMetricPair {
pub predefined_metric_type: String,
pub resource_label: Option<String>,
}
Expand description
Represents a metric pair for a predictive scaling policy.
Fields
predefined_metric_type: String
Indicates which metrics to use. There are two different types of metrics for each metric type: one is a load metric and one is a scaling metric. For example, if the metric type is ASGCPUUtilization
, the Auto Scaling group's total CPU metric is used as the load metric, and the average CPU metric is used for the scaling metric.
resource_label: Option<String>
A label that uniquely identifies a specific Application Load Balancer target group from which to determine the request count served by your Auto Scaling group. You can't specify a resource label unless the target group is attached to the Auto Scaling group.
You create the resource label by appending the final portion of the load balancer ARN and the final portion of the target group ARN into a single value, separated by a forward slash (/). The format of the resource label is:
app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d
.
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.
To find the ARN for an Application Load Balancer, use the DescribeLoadBalancers API operation. To find the ARN for the target group, use the DescribeTargetGroups API operation.
Trait Implementations
sourceimpl Clone for PredictiveScalingPredefinedMetricPair
impl Clone for PredictiveScalingPredefinedMetricPair
sourcefn clone(&self) -> PredictiveScalingPredefinedMetricPair
fn clone(&self) -> PredictiveScalingPredefinedMetricPair
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for PredictiveScalingPredefinedMetricPair
impl Default for PredictiveScalingPredefinedMetricPair
sourcefn default() -> PredictiveScalingPredefinedMetricPair
fn default() -> PredictiveScalingPredefinedMetricPair
Returns the “default value” for a type. Read more
sourceimpl PartialEq<PredictiveScalingPredefinedMetricPair> for PredictiveScalingPredefinedMetricPair
impl PartialEq<PredictiveScalingPredefinedMetricPair> for PredictiveScalingPredefinedMetricPair
sourcefn eq(&self, other: &PredictiveScalingPredefinedMetricPair) -> bool
fn eq(&self, other: &PredictiveScalingPredefinedMetricPair) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PredictiveScalingPredefinedMetricPair) -> bool
fn ne(&self, other: &PredictiveScalingPredefinedMetricPair) -> bool
This method tests for !=
.
impl StructuralPartialEq for PredictiveScalingPredefinedMetricPair
Auto Trait Implementations
impl RefUnwindSafe for PredictiveScalingPredefinedMetricPair
impl Send for PredictiveScalingPredefinedMetricPair
impl Sync for PredictiveScalingPredefinedMetricPair
impl Unpin for PredictiveScalingPredefinedMetricPair
impl UnwindSafe for PredictiveScalingPredefinedMetricPair
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more