Struct gapi_grpc::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,
}

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

impl Outputs[src]

pub fn decision(&self) -> ScalingDecisionType[src]

Returns the enum value of decision, or the default if the field is set to an invalid enum value.

pub fn set_decision(&mut self, value: ScalingDecisionType)[src]

Sets decision to the provided enum value.

pub fn constraints_reached(
    &self
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<ConstrainingFactor>>
[src]

Returns an iterator which yields the valid enum values contained in constraints_reached.

pub fn push_constraints_reached(&mut self, value: ConstrainingFactor)[src]

Appends the provided enum value to constraints_reached.

Trait Implementations

impl Clone for Outputs[src]

impl Debug for Outputs[src]

impl Default for Outputs[src]

impl Message for Outputs[src]

impl PartialEq<Outputs> for Outputs[src]

impl StructuralPartialEq for Outputs[src]

Auto Trait Implementations

impl RefUnwindSafe for Outputs

impl Send for Outputs

impl Sync for Outputs

impl Unpin for Outputs

impl UnwindSafe for Outputs

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]