Struct googapis::google::cloud::dataproc::logging::autoscaler_recommendation::Outputs [−][src]
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,
}
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.
Implementations
Returns the enum value of decision
, or the default if the field is set to an invalid enum value.
Sets decision
to the provided enum value.
pub 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
.
Appends the provided enum value to constraints_reached
.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Outputs
impl UnwindSafe for Outputs
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more