pub struct MetricMapping {
pub metric_match: String,
pub match_type: String,
pub name: String,
pub tags: HashMap<String, String>,
}Expand description
A single metric-name mapping within a MapperProfile.
Fields§
§metric_match: StringPattern a metric name must match.
match_type: StringHow metric_match is interpreted (for example, wildcard or regex).
name: StringReplacement name emitted for a matching metric.
Tags added to a matching metric, with values captured from the match.
Trait Implementations§
Source§impl Clone for MetricMapping
impl Clone for MetricMapping
Source§fn clone(&self) -> MetricMapping
fn clone(&self) -> MetricMapping
Returns a duplicate 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 MetricMapping
impl Debug for MetricMapping
Source§impl Default for MetricMapping
impl Default for MetricMapping
Source§fn default() -> MetricMapping
fn default() -> MetricMapping
Returns the “default value” for a type. Read more
Source§impl PartialEq for MetricMapping
impl PartialEq for MetricMapping
Source§impl Serialize for MetricMapping
impl Serialize for MetricMapping
impl StructuralPartialEq for MetricMapping
Auto Trait Implementations§
impl Freeze for MetricMapping
impl RefUnwindSafe for MetricMapping
impl Send for MetricMapping
impl Sync for MetricMapping
impl Unpin for MetricMapping
impl UnwindSafe for MetricMapping
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