Struct relay_dynamic_config::TagMapping
source · pub struct TagMapping {
pub metrics: Vec<LazyGlob>,
pub tags: Vec<TagSpec>,
}
Expand description
Mapping between extracted metrics and additional tags to extract.
Fields§
§metrics: Vec<LazyGlob>
A list of Metric Resource Identifiers (MRI) to apply tags to.
Entries in this list can contain wildcards to match metrics with dynamic MRIs.
A list of tags to add to the metric.
Tags can be conditional, see TagSpec
for configuration options. For this reason, it is
possible to list tag keys multiple times, each with different conditions. The first matching
condition will be applied.
Implementations§
Trait Implementations§
source§impl Clone for TagMapping
impl Clone for TagMapping
source§fn clone(&self) -> TagMapping
fn clone(&self) -> TagMapping
Returns a copy 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 TagMapping
impl Debug for TagMapping
source§impl<'de> Deserialize<'de> for TagMapping
impl<'de> Deserialize<'de> for TagMapping
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TagMapping
impl RefUnwindSafe for TagMapping
impl Send for TagMapping
impl Sync for TagMapping
impl Unpin for TagMapping
impl UnwindSafe for TagMapping
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)