[][src]Struct google_compute1::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 a custom metric.

max_num_replicas: Option<i32>

The maximum number of instances that the autoscaler can scale up to. This is required when creating or updating an autoscaler. The maximum number of replicas should not be lower than minimal number of replicas.

cpu_utilization: Option<AutoscalingPolicyCpuUtilization>

Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.

min_num_replicas: Option<i32>

The minimum number of replicas that the autoscaler can scale down to. This cannot be less than 0. If not provided, autoscaler will choose a default value depending on maximum number of instances allowed.

cool_down_period_sec: Option<i32>

The number of seconds that the autoscaler should wait before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. The default time autoscaler waits is 60 seconds.

Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process.

load_balancing_utilization: Option<AutoscalingPolicyLoadBalancingUtilization>

Configuration parameters of autoscaling based on load balancer.

Trait Implementations

impl Part for AutoscalingPolicy[src]

impl Default for AutoscalingPolicy[src]

impl Clone for AutoscalingPolicy[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for AutoscalingPolicy[src]

impl Serialize for AutoscalingPolicy[src]

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

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

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