#[non_exhaustive]pub struct AutoscalingTargets {
pub high_priority_cpu_utilization_percent: i32,
pub total_cpu_utilization_percent: i32,
pub storage_utilization_percent: i32,
/* private fields */
}Expand description
The autoscaling targets for an instance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.high_priority_cpu_utilization_percent: i32Optional. The target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the autoscaler skips scaling based on high priority CPU utilization.
total_cpu_utilization_percent: i32Optional. The target total CPU utilization percentage that the autoscaler
should be trying to achieve for the instance. This number is on a scale
from 0 (no utilization) to 100 (full utilization). The valid range is
[10, 90] inclusive. If not specified or set to 0, the autoscaler skips
scaling based on total CPU utilization. If both
high_priority_cpu_utilization_percent and
total_cpu_utilization_percent are specified, the autoscaler provisions
the larger of the two required compute capacities to satisfy both
targets.
storage_utilization_percent: i32Required. The target storage utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 99] inclusive.
Implementations§
Source§impl AutoscalingTargets
impl AutoscalingTargets
pub fn new() -> Self
Sourcepub fn set_high_priority_cpu_utilization_percent<T: Into<i32>>(
self,
v: T,
) -> Self
pub fn set_high_priority_cpu_utilization_percent<T: Into<i32>>( self, v: T, ) -> Self
Sets the value of high_priority_cpu_utilization_percent.
§Example
let x = AutoscalingTargets::new().set_high_priority_cpu_utilization_percent(42);Sourcepub fn set_total_cpu_utilization_percent<T: Into<i32>>(self, v: T) -> Self
pub fn set_total_cpu_utilization_percent<T: Into<i32>>(self, v: T) -> Self
Sets the value of total_cpu_utilization_percent.
§Example
let x = AutoscalingTargets::new().set_total_cpu_utilization_percent(42);Sourcepub fn set_storage_utilization_percent<T: Into<i32>>(self, v: T) -> Self
pub fn set_storage_utilization_percent<T: Into<i32>>(self, v: T) -> Self
Sets the value of storage_utilization_percent.
§Example
let x = AutoscalingTargets::new().set_storage_utilization_percent(42);Trait Implementations§
Source§impl Clone for AutoscalingTargets
impl Clone for AutoscalingTargets
Source§fn clone(&self) -> AutoscalingTargets
fn clone(&self) -> AutoscalingTargets
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more