Struct google_api_proto::google::dataflow::v1beta3::MetricUpdate
source · pub struct MetricUpdate {
pub name: Option<MetricStructuredName>,
pub kind: String,
pub cumulative: bool,
pub scalar: Option<Value>,
pub mean_sum: Option<Value>,
pub mean_count: Option<Value>,
pub set: Option<Value>,
pub distribution: Option<Value>,
pub gauge: Option<Value>,
pub internal: Option<Value>,
pub update_time: Option<Timestamp>,
}
Expand description
Describes the state of a metric.
Fields§
§name: Option<MetricStructuredName>
Name of the metric.
kind: String
Metric aggregation kind. The possible metric aggregation kinds are “Sum”, “Max”, “Min”, “Mean”, “Set”, “And”, “Or”, and “Distribution”. The specified aggregation kind is case-insensitive.
If omitted, this is not an aggregated value but instead a single metric sample value.
cumulative: bool
True if this metric is reported as the total cumulative aggregate value accumulated since the worker started working on this WorkItem. By default this is false, indicating that this metric is reported as a delta that is not associated with any WorkItem.
scalar: Option<Value>
Worker-computed aggregate value for aggregation kinds “Sum”, “Max”, “Min”, “And”, and “Or”. The possible value types are Long, Double, and Boolean.
mean_sum: Option<Value>
Worker-computed aggregate value for the “Mean” aggregation kind. This holds the sum of the aggregated values and is used in combination with mean_count below to obtain the actual mean aggregate value. The only possible value types are Long and Double.
mean_count: Option<Value>
Worker-computed aggregate value for the “Mean” aggregation kind. This holds the count of the aggregated values and is used in combination with mean_sum above to obtain the actual mean aggregate value. The only possible value type is Long.
set: Option<Value>
Worker-computed aggregate value for the “Set” aggregation kind. The only possible value type is a list of Values whose type can be Long, Double, or String, according to the metric’s type. All Values in the list must be of the same type.
distribution: Option<Value>
A struct value describing properties of a distribution of numeric values.
gauge: Option<Value>
A struct value describing properties of a Gauge. Metrics of gauge type show the value of a metric across time, and is aggregated based on the newest value.
internal: Option<Value>
Worker-computed aggregate value for internal use by the Dataflow service.
update_time: Option<Timestamp>
Timestamp associated with the metric value. Optional when workers are reporting work progress; it will be filled in responses from the metrics API.
Trait Implementations§
source§impl Clone for MetricUpdate
impl Clone for MetricUpdate
source§fn clone(&self) -> MetricUpdate
fn clone(&self) -> MetricUpdate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricUpdate
impl Debug for MetricUpdate
source§impl Default for MetricUpdate
impl Default for MetricUpdate
source§impl Message for MetricUpdate
impl Message for MetricUpdate
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 MetricUpdate
impl PartialEq for MetricUpdate
source§fn eq(&self, other: &MetricUpdate) -> bool
fn eq(&self, other: &MetricUpdate) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricUpdate
Auto Trait Implementations§
impl Freeze for MetricUpdate
impl RefUnwindSafe for MetricUpdate
impl Send for MetricUpdate
impl Sync for MetricUpdate
impl Unpin for MetricUpdate
impl UnwindSafe for MetricUpdate
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