Struct google_api_proto::google::cloud::vmwareengine::v1::autoscaling_settings::AutoscalingPolicy
source · pub struct AutoscalingPolicy {
pub node_type_id: String,
pub scale_out_size: i32,
pub cpu_thresholds: Option<Thresholds>,
pub granted_memory_thresholds: Option<Thresholds>,
pub consumed_memory_thresholds: Option<Thresholds>,
pub storage_thresholds: Option<Thresholds>,
}
Expand description
Autoscaling policy describes the behavior of the autoscaling with respect to the resource utilization. The scale-out operation is initiated if the utilization exceeds ANY of the respective thresholds. The scale-in operation is initiated if the utilization is below ALL of the respective thresholds.
Fields§
§node_type_id: String
Required. The canonical identifier of the node type to add or remove.
Corresponds to the NodeType
.
scale_out_size: i32
Required. Number of nodes to add to a cluster during a scale-out operation. Must be divisible by 2 for stretched clusters. During a scale-in operation only one node (or 2 for stretched clusters) are removed in a single iteration.
cpu_thresholds: Option<Thresholds>
Optional. Utilization thresholds pertaining to CPU utilization.
granted_memory_thresholds: Option<Thresholds>
Optional. Utilization thresholds pertaining to amount of granted memory.
consumed_memory_thresholds: Option<Thresholds>
Optional. Utilization thresholds pertaining to amount of consumed memory.
storage_thresholds: Option<Thresholds>
Optional. Utilization thresholds pertaining to amount of consumed storage.
Trait Implementations§
source§impl Clone for AutoscalingPolicy
impl Clone for AutoscalingPolicy
source§fn clone(&self) -> AutoscalingPolicy
fn clone(&self) -> AutoscalingPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AutoscalingPolicy
impl Debug for AutoscalingPolicy
source§impl Default for AutoscalingPolicy
impl Default for AutoscalingPolicy
source§impl Message for AutoscalingPolicy
impl Message for AutoscalingPolicy
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for AutoscalingPolicy
impl PartialEq for AutoscalingPolicy
source§fn eq(&self, other: &AutoscalingPolicy) -> bool
fn eq(&self, other: &AutoscalingPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AutoscalingPolicy
Auto Trait Implementations§
impl Freeze for AutoscalingPolicy
impl RefUnwindSafe for AutoscalingPolicy
impl Send for AutoscalingPolicy
impl Sync for AutoscalingPolicy
impl Unpin for AutoscalingPolicy
impl UnwindSafe for AutoscalingPolicy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request