#[non_exhaustive]pub struct ClusterMetrics {
pub hdfs_metrics: HashMap<String, i64>,
pub yarn_metrics: HashMap<String, i64>,
/* private fields */
}Expand description
Contains cluster daemon metrics, such as HDFS and YARN stats.
Beta Feature: This report is available for testing purposes only. It may be changed before final release.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hdfs_metrics: HashMap<String, i64>The HDFS metrics.
yarn_metrics: HashMap<String, i64>YARN metrics.
Implementations§
Source§impl ClusterMetrics
impl ClusterMetrics
pub fn new() -> Self
Sourcepub fn set_hdfs_metrics<T, K, V>(self, v: T) -> Self
pub fn set_hdfs_metrics<T, K, V>(self, v: T) -> Self
Sets the value of hdfs_metrics.
Sourcepub fn set_yarn_metrics<T, K, V>(self, v: T) -> Self
pub fn set_yarn_metrics<T, K, V>(self, v: T) -> Self
Sets the value of yarn_metrics.
Trait Implementations§
Source§impl Clone for ClusterMetrics
impl Clone for ClusterMetrics
Source§fn clone(&self) -> ClusterMetrics
fn clone(&self) -> ClusterMetrics
Returns a duplicate 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 ClusterMetrics
impl Debug for ClusterMetrics
Source§impl Default for ClusterMetrics
impl Default for ClusterMetrics
Source§fn default() -> ClusterMetrics
fn default() -> ClusterMetrics
Returns the “default value” for a type. Read more
Source§impl Message for ClusterMetrics
impl Message for ClusterMetrics
Source§impl PartialEq for ClusterMetrics
impl PartialEq for ClusterMetrics
impl StructuralPartialEq for ClusterMetrics
Auto Trait Implementations§
impl Freeze for ClusterMetrics
impl RefUnwindSafe for ClusterMetrics
impl Send for ClusterMetrics
impl Sync for ClusterMetrics
impl Unpin for ClusterMetrics
impl UnwindSafe for ClusterMetrics
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