zabbix_api/webscenario/mod.rs
1use serde::{Deserialize, Serialize};
2
3pub mod create;
4pub mod get;
5
6/// API Object: https://www.zabbix.com/documentation/6.0/en/manual/api/reference/httptest/object
7#[derive(Serialize,Deserialize, Clone, Debug)]
8pub struct ZabbixWebScenario {
9 pub name: String,
10 #[serde(alias = "hostid")]
11 pub host_id: String,
12 pub steps: Vec<ZabbixWebScenarioStep>
13}
14
15/// API Object: https://www.zabbix.com/documentation/6.0/en/manual/api/reference/httptest/object
16#[derive(Serialize,Deserialize, Clone, Debug)]
17pub struct ZabbixWebScenarioStep {
18 pub name: String,
19 pub url: String,
20 pub status_codes: String,
21 pub no: String,
22}