Struct zabbix_api::client::v6::ZabbixApiV6Client
source · pub struct ZabbixApiV6Client { /* private fields */ }
Implementations§
source§impl ZabbixApiV6Client
impl ZabbixApiV6Client
pub fn new(client: Client, api_endpoint_url: &str) -> ZabbixApiV6Client
Trait Implementations§
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>
API: https://www.zabbix.com/documentation/6.0/en/manual/api/reference/apiinfo/version
fn get_auth_session( &self, login: &str, token: &str ) -> Result<String, ZabbixApiError>
fn raw_api_call<P: Serialize, R: DeserializeOwned>( &self, session: &str, method: &str, params: &P ) -> Result<ZabbixApiResponse<R>, ZabbixApiError>
fn get_host_groups<P: Serialize>( &self, session: &str, params: &P ) -> Result<Vec<ZabbixHostGroup>, ZabbixApiError>
fn get_hosts<P: Serialize>( &self, session: &str, params: &P ) -> Result<Vec<ZabbixHost>, ZabbixApiError>
fn get_items<P: Serialize>( &self, session: &str, params: &P ) -> Result<Vec<ZabbixItem>, ZabbixApiError>
fn get_triggers<P: Serialize>( &self, session: &str, params: &P ) -> Result<Vec<ZabbixTrigger>, ZabbixApiError>
fn get_webscenarios<P: Serialize>( &self, session: &str, params: &P ) -> Result<Vec<ZabbixWebScenario>, ZabbixApiError>
fn create_host_group( &self, session: &str, request: &CreateHostGroupRequest ) -> Result<u32, ZabbixApiError>
fn create_host( &self, session: &str, request: &CreateHostRequest ) -> Result<u32, ZabbixApiError>
fn create_item( &self, session: &str, request: &CreateItemRequest ) -> Result<u32, ZabbixApiError>
fn create_trigger( &self, session: &str, request: &CreateTriggerRequest ) -> Result<u32, ZabbixApiError>
fn create_webscenario( &self, session: &str, request: &CreateWebScenarioRequest ) -> Result<u32, ZabbixApiError>
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more