icinga2_api/types/
event_stream.rsuse serde::{Deserialize, Serialize};
pub mod acknowledgement_cleared;
pub mod acknowledgement_set;
pub mod check_result;
pub mod comment_added;
pub mod comment_removed;
pub mod downtime_added;
pub mod downtime_removed;
pub mod downtime_started;
pub mod downtime_triggered;
pub mod flapping;
pub mod notification;
pub mod object_created;
pub mod object_deleted;
pub mod object_modified;
pub mod state_change;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(tag = "type")]
pub enum IcingaEvent {
CheckResult(check_result::IcingaEventCheckResult),
StateChange(state_change::IcingaEventStateChange),
Notification(notification::IcingaEventNotification),
AcknowledgementSet(acknowledgement_set::IcingaEventAcknowledgementSet),
AcknowledgementCleared(acknowledgement_cleared::IcingaEventAcknowledgementCleared),
CommentAdded(comment_added::IcingaEventCommentAdded),
CommentRemove(comment_removed::IcingaEventCommentRemoved),
DowntimeAdded(downtime_added::IcingaEventDowntimeAdded),
DowntimeRemoved(downtime_removed::IcingaEventDowntimeRemoved),
DowntimeStarted(downtime_started::IcingaEventDowntimeStarted),
DowntimeTriggered(downtime_triggered::IcingaEventDowntimeTriggered),
ObjectCreated(object_created::IcingaEventObjectCreated),
ObjectDeleted(object_deleted::IcingaEventObjectDeleted),
ObjectModified(object_modified::IcingaEventObjectModified),
Flapping(flapping::IcingaEventFlapping),
}