Struct relay_dynamic_config::TaggingRule
source · pub struct TaggingRule {
pub condition: RuleCondition,
pub target_metrics: BTreeSet<String>,
pub target_tag: String,
pub tag_value: String,
}
Expand description
Rule defining when a target tag should be set on a metric.
Fields§
§condition: RuleCondition
Condition that defines when to set the tag.
target_metrics: BTreeSet<String>
Metrics on which the tag is set.
target_tag: String
Name of the tag that is set.
tag_value: String
Value of the tag that is set.
Trait Implementations§
source§impl Clone for TaggingRule
impl Clone for TaggingRule
source§fn clone(&self) -> TaggingRule
fn clone(&self) -> TaggingRule
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 TaggingRule
impl Debug for TaggingRule
source§impl<'de> Deserialize<'de> for TaggingRule
impl<'de> Deserialize<'de> for TaggingRule
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 TaggingRule
impl RefUnwindSafe for TaggingRule
impl Send for TaggingRule
impl Sync for TaggingRule
impl Unpin for TaggingRule
impl UnwindSafe for TaggingRule
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
)