Struct prometheus::proto::Metric
[−]
[src]
pub struct Metric { /* fields omitted */ }
Methods
impl Metric
[src]
fn new() -> Metric
[src]
fn default_instance() -> &'static Metric
[src]
fn clear_label(&mut self)
[src]
fn set_label(&mut self, v: RepeatedField<LabelPair>)
[src]
fn mut_label(&mut self) -> &mut RepeatedField<LabelPair>
[src]
fn take_label(&mut self) -> RepeatedField<LabelPair>
[src]
fn get_label(&self) -> &[LabelPair]
[src]
fn clear_gauge(&mut self)
[src]
fn has_gauge(&self) -> bool
[src]
fn set_gauge(&mut self, v: Gauge)
[src]
fn mut_gauge(&mut self) -> &mut Gauge
[src]
fn take_gauge(&mut self) -> Gauge
[src]
fn get_gauge(&self) -> &Gauge
[src]
fn clear_counter(&mut self)
[src]
fn has_counter(&self) -> bool
[src]
fn set_counter(&mut self, v: Counter)
[src]
fn mut_counter(&mut self) -> &mut Counter
[src]
fn take_counter(&mut self) -> Counter
[src]
fn get_counter(&self) -> &Counter
[src]
fn clear_summary(&mut self)
[src]
fn has_summary(&self) -> bool
[src]
fn set_summary(&mut self, v: Summary)
[src]
fn mut_summary(&mut self) -> &mut Summary
[src]
fn take_summary(&mut self) -> Summary
[src]
fn get_summary(&self) -> &Summary
[src]
fn clear_untyped(&mut self)
[src]
fn has_untyped(&self) -> bool
[src]
fn set_untyped(&mut self, v: Untyped)
[src]
fn mut_untyped(&mut self) -> &mut Untyped
[src]
fn take_untyped(&mut self) -> Untyped
[src]
fn get_untyped(&self) -> &Untyped
[src]
fn clear_histogram(&mut self)
[src]
fn has_histogram(&self) -> bool
[src]
fn set_histogram(&mut self, v: Histogram)
[src]
fn mut_histogram(&mut self) -> &mut Histogram
[src]
fn take_histogram(&mut self) -> Histogram
[src]
fn get_histogram(&self) -> &Histogram
[src]
fn clear_timestamp_ms(&mut self)
[src]
fn has_timestamp_ms(&self) -> bool
[src]
fn set_timestamp_ms(&mut self, v: i64)
[src]
fn get_timestamp_ms(&self) -> i64
[src]
Trait Implementations
impl PartialEq for Metric
[src]
fn eq(&self, __arg_0: &Metric) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Metric) -> bool
[src]
This method tests for !=
.
impl Clone for Metric
[src]
fn clone(&self) -> Metric
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Metric
[src]
impl Sync for Metric
[src]
impl Message for Metric
[src]
fn is_initialized(&self) -> bool
[src]
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>
[src]
fn compute_size(&self) -> u32
[src]
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
[src]
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32
[src]
fn get_unknown_fields(&self) -> &UnknownFields
[src]
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
[src]
fn as_any(&self) -> &Any
[src]
fn as_any_mut(&mut self) -> &mut Any
[src]
fn into_any(self: Box<Self>) -> Box<Any>
[src]
fn descriptor(&self) -> &'static MessageDescriptor
[src]
fn write_to(&self, os: &mut CodedOutputStream) -> Result<(), ProtobufError>
[src]
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> Result<(), ProtobufError>
[src]
&self,
os: &mut CodedOutputStream
) -> Result<(), ProtobufError>
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8>
) -> Result<(), ProtobufError>
[src]
&self,
vec: &mut Vec<u8>
) -> Result<(), ProtobufError>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
[src]
fn check_initialized(&self) -> Result<(), ProtobufError>
[src]
fn write_to_writer(&self, w: &mut Write) -> Result<(), ProtobufError>
[src]
fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>
[src]
fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
[src]
fn write_length_delimited_to_writer(
&self,
w: &mut Write
) -> Result<(), ProtobufError>
[src]
&self,
w: &mut Write
) -> Result<(), ProtobufError>