Struct openmetrics_parser::Exemplar
source · pub struct Exemplar {
pub labels: HashMap<String, String>,
pub timestamp: Option<f64>,
pub id: f64,
}
Expand description
An OpenMetrics Exemplar (that is also valid in Prometheus) https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#exemplars Exemplars are references to data outside of the MetricSet. A common use case are IDs of program traces. Exemplars MUST consist of a LabelSet and a value, and MAY have a timestamp. They MAY each be different from the MetricPoints’ LabelSet and timestamp. The combined length of the label names and values of an Exemplar’s LabelSet MUST NOT exceed 128 UTF-8 characters. Other characters in the text rendering of an exemplar such as “,= are not included in this limit for implementation simplicity and for consistency between the text and proto formats.
Fields§
§labels: HashMap<String, String>
§timestamp: Option<f64>
§id: f64
Implementations§
Trait Implementations§
source§impl PartialEq for Exemplar
impl PartialEq for Exemplar
impl StructuralPartialEq for Exemplar
Auto Trait Implementations§
impl RefUnwindSafe for Exemplar
impl Send for Exemplar
impl Sync for Exemplar
impl Unpin for Exemplar
impl UnwindSafe for Exemplar
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