Struct google_api_proto::google::cloud::dataproc::logging::autoscaler_recommendation::Outputs
source · pub struct Outputs {
pub decision: i32,
pub recommended_cluster_size: Option<ClusterSize>,
pub graceful_decommission_timeout: Option<Duration>,
pub constraints_reached: Vec<i32>,
pub additional_recommendation_details: Vec<String>,
pub recommendation_id: String,
pub decision_metric: i32,
}
Expand description
Autoscaler recommendations.
Fields§
§decision: i32
The high-level autoscaling decision, such as SCALE_UP, SCALE_DOWN, NO_OP.
recommended_cluster_size: Option<ClusterSize>
The recommended cluster size.
graceful_decommission_timeout: Option<Duration>
The graceful decommission timeout for downscaling operations.
constraints_reached: Vec<i32>
Reasons why the Autoscaler didn’t add or remove more workers.
additional_recommendation_details: Vec<String>
Less significant recommendations that are not included in the
AutoscalerStatus.details
message.
recommendation_id: String
A unique id for this recommendation that should be included when opening a support ticket.
decision_metric: i32
The metric source deciding the autoscaling recommendation.
Implementations§
source§impl Outputs
impl Outputs
sourcepub fn decision(&self) -> ScalingDecisionType
pub fn decision(&self) -> ScalingDecisionType
Returns the enum value of decision
, or the default if the field is set to an invalid enum value.
sourcepub fn set_decision(&mut self, value: ScalingDecisionType)
pub fn set_decision(&mut self, value: ScalingDecisionType)
Sets decision
to the provided enum value.
sourcepub fn constraints_reached(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<ConstrainingFactor>>
pub fn constraints_reached( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<ConstrainingFactor>>
Returns an iterator which yields the valid enum values contained in constraints_reached
.
sourcepub fn push_constraints_reached(&mut self, value: ConstrainingFactor)
pub fn push_constraints_reached(&mut self, value: ConstrainingFactor)
Appends the provided enum value to constraints_reached
.
sourcepub fn decision_metric(&self) -> MetricType
pub fn decision_metric(&self) -> MetricType
Returns the enum value of decision_metric
, or the default if the field is set to an invalid enum value.
sourcepub fn set_decision_metric(&mut self, value: MetricType)
pub fn set_decision_metric(&mut self, value: MetricType)
Sets decision_metric
to the provided enum value.
Trait Implementations§
source§impl Message for Outputs
impl Message for Outputs
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 Outputs
impl PartialEq for Outputs
impl StructuralPartialEq for Outputs
Auto Trait Implementations§
impl Freeze for Outputs
impl RefUnwindSafe for Outputs
impl Send for Outputs
impl Sync for Outputs
impl Unpin for Outputs
impl UnwindSafe for Outputs
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