pub struct PredictiveScalingPredefinedScalingMetric {
pub predefined_metric_type: String,
pub resource_label: Option<String>,
}
Expand description
Describes a scaling metric for a predictive scaling policy.
When returned in the output of DescribePolicies
, it indicates that a predictive scaling policy uses individually specified load and scaling metrics instead of a metric pair.
Fields
predefined_metric_type: String
The metric type.
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 PredictiveScalingPredefinedScalingMetric
impl Clone for PredictiveScalingPredefinedScalingMetric
sourcefn clone(&self) -> PredictiveScalingPredefinedScalingMetric
fn clone(&self) -> PredictiveScalingPredefinedScalingMetric
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 PredictiveScalingPredefinedScalingMetric
impl Default for PredictiveScalingPredefinedScalingMetric
sourcefn default() -> PredictiveScalingPredefinedScalingMetric
fn default() -> PredictiveScalingPredefinedScalingMetric
Returns the “default value” for a type. Read more
sourceimpl PartialEq<PredictiveScalingPredefinedScalingMetric> for PredictiveScalingPredefinedScalingMetric
impl PartialEq<PredictiveScalingPredefinedScalingMetric> for PredictiveScalingPredefinedScalingMetric
sourcefn eq(&self, other: &PredictiveScalingPredefinedScalingMetric) -> bool
fn eq(&self, other: &PredictiveScalingPredefinedScalingMetric) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PredictiveScalingPredefinedScalingMetric) -> bool
fn ne(&self, other: &PredictiveScalingPredefinedScalingMetric) -> bool
This method tests for !=
.
impl StructuralPartialEq for PredictiveScalingPredefinedScalingMetric
Auto Trait Implementations
impl RefUnwindSafe for PredictiveScalingPredefinedScalingMetric
impl Send for PredictiveScalingPredefinedScalingMetric
impl Sync for PredictiveScalingPredefinedScalingMetric
impl Unpin for PredictiveScalingPredefinedScalingMetric
impl UnwindSafe for PredictiveScalingPredefinedScalingMetric
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