Struct bosun_emitter::BosunConfig [] [src]

pub struct BosunConfig {
    pub Host: String,
    pub Hostname: String,
    pub Tags: Tags,
}

Represents connection parameters to reach Bosun as well as default tags to append to each metric datum.

Fields

Host: String

Bosun server host name

Hostname: String

Local host name

Tags: Tags

Tags to always append to each metric

Methods

impl BosunConfig
[src]

fn default() -> BosunConfig

Creates a default configuration for localhost, port 8070.

fn load_from_scollector_config(file_path: &Path) -> Result<BosunConfigBox<Error>>

Loads a configuration from an SCollector configuration file.

Trait Implementations

impl Debug for BosunConfig
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Decodable for BosunConfig
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<BosunConfig, __D::Error>