Struct cernan::source::StatsdParseConfig [−][src]
pub struct StatsdParseConfig {
pub histogram_masks: Vec<(Regex, Vec<f64>)>,
pub summarize_error_bound: f64,
}Configuration for the statsd parser
Fields
histogram_masks: Vec<(Regex, Vec<f64>)>
Set specific bin masks for timeseries according to their name. The name may be a regex match, such like 'foo.*'. In this case all metrics prefixed by 'foo.' which are timer or histogram will be interpreted as a histogram.
summarize_error_bound: f64
Configure the error bound for a statsd timer or histogram. Cernan does not compute precise quantiles but approximations with a guaranteed upper bound on the error of approximation. This allows the end-user to set that.
Trait Implementations
impl Debug for StatsdParseConfig[src]
impl Debug for StatsdParseConfigfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for StatsdParseConfig[src]
impl Clone for StatsdParseConfigfn clone(&self) -> StatsdParseConfig[src]
fn clone(&self) -> StatsdParseConfigReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Default for StatsdParseConfig[src]
impl Default for StatsdParseConfigfn default() -> StatsdParseConfig[src]
fn default() -> StatsdParseConfigReturns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for StatsdParseConfig
impl Send for StatsdParseConfigimpl Sync for StatsdParseConfig
impl Sync for StatsdParseConfig