1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
use serde::{Deserialize, Serialize};
use crate::serde::{deserialize_icinga_timestamp, serialize_icinga_timestamp};
use crate::types::enums::acknowledgement_type::IcingaAcknowledgementType;
use crate::types::enums::host_or_service_state::IcingaHostOrServiceState;
use crate::types::enums::state_type::IcingaStateType;
use crate::types::names::{IcingaHostName, IcingaServiceName};
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
pub struct IcingaEventAcknowledgementCleared {
#[serde(
serialize_with = "serialize_icinga_timestamp",
deserialize_with = "deserialize_icinga_timestamp"
)]
pub timestamp: time::OffsetDateTime,
pub host: IcingaHostName,
pub service: Option<IcingaServiceName>,
pub state: IcingaHostOrServiceState,
pub state_type: IcingaStateType,
pub acknowledgement_type: IcingaAcknowledgementType,
}