Struct rs_collector::config::Config [−][src]
pub struct Config { pub Host: String, pub Hostname: String, pub Tags: Tags, pub Galera: Option<GaleraConfig>, pub HasIpAddr: Option<HasIpAddrConfig>, pub Jvm: Vec<JvmConfig>, pub Mongo: Vec<MongoConfig>, pub Postfix: Option<PostfixConfig>, pub Megaraid: Option<MegaraidConfig>, pub DontSend: Option<bool>, }
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
Galera: Option<GaleraConfig>
Galera config; if enabled
HasIpAddr: Option<HasIpAddrConfig>
HasIpAddr config; if enabled
Jvm: Vec<JvmConfig>
JVM config; if enabled
Mongo: Vec<MongoConfig>
Mongo configs; if enabled
Postfix: Option<PostfixConfig>
Postfix config; if enabled
Megaraid: Option<MegaraidConfig>
Postfix config; if enabled
DontSend: Option<bool>
Deactivate Data Transmission to Bosun
Methods
impl Config
[src]
impl Config
pub fn load_from_rs_collector_config(
file_path: &Path
) -> Result<Config, Box<Error>>
[src]
pub fn load_from_rs_collector_config(
file_path: &Path
) -> Result<Config, Box<Error>>
Loads a configuration from an SCollector configuration file.
Trait Implementations
impl Debug for Config
[src]
impl Debug for Config
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Decodable for Config
[src]
impl Decodable for Config
fn decode<__D: Decoder>(d: &mut __D) -> Result<Config, __D::Error>
[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<Config, __D::Error>
Deserialize a value using a Decoder
.
impl Default for Config
[src]
impl Default for Config