[][src]Struct zabbix::ZabbixProxy

pub struct ZabbixProxy { /* fields omitted */ }

zabbix proxy 实现了 proxy 的基本功能

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]

向服务端发送历史数据

impl ZabbixProxy[src]

扩展代理功能

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

pub fn get_proxy_config_item(&self, compress: &[&str]) -> Option<Vec<ItemHost>>[src]

pub fn get_proxy_config_host(&self, compress: &[&str]) -> Option<Vec<HostItem>>[src]

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, U> Into for T where
    U: From<T>, 
[src]

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

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[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, 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]

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