pub struct ZabbixProxy { /* private fields */ }
Expand description
zabbix proxy 实现了 proxy 的基本功能
Implementations§
Source§impl ZabbixProxy
impl ZabbixProxy
pub const PROXY_CONFIG: &'static str = "proxy config"
pub const HISTORY_DATA: &'static str = "history data"
pub const PROXY_HEARTBEAT: &'static str = "proxy heartbeat"
pub const AUTO_REGISTRATION: &'static str = "auto registration"
pub fn new(name: &str, server: &str, port: u16) -> Self
Sourcepub fn get_config(&self) -> Option<Value>
pub fn get_config(&self) -> Option<Value>
从ZABBNIX服务端获取代理配置信息
Sourcepub fn auto_register(&self, hosts: Vec<ZabbixHost>) -> Result<bool, Error>
pub fn auto_register(&self, hosts: Vec<ZabbixHost>) -> Result<bool, Error>
自动注册主机
Sourcepub fn heart_beat(&self) -> Result<bool, Error>
pub fn heart_beat(&self) -> Result<bool, Error>
向服务端发送心跳信息
Source§impl ZabbixProxy
扩展代理功能
impl ZabbixProxy
扩展代理功能
Trait Implementations§
Source§impl Clone for ZabbixProxy
impl Clone for ZabbixProxy
Source§fn clone(&self) -> ZabbixProxy
fn clone(&self) -> ZabbixProxy
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ZabbixProxy
impl RefUnwindSafe for ZabbixProxy
impl Send for ZabbixProxy
impl Sync for ZabbixProxy
impl Unpin for ZabbixProxy
impl UnwindSafe for ZabbixProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more