Struct google_api_proto::google::cloud::dataproc::v1::dataproc_metric_config::Metric
source · pub struct Metric {
pub metric_source: i32,
pub metric_overrides: Vec<String>,
}
Expand description
A Dataproc custom metric.
Fields§
§metric_source: i32
Required. A standard set of metrics is collected unless metricOverrides
are specified for the metric source (see [Custom metrics]
(https://cloud.google.com/dataproc/docs/guides/dataproc-metrics#custom_metrics)
for more information).
metric_overrides: Vec<String>
Optional. Specify one or more [Custom metrics]
(https://cloud.google.com/dataproc/docs/guides/dataproc-metrics#custom_metrics)
to collect for the metric course (for the SPARK
metric source (any
[Spark metric]
(https://spark.apache.org/docs/latest/monitoring.html#metrics) can be
specified).
Provide metrics in the following format:
METRIC_SOURCE:INSTANCE:GROUP:METRIC
Use camelcase as appropriate.
Examples:
yarn:ResourceManager:QueueMetrics:AppsCompleted
spark:driver:DAGScheduler:job.allJobs
sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed
hiveserver2:JVM:Memory:NonHeapMemoryUsage.used
Notes:
- Only the specified overridden metrics are collected for the
metric source. For example, if one or more
spark:executive
metrics are listed as metric overrides, otherSPARK
metrics are not collected. The collection of the metrics for other enabled custom metric sources is unaffected. For example, if bothSPARK
anddYARN
metric sources are enabled, and overrides are provided for Spark metrics only, all YARN metrics are collected.
Implementations§
source§impl Metric
impl Metric
sourcepub fn metric_source(&self) -> MetricSource
pub fn metric_source(&self) -> MetricSource
Returns the enum value of metric_source
, or the default if the field is set to an invalid enum value.
sourcepub fn set_metric_source(&mut self, value: MetricSource)
pub fn set_metric_source(&mut self, value: MetricSource)
Sets metric_source
to the provided enum value.
Trait Implementations§
source§impl Message for Metric
impl Message for Metric
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 Metric
impl PartialEq for Metric
impl StructuralPartialEq for Metric
Auto Trait Implementations§
impl Freeze for Metric
impl RefUnwindSafe for Metric
impl Send for Metric
impl Sync for Metric
impl Unpin for Metric
impl UnwindSafe for Metric
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