zabbix_api/webscenario/
model.rs

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