#[repr(i32)]pub enum MetricSource {
Unspecified = 0,
MonitoringAgentDefaults = 1,
Hdfs = 2,
Spark = 3,
Yarn = 4,
SparkHistoryServer = 5,
Hiveserver2 = 6,
Hivemetastore = 7,
}
Expand description
A source for the collection of Dataproc custom metrics (see [Custom metrics] (https://cloud.google.com//dataproc/docs/guides/dataproc-metrics#custom_metrics)).
Variants§
Unspecified = 0
Required unspecified metric source.
MonitoringAgentDefaults = 1
Monitoring agent metrics. If this source is enabled,
Dataproc enables the monitoring agent in Compute Engine,
and collects monitoring agent metrics, which are published
with an agent.googleapis.com
prefix.
Hdfs = 2
HDFS metric source.
Spark = 3
Spark metric source.
Yarn = 4
YARN metric source.
SparkHistoryServer = 5
Spark History Server metric source.
Hiveserver2 = 6
Hiveserver2 metric source.
Hivemetastore = 7
hivemetastore metric source
Implementations§
source§impl MetricSource
impl MetricSource
source§impl MetricSource
impl MetricSource
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for MetricSource
impl Clone for MetricSource
source§fn clone(&self) -> MetricSource
fn clone(&self) -> MetricSource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricSource
impl Debug for MetricSource
source§impl Default for MetricSource
impl Default for MetricSource
source§fn default() -> MetricSource
fn default() -> MetricSource
source§impl From<MetricSource> for i32
impl From<MetricSource> for i32
source§fn from(value: MetricSource) -> i32
fn from(value: MetricSource) -> i32
source§impl Hash for MetricSource
impl Hash for MetricSource
source§impl Ord for MetricSource
impl Ord for MetricSource
source§fn cmp(&self, other: &MetricSource) -> Ordering
fn cmp(&self, other: &MetricSource) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for MetricSource
impl PartialEq for MetricSource
source§fn eq(&self, other: &MetricSource) -> bool
fn eq(&self, other: &MetricSource) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MetricSource
impl PartialOrd for MetricSource
source§fn partial_cmp(&self, other: &MetricSource) -> Option<Ordering>
fn partial_cmp(&self, other: &MetricSource) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for MetricSource
impl TryFrom<i32> for MetricSource
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<MetricSource, UnknownEnumValue>
fn try_from(value: i32) -> Result<MetricSource, UnknownEnumValue>
impl Copy for MetricSource
impl Eq for MetricSource
impl StructuralPartialEq for MetricSource
Auto Trait Implementations§
impl Freeze for MetricSource
impl RefUnwindSafe for MetricSource
impl Send for MetricSource
impl Sync for MetricSource
impl Unpin for MetricSource
impl UnwindSafe for MetricSource
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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