[][src]Struct k8s_openapi::api::autoscaling::v2beta2::HorizontalPodAutoscalerBehavior

pub struct HorizontalPodAutoscalerBehavior {
    pub scale_down: Option<HPAScalingRules>,
    pub scale_up: Option<HPAScalingRules>,
}

HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).

Fields

scale_down: Option<HPAScalingRules>

scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used).

scale_up: Option<HPAScalingRules>

scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:

  • increase no more than 4 pods per 60 seconds
  • double the number of pods per 60 seconds No stabilization is used.

Trait Implementations

impl Clone for HorizontalPodAutoscalerBehavior[src]

impl Debug for HorizontalPodAutoscalerBehavior[src]

impl Default for HorizontalPodAutoscalerBehavior[src]

impl<'de> Deserialize<'de> for HorizontalPodAutoscalerBehavior[src]

impl PartialEq<HorizontalPodAutoscalerBehavior> for HorizontalPodAutoscalerBehavior[src]

impl Serialize for HorizontalPodAutoscalerBehavior[src]

impl StructuralPartialEq for HorizontalPodAutoscalerBehavior[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.