Struct bosun_emitter::BosunConfig
source · Expand description
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
Implementations
sourceimpl BosunConfig
impl BosunConfig
sourcepub fn default() -> BosunConfig
pub fn default() -> BosunConfig
Creates a default configuration for localhost
, port 8070
.
sourcepub fn load_from_scollector_config(
file_path: &Path
) -> Result<BosunConfig, Box<dyn Error>>
pub fn load_from_scollector_config(
file_path: &Path
) -> Result<BosunConfig, Box<dyn Error>>
Loads a configuration from an SCollector configuration file.
Trait Implementations
sourceimpl Debug for BosunConfig
impl Debug for BosunConfig
sourceimpl Decodable for BosunConfig
impl Decodable for BosunConfig
Auto Trait Implementations
impl RefUnwindSafe for BosunConfig
impl Send for BosunConfig
impl Sync for BosunConfig
impl Unpin for BosunConfig
impl UnwindSafe for BosunConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more