Struct prometheus::proto::MetricFamily
source · pub struct MetricFamily { /* private fields */ }
Implementations§
source§impl MetricFamily
impl MetricFamily
pub fn new() -> MetricFamily
👎Deprecated since 0.5.1: Use default()
pub fn clear_name(&mut self)
pub fn set_name(&mut self, v: String)
pub fn get_name(&self) -> &str
pub fn set_help(&mut self, v: String)
pub fn get_help(&self) -> &str
pub fn set_field_type(&mut self, v: MetricType)
pub fn get_field_type(&self) -> MetricType
pub fn clear_metric(&mut self)
👎Deprecated since 0.5.1: This method is protobuf specific and will be removed in a future version
pub fn set_metric(&mut self, v: Vec<Metric>)
pub fn mut_metric(&mut self) -> &mut Vec<Metric>
pub fn take_metric(&mut self) -> Vec<Metric>
pub fn get_metric(&self) -> &[Metric]
Trait Implementations§
source§impl Clone for MetricFamily
impl Clone for MetricFamily
source§fn clone(&self) -> MetricFamily
fn clone(&self) -> MetricFamily
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 MetricFamily
impl Debug for MetricFamily
source§impl Default for MetricFamily
impl Default for MetricFamily
source§fn default() -> MetricFamily
fn default() -> MetricFamily
Returns the “default value” for a type. Read more