Struct zabbix_api::client::v6::ZabbixApiV6Client
source · pub struct ZabbixApiV6Client { /* private fields */ }
Expand description
Zabbix API Client implementation for Zabbix API v6
Implementations§
source§impl ZabbixApiV6Client
impl ZabbixApiV6Client
pub fn new(client: Client, api_endpoint_url: &str) -> ZabbixApiV6Client
Trait Implementations§
source§impl Clone for ZabbixApiV6Client
impl Clone for ZabbixApiV6Client
source§fn clone(&self) -> ZabbixApiV6Client
fn clone(&self) -> ZabbixApiV6Client
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ZabbixApiV6Client
impl Debug for ZabbixApiV6Client
source§impl ZabbixApiClient for ZabbixApiV6Client
impl ZabbixApiClient for ZabbixApiV6Client
source§fn get_api_info(&self) -> Result<String, ZabbixApiError>
fn get_api_info(&self) -> Result<String, ZabbixApiError>
§get_api_info
Implements ZabbixApiClient::get_api_info
.
See the trait documentation for more details.
source§fn get_auth_session(
&self,
login: &str,
token: &str,
) -> Result<String, ZabbixApiError>
fn get_auth_session( &self, login: &str, token: &str, ) -> Result<String, ZabbixApiError>
§get_auth_session
Implements ZabbixApiClient::get_auth_session
.
See the trait documentation for more details.
source§fn raw_api_call<P: Serialize, R: DeserializeOwned>(
&self,
session: &str,
method: &str,
params: &P,
) -> Result<ZabbixApiResponse<R>, ZabbixApiError>
fn raw_api_call<P: Serialize, R: DeserializeOwned>( &self, session: &str, method: &str, params: &P, ) -> Result<ZabbixApiResponse<R>, ZabbixApiError>
§raw_api_call
Implements ZabbixApiClient::raw_api_call
.
See the trait documentation for more details.
source§fn get_host_groups<P: Serialize>(
&self,
session: &str,
params: &P,
) -> Result<Vec<ZabbixHostGroup>, ZabbixApiError>
fn get_host_groups<P: Serialize>( &self, session: &str, params: &P, ) -> Result<Vec<ZabbixHostGroup>, ZabbixApiError>
§get_host_groups
Implements ZabbixApiClient::get_host_groups
.
See the trait documentation for more details.
source§fn get_hosts<P: Serialize>(
&self,
session: &str,
params: &P,
) -> Result<Vec<ZabbixHost>, ZabbixApiError>
fn get_hosts<P: Serialize>( &self, session: &str, params: &P, ) -> Result<Vec<ZabbixHost>, ZabbixApiError>
source§fn get_items<P: Serialize>(
&self,
session: &str,
params: &P,
) -> Result<Vec<ZabbixItem>, ZabbixApiError>
fn get_items<P: Serialize>( &self, session: &str, params: &P, ) -> Result<Vec<ZabbixItem>, ZabbixApiError>
source§fn get_triggers<P: Serialize>(
&self,
session: &str,
params: &P,
) -> Result<Vec<ZabbixTrigger>, ZabbixApiError>
fn get_triggers<P: Serialize>( &self, session: &str, params: &P, ) -> Result<Vec<ZabbixTrigger>, ZabbixApiError>
§get_triggers
Implements ZabbixApiClient::get_triggers
.
See the trait documentation for more details.
source§fn get_webscenarios<P: Serialize>(
&self,
session: &str,
params: &P,
) -> Result<Vec<ZabbixWebScenario>, ZabbixApiError>
fn get_webscenarios<P: Serialize>( &self, session: &str, params: &P, ) -> Result<Vec<ZabbixWebScenario>, ZabbixApiError>
§get_webscenarios
Implements ZabbixApiClient::get_webscenarios
.
See the trait documentation for more details.
source§fn create_host_group(
&self,
session: &str,
request: &CreateHostGroupRequest,
) -> Result<u32, ZabbixApiError>
fn create_host_group( &self, session: &str, request: &CreateHostGroupRequest, ) -> Result<u32, ZabbixApiError>
§create_host_group
Implements ZabbixApiClient::create_host_group
.
See the trait documentation for more details.
source§fn create_host(
&self,
session: &str,
request: &CreateHostRequest,
) -> Result<u32, ZabbixApiError>
fn create_host( &self, session: &str, request: &CreateHostRequest, ) -> Result<u32, ZabbixApiError>
source§fn create_item(
&self,
session: &str,
request: &CreateItemRequest,
) -> Result<u32, ZabbixApiError>
fn create_item( &self, session: &str, request: &CreateItemRequest, ) -> Result<u32, ZabbixApiError>
source§fn create_trigger(
&self,
session: &str,
request: &CreateTriggerRequest,
) -> Result<u32, ZabbixApiError>
fn create_trigger( &self, session: &str, request: &CreateTriggerRequest, ) -> Result<u32, ZabbixApiError>
§create_trigger
Implements ZabbixApiClient::create_trigger
.
See the trait documentation for more details.
source§fn create_webscenario(
&self,
session: &str,
request: &CreateWebScenarioRequest,
) -> Result<u32, ZabbixApiError>
fn create_webscenario( &self, session: &str, request: &CreateWebScenarioRequest, ) -> Result<u32, ZabbixApiError>
§create_webscenario
Implements ZabbixApiClient::create_webscenario
.
See the trait documentation for more details.
Auto Trait Implementations§
impl Freeze for ZabbixApiV6Client
impl !RefUnwindSafe for ZabbixApiV6Client
impl Send for ZabbixApiV6Client
impl Sync for ZabbixApiV6Client
impl Unpin for ZabbixApiV6Client
impl !UnwindSafe for ZabbixApiV6Client
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)