[][src]Struct google_autoscaler1_beta2::AutoscalingPolicy

pub struct AutoscalingPolicy {
    pub custom_metric_utilizations: Option<Vec<AutoscalingPolicyCustomMetricUtilization>>,
    pub max_num_replicas: Option<i32>,
    pub cpu_utilization: Option<AutoscalingPolicyCpuUtilization>,
    pub min_num_replicas: Option<i32>,
    pub cool_down_period_sec: Option<i32>,
    pub load_balancing_utilization: Option<AutoscalingPolicyLoadBalancingUtilization>,
}

Cloud Autoscaler policy.

This type is not used in any activity, and only used as part of another schema.

Fields

custom_metric_utilizations: Option<Vec<AutoscalingPolicyCustomMetricUtilization>>

Configuration parameters of autoscaling based on custom metric.

max_num_replicas: Option<i32>

The maximum number of replicas that the Autoscaler can scale up to.

cpu_utilization: Option<AutoscalingPolicyCpuUtilization>

Exactly one utilization policy should be provided. Configuration parameters of CPU based autoscaling policy.

min_num_replicas: Option<i32>

The minimum number of replicas that the Autoscaler can scale down to.

cool_down_period_sec: Option<i32>

The number of seconds that the Autoscaler should wait between two succeeding changes to the number of virtual machines. You should define an interval that is at least as long as the initialization time of a virtual machine and the time it may take for replica pool to create the virtual machine. The default is 60 seconds.

load_balancing_utilization: Option<AutoscalingPolicyLoadBalancingUtilization>

Configuration parameters of autoscaling based on load balancer.

Trait Implementations

impl Clone for AutoscalingPolicy[src]

impl Debug for AutoscalingPolicy[src]

impl Default for AutoscalingPolicy[src]

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

impl Part for AutoscalingPolicy[src]

impl Serialize for AutoscalingPolicy[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.

impl<T> Typeable for T where
    T: Any