[−][src]Struct k8s_openapi::api::autoscaling::v2beta2::HPAScalingRules
HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.
Fields
policies: Option<Vec<HPAScalingPolicy>>
policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid
select_policy: Option<String>
selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used.
stabilization_window_seconds: Option<i32>
StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
Trait Implementations
impl Clone for HPAScalingRules
[src]
fn clone(&self) -> HPAScalingRules
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for HPAScalingRules
[src]
impl Default for HPAScalingRules
[src]
fn default() -> HPAScalingRules
[src]
impl<'de> Deserialize<'de> for HPAScalingRules
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl PartialEq<HPAScalingRules> for HPAScalingRules
[src]
fn eq(&self, other: &HPAScalingRules) -> bool
[src]
fn ne(&self, other: &HPAScalingRules) -> bool
[src]
impl Serialize for HPAScalingRules
[src]
impl StructuralPartialEq for HPAScalingRules
[src]
Auto Trait Implementations
impl RefUnwindSafe for HPAScalingRules
impl Send for HPAScalingRules
impl Sync for HPAScalingRules
impl Unpin for HPAScalingRules
impl UnwindSafe for HPAScalingRules
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,