Struct google_compute1::api::AutoscalingPolicy [−][src]
Cloud Autoscaler policy.
This type is not used in any activity, and only used as part of another schema.
Fields
cool_down_period_sec: Option<i32>The number of seconds that the autoscaler waits 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.
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.
custom_metric_utilizations: Option<Vec<AutoscalingPolicyCustomMetricUtilization>>Configuration parameters of autoscaling based on a custom metric.
load_balancing_utilization: Option<AutoscalingPolicyLoadBalancingUtilization>Configuration parameters of autoscaling based on load balancer.
max_num_replicas: Option<i32>The maximum number of instances that the autoscaler can scale out to. This is required when creating or updating an autoscaler. The maximum number of replicas must not be lower than minimal number of replicas.
min_num_replicas: Option<i32>The minimum number of replicas that the autoscaler can scale in to. This cannot be less than 0. If not provided, autoscaler chooses a default value depending on maximum number of instances allowed.
mode: Option<String>Defines operating mode for this policy.
scale_in_control: Option<AutoscalingPolicyScaleInControl>no description provided
scaling_schedules: Option<HashMap<String, AutoscalingPolicyScalingSchedule>>Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, and they can overlap. During overlapping periods the greatest min_required_replicas of all scaling schedules is applied. Up to 128 scaling schedules are allowed.
Trait Implementations
impl Clone for AutoscalingPolicy[src]
fn clone(&self) -> AutoscalingPolicy[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for AutoscalingPolicy[src]
impl Default for AutoscalingPolicy[src]
fn default() -> AutoscalingPolicy[src]
impl<'de> Deserialize<'de> for AutoscalingPolicy[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Part for AutoscalingPolicy[src]
impl Serialize for AutoscalingPolicy[src]
Auto Trait Implementations
impl RefUnwindSafe for AutoscalingPolicy
impl Send for AutoscalingPolicy
impl Sync for AutoscalingPolicy
impl Unpin for AutoscalingPolicy
impl UnwindSafe for AutoscalingPolicy
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,
pub 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> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[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.
pub fn to_owned(&self) -> T[src]
pub 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.
pub 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>,