pub struct MetricPrefixRule {
pub prefix: String,
pub except_prefix: Vec<String>,
pub except_exact: Vec<String>,
}Expand description
One metric_filterlist_prefix rule.
Fields§
§prefix: StringPrefix of metric names to drop.
The empty string matches every stored metric name.
except_prefix: Vec<String>Prefix exceptions that are kept.
Exceptions apply across all prefix rules.
except_exact: Vec<String>Exact-name exceptions that are kept.
Exceptions apply across all prefix rules.
Trait Implementations§
Source§impl Clone for MetricPrefixRule
impl Clone for MetricPrefixRule
Source§fn clone(&self) -> MetricPrefixRule
fn clone(&self) -> MetricPrefixRule
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 MetricPrefixRule
impl Debug for MetricPrefixRule
Source§impl Default for MetricPrefixRule
impl Default for MetricPrefixRule
Source§fn default() -> MetricPrefixRule
fn default() -> MetricPrefixRule
Returns the “default value” for a type. Read more
Source§impl PartialEq for MetricPrefixRule
impl PartialEq for MetricPrefixRule
Source§impl Serialize for MetricPrefixRule
impl Serialize for MetricPrefixRule
impl StructuralPartialEq for MetricPrefixRule
Auto Trait Implementations§
impl Freeze for MetricPrefixRule
impl RefUnwindSafe for MetricPrefixRule
impl Send for MetricPrefixRule
impl Sync for MetricPrefixRule
impl Unpin for MetricPrefixRule
impl UnsafeUnpin for MetricPrefixRule
impl UnwindSafe for MetricPrefixRule
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