[−][src]Struct zabbix_proxy::ZabbixProxy
Methods
impl ZabbixProxy
[src]
impl ZabbixProxy
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( | [src] |
返回服务器配置的代理主机和监控项
compress = &[] 不压缩 item compress = &["["] 表示将 item 合并,去除 [] compress = &["[", "_"] 表示将 item 合并,去除 [] 和 _
Trait Implementations
impl Clone for ZabbixProxy
[src]
impl Clone for ZabbixProxy
fn clone(&self) -> 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]
impl Debug for ZabbixProxy
Auto Trait Implementations
impl Send for ZabbixProxy
impl Send for ZabbixProxy
impl Sync for ZabbixProxy
impl Sync for ZabbixProxy
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |