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