[][src]Struct zabbix_proxy::ZabbixProxy

pub struct ZabbixProxy { /* fields omitted */ }

Methods

impl ZabbixProxy
[src]

pub const PROXY_CONFIG: &'static str[src]

pub const HISTORY_DATA: &'static str[src]

pub const PROXY_HEARTBEAT: &'static str[src]

pub const AUTO_REGISTRATION: &'static str[src]

pub fn new(name: &str, server: &str, port: u16) -> Self
[src]

pub fn get_config(&self) -> Option<Value>
[src]

从ZABBNIX服务端获取代理配置信息

pub fn auto_register(&self, hosts: Vec<ZabbixHost>) -> Result<bool, Error>
[src]

自动注册主机

pub fn heart_beat(&self) -> Result<bool, Error>
[src]

向服务端发送心跳信息

pub fn send_data(&self, data: &[ZabbixMetric]) -> Result<bool, Error>
[src]

向服务端发送历史数据

pub fn get_proxy_config(
    &self,
    compress: &[&str]
) -> Option<(HashSet<Host>, HashSet<Item>)>
[src]

返回服务器配置的代理主机和监控项

compress = &[] 不压缩 item compress = &["["] 表示将 item 合并,去除 [] compress = &["[", "_"] 表示将 item 合并,去除 [] 和 _

Trait Implementations

impl Clone for ZabbixProxy
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ZabbixProxy
[src]

Auto Trait Implementations

impl Send for ZabbixProxy

impl Sync for ZabbixProxy

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]