Struct prometheus::proto::Metric
source · pub struct Metric { /* private fields */ }
Implementations§
source§impl Metric
impl Metric
pub fn new() -> Metric
👎Deprecated since 0.5.1: Use default()
pub fn set_label(&mut self, v: Vec<LabelPair>)
pub fn mut_label(&mut self) -> &mut [LabelPair]
pub fn take_label(&mut self) -> Vec<LabelPair>
pub fn get_label(&self) -> &[LabelPair]
pub fn set_gauge(&mut self, v: Gauge)
pub fn get_gauge(&self) -> &Gauge
pub fn set_counter(&mut self, v: Counter)
pub fn get_counter(&self) -> &Counter
pub fn set_summary(&mut self, v: Summary)
pub fn get_summary(&self) -> &Summary
pub fn set_untyped(&mut self, v: Untyped)
👎Deprecated since 0.5.1: This method is protobuf specific and will be removed in a future version
pub fn get_untyped(&self) -> &Untyped
👎Deprecated since 0.5.1: This method is protobuf specific and will be removed in a future version