Struct google_api_proto::google::cloud::compute::v1::Autoscaler
source · pub struct Autoscaler {Show 14 fields
pub autoscaling_policy: Option<AutoscalingPolicy>,
pub creation_timestamp: Option<String>,
pub description: Option<String>,
pub id: Option<u64>,
pub kind: Option<String>,
pub name: Option<String>,
pub recommended_size: Option<i32>,
pub region: Option<String>,
pub scaling_schedule_status: BTreeMap<String, ScalingScheduleStatus>,
pub self_link: Option<String>,
pub status: Option<String>,
pub status_details: Vec<AutoscalerStatusDetails>,
pub target: Option<String>,
pub zone: Option<String>,
}
Expand description
Represents an Autoscaler resource. Google Compute Engine has two Autoscaler resources: * Zonal * Regional Use autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances. For zonal managed instance groups resource, use the autoscaler resource. For regional managed instance groups, use the regionAutoscalers resource.
Fields§
§autoscaling_policy: Option<AutoscalingPolicy>
The configuration parameters for the autoscaling algorithm. You can define one or more signals for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization. If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%.
creation_timestamp: Option<String>
[Output Only] Creation timestamp in RFC3339 text format.
description: Option<String>
An optional description of this resource. Provide this property when you create the resource.
id: Option<u64>
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
kind: Option<String>
[Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
name: Option<String>
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](\[-a-z0-9\]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
recommended_size: Option<i32>
[Output Only] Target recommended MIG size (number of instances) computed by autoscaler. Autoscaler calculates the recommended MIG size even when the autoscaling policy mode is different from ON. This field is empty when autoscaler is not connected to an existing managed instance group or autoscaler did not generate its prediction.
region: Option<String>
[Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).
scaling_schedule_status: BTreeMap<String, ScalingScheduleStatus>
[Output Only] Status information of existing scaling schedules.
self_link: Option<String>
[Output Only] Server-defined URL for the resource.
status: Option<String>
[Output Only] The status of the autoscaler configuration. Current set of possible values: - PENDING: Autoscaler backend hasn’t read new/updated configuration. - DELETING: Configuration is being deleted. - ACTIVE: Configuration is acknowledged to be effective. Some warnings might be present in the statusDetails field. - ERROR: Configuration has errors. Actionable for users. Details are present in the statusDetails field. New values might be added in the future. Check the Status enum for the list of possible values.
status_details: Vec<AutoscalerStatusDetails>
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
target: Option<String>
URL of the managed instance group that this autoscaler will scale. This field is required when creating an autoscaler.
zone: Option<String>
[Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
Implementations§
source§impl Autoscaler
impl Autoscaler
sourcepub fn creation_timestamp(&self) -> &str
pub fn creation_timestamp(&self) -> &str
Returns the value of creation_timestamp
, or the default value if creation_timestamp
is unset.
sourcepub fn region(&self) -> &str
pub fn region(&self) -> &str
Returns the value of region
, or the default value if region
is unset.
sourcepub fn status(&self) -> &str
pub fn status(&self) -> &str
Returns the value of status
, or the default value if status
is unset.
sourcepub fn target(&self) -> &str
pub fn target(&self) -> &str
Returns the value of target
, or the default value if target
is unset.
sourcepub fn recommended_size(&self) -> i32
pub fn recommended_size(&self) -> i32
Returns the value of recommended_size
, or the default value if recommended_size
is unset.
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description
, or the default value if description
is unset.
Trait Implementations§
source§impl Clone for Autoscaler
impl Clone for Autoscaler
source§fn clone(&self) -> Autoscaler
fn clone(&self) -> Autoscaler
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Autoscaler
impl Debug for Autoscaler
source§impl Default for Autoscaler
impl Default for Autoscaler
source§impl Message for Autoscaler
impl Message for Autoscaler
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 Autoscaler
impl PartialEq for Autoscaler
source§fn eq(&self, other: &Autoscaler) -> bool
fn eq(&self, other: &Autoscaler) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Autoscaler
Auto Trait Implementations§
impl Freeze for Autoscaler
impl RefUnwindSafe for Autoscaler
impl Send for Autoscaler
impl Sync for Autoscaler
impl Unpin for Autoscaler
impl UnwindSafe for Autoscaler
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