icinga2_api/types/
event_stream.rs1use serde::{Deserialize, Serialize};
6
7pub mod acknowledgement_cleared;
8pub mod acknowledgement_set;
9pub mod check_result;
10pub mod comment_added;
11pub mod comment_removed;
12pub mod downtime_added;
13pub mod downtime_removed;
14pub mod downtime_started;
15pub mod downtime_triggered;
16pub mod flapping;
17pub mod notification;
18pub mod object_created;
19pub mod object_deleted;
20pub mod object_modified;
21pub mod state_change;
22
23#[derive(Debug, Clone, Serialize, Deserialize)]
25#[serde(tag = "type")]
26pub enum IcingaEvent {
27 CheckResult(check_result::IcingaEventCheckResult),
29 StateChange(state_change::IcingaEventStateChange),
31 Notification(notification::IcingaEventNotification),
33 AcknowledgementSet(acknowledgement_set::IcingaEventAcknowledgementSet),
35 AcknowledgementCleared(acknowledgement_cleared::IcingaEventAcknowledgementCleared),
37 CommentAdded(comment_added::IcingaEventCommentAdded),
39 CommentRemove(comment_removed::IcingaEventCommentRemoved),
41 DowntimeAdded(downtime_added::IcingaEventDowntimeAdded),
43 DowntimeRemoved(downtime_removed::IcingaEventDowntimeRemoved),
45 DowntimeStarted(downtime_started::IcingaEventDowntimeStarted),
47 DowntimeTriggered(downtime_triggered::IcingaEventDowntimeTriggered),
49 ObjectCreated(object_created::IcingaEventObjectCreated),
51 ObjectDeleted(object_deleted::IcingaEventObjectDeleted),
53 ObjectModified(object_modified::IcingaEventObjectModified),
55 Flapping(flapping::IcingaEventFlapping),
57}