1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use serde::{Deserialize, Serialize};

pub mod create;
pub mod get;

/// API Object: https://www.zabbix.com/documentation/6.0/en/manual/api/reference/httptest/object
#[derive(Serialize,Deserialize, Clone, Debug)]
pub struct ZabbixWebScenario {
    pub name: String,
    #[serde(alias = "hostid")]
    pub host_id: String,
    pub steps: Vec<ZabbixWebScenarioStep>
}

/// API Object: https://www.zabbix.com/documentation/6.0/en/manual/api/reference/httptest/object
#[derive(Serialize,Deserialize, Clone, Debug)]
pub struct ZabbixWebScenarioStep {
    pub name: String,
    pub url: String,
    pub status_codes: String,
    pub no: String,
}