Struct k8s_openapi::api::autoscaling::v2::HPAScalingRules
source · [−]pub struct HPAScalingRules {
pub policies: Option<Vec<HPAScalingPolicy>>,
pub select_policy: Option<String>,
pub stabilization_window_seconds: Option<i32>,
}
Expand description
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 Max 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
sourceimpl Clone for HPAScalingRules
impl Clone for HPAScalingRules
sourcefn clone(&self) -> HPAScalingRules
fn clone(&self) -> HPAScalingRules
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 HPAScalingRules
impl Debug for HPAScalingRules
sourceimpl Default for HPAScalingRules
impl Default for HPAScalingRules
sourcefn default() -> HPAScalingRules
fn default() -> HPAScalingRules
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for HPAScalingRules
impl<'de> Deserialize<'de> for HPAScalingRules
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<HPAScalingRules> for HPAScalingRules
impl PartialEq<HPAScalingRules> for HPAScalingRules
sourcefn eq(&self, other: &HPAScalingRules) -> bool
fn eq(&self, other: &HPAScalingRules) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &HPAScalingRules) -> bool
fn ne(&self, other: &HPAScalingRules) -> bool
This method tests for !=
.
sourceimpl Serialize for HPAScalingRules
impl Serialize for HPAScalingRules
impl StructuralPartialEq for HPAScalingRules
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
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> 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