Skip to main content

Crate http_request_zabbix

Crate http_request_zabbix 

Source
Expand description

A Rust library for interacting with the Zabbix API.

This crate provides a convenient and idiomatic way to communicate with a Zabbix server, handling authentication, version checking, and raw API requests.

§Example

use http_request_zabbix::{ZabbixInstance, AuthType};

let zabbix = ZabbixInstance::builder("http://zabbix.example.com/zabbix")
    .build()
    .unwrap()
    .login(AuthType::UsernamePassword("Admin".to_string(), "zabbix".to_string()))
    .unwrap();

println!("Zabbix Version: {}", zabbix.get_version().unwrap());

Structs§

ZabbixInstance
Represents an active connection to a Zabbix server.
ZabbixInstanceBuilder
A builder for creating a ZabbixInstance.

Enums§

ApiRequestParams
An enum representing the types of parameters that can be passed to the Zabbix API.
AuthType
Enum representing the type of authentication to use.
ZabbixError
Error type for Zabbix interactions.