Struct cernan::source::StatsdConfig
[−]
[src]
pub struct StatsdConfig { pub host: String, pub port: u16, pub forwards: Vec<String>, pub config_path: Option<String>, pub parse_config: StatsdParseConfig, }
Configuration for the statsd source.
Fields
host: String
The host for the statsd protocol to bind to.
port: u16
The port for the statsd source to listen on.
forwards: Vec<String>
The forwards that statsd will send its telemetry on to.
config_path: Option<String>
The unique name for the source in the routing topology.
parse_config: StatsdParseConfig
Configuration for the parsing of statsd lines
Trait Implementations
impl Debug for StatsdConfig
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for StatsdConfig
[src]
fn clone(&self) -> StatsdConfig
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for StatsdConfig
[src]
fn default() -> StatsdConfig
[src]
Returns the "default value" for a type. Read more
impl Source<StatsdConfig> for Statsd
[src]
fn init(config: StatsdConfig) -> Self
[src]
Create and spawn a new statsd source
fn run(self, chans: Channel, poller: Poll)
[src]
Run method invoked by RunnableSource. It is from this method that Sources produce metric::Events. Read more
fn new(chans: Channel, config: SConfig) -> RunnableSource<Self, SConfig>
[src]
Constructs a so-called runnable source for the given Source and config.` See RunnableSource. Read more