Struct nakadion::instrumentation::MetrixConfig [−][src]
#[non_exhaustive]pub struct MetrixConfig {
pub gauge_tracking_secs: Option<MetrixGaugeTrackingSecs>,
pub alert_duration_secs: Option<AlertDurationSecs>,
pub histogram_inactivity_reset_secs: Option<HistogramInactivityResetSecs>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.gauge_tracking_secs: Option<MetrixGaugeTrackingSecs>
Enables tracking for gauges for the given amount of seconds
alert_duration_secs: Option<AlertDurationSecs>
Enables tracking for gauges for the given amount of seconds
histogram_inactivity_reset_secs: Option<HistogramInactivityResetSecs>
Enables tracking for gauges for the given amount of seconds
Implementations
Initializes all fields from environment variables prefixed with “NAKADION_”
Initializes all fields from environment variables prefixed with “[prefix]_”
The underscore is omitted if prefix
is empty
Initializes all fields from environment variables without any prefix
Updates all not yet set fields from environment variables prefixed with “NAKADION_”
Updates all not yet set fields from environment variables prefixed with “[prefix]_”
The underscore is omitted if prefix
is empty
Updates all not yet set fields from environment variables without any prefix
Trait Implementations
Returns the “default value” for a type. Read more
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 RefUnwindSafe for MetrixConfig
impl Send for MetrixConfig
impl Sync for MetrixConfig
impl Unpin for MetrixConfig
impl UnwindSafe for MetrixConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more