Struct google_api_proto::google::dataflow::v1beta3::AutoscalingEvent
source · pub struct AutoscalingEvent {
pub current_num_workers: i64,
pub target_num_workers: i64,
pub event_type: i32,
pub description: Option<StructuredMessage>,
pub time: Option<Timestamp>,
pub worker_pool: String,
}
Expand description
A structured message reporting an autoscaling decision made by the Dataflow service.
Fields§
§current_num_workers: i64
The current number of workers the job has.
target_num_workers: i64
The target number of workers the worker pool wants to resize to use.
event_type: i32
The type of autoscaling event to report.
description: Option<StructuredMessage>
A message describing why the system decided to adjust the current number of workers, why it failed, or why the system decided to not make any changes to the number of workers.
time: Option<Timestamp>
The time this event was emitted to indicate a new target or current num_workers value.
worker_pool: String
A short and friendly name for the worker pool this event refers to.
Implementations§
source§impl AutoscalingEvent
impl AutoscalingEvent
sourcepub fn event_type(&self) -> AutoscalingEventType
pub fn event_type(&self) -> AutoscalingEventType
Returns the enum value of event_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_event_type(&mut self, value: AutoscalingEventType)
pub fn set_event_type(&mut self, value: AutoscalingEventType)
Sets event_type
to the provided enum value.
Trait Implementations§
source§impl Clone for AutoscalingEvent
impl Clone for AutoscalingEvent
source§fn clone(&self) -> AutoscalingEvent
fn clone(&self) -> AutoscalingEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AutoscalingEvent
impl Debug for AutoscalingEvent
source§impl Default for AutoscalingEvent
impl Default for AutoscalingEvent
source§impl Message for AutoscalingEvent
impl Message for AutoscalingEvent
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for AutoscalingEvent
impl PartialEq for AutoscalingEvent
source§fn eq(&self, other: &AutoscalingEvent) -> bool
fn eq(&self, other: &AutoscalingEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AutoscalingEvent
Auto Trait Implementations§
impl Freeze for AutoscalingEvent
impl RefUnwindSafe for AutoscalingEvent
impl Send for AutoscalingEvent
impl Sync for AutoscalingEvent
impl Unpin for AutoscalingEvent
impl UnwindSafe for AutoscalingEvent
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
Mutably borrows from an owned value. Read more
§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>
Wrap the input message
T
in a tonic::Request