Struct aws_sdk_gamelift::model::TargetConfiguration
source · [−]#[non_exhaustive]pub struct TargetConfiguration {
pub target_value: f64,
}
Expand description
Settings for a target-based scaling policy (see ScalingPolicy
. A target-based policy tracks a particular fleet metric specifies a target value for the metric. As player usage changes, the policy triggers Amazon GameLift to adjust capacity so that the metric returns to the target value. The target configuration specifies settings as needed for the target based policy, including the target value.
Related actions
DescribeFleetCapacity
| UpdateFleetCapacity
| DescribeEC2InstanceLimits
| PutScalingPolicy
| DescribeScalingPolicies
| DeleteScalingPolicy
| StopFleetActions
| StartFleetActions
| All APIs by task
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.target_value: f64
Desired value to use with a target-based scaling policy. The value must be relevant for whatever metric the scaling policy is using. For example, in a policy using the metric PercentAvailableGameSessions, the target value should be the preferred size of the fleet's buffer (the percent of capacity that should be idle and ready for new game sessions).
Implementations
sourceimpl TargetConfiguration
impl TargetConfiguration
sourcepub fn target_value(&self) -> f64
pub fn target_value(&self) -> f64
Desired value to use with a target-based scaling policy. The value must be relevant for whatever metric the scaling policy is using. For example, in a policy using the metric PercentAvailableGameSessions, the target value should be the preferred size of the fleet's buffer (the percent of capacity that should be idle and ready for new game sessions).
sourceimpl TargetConfiguration
impl TargetConfiguration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TargetConfiguration
Trait Implementations
sourceimpl Clone for TargetConfiguration
impl Clone for TargetConfiguration
sourcefn clone(&self) -> TargetConfiguration
fn clone(&self) -> TargetConfiguration
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 Debug for TargetConfiguration
impl Debug for TargetConfiguration
sourceimpl PartialEq<TargetConfiguration> for TargetConfiguration
impl PartialEq<TargetConfiguration> for TargetConfiguration
sourcefn eq(&self, other: &TargetConfiguration) -> bool
fn eq(&self, other: &TargetConfiguration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TargetConfiguration) -> bool
fn ne(&self, other: &TargetConfiguration) -> bool
This method tests for !=
.
impl StructuralPartialEq for TargetConfiguration
Auto Trait Implementations
impl RefUnwindSafe for TargetConfiguration
impl Send for TargetConfiguration
impl Sync for TargetConfiguration
impl Unpin for TargetConfiguration
impl UnwindSafe for TargetConfiguration
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> 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