This commit is contained in:
lda committed 2026-04-12 00:52:47 +07:00
1 parent ac54ec7c74
commit f2ac690f17
6 files changed
+344 -1

No files matched your search

+1 -1
View File
@@ -2,4 +2,4 @@ mod store;
mod types;
pub use store::Store;
pub use types::{AuditEventFilter, AuditEventInput};
pub use types::{AlertState, AuditEvent, AuditEventFilter, AuditEventInput};
+14
View File
@@ -69,3 +69,17 @@ pub struct AuditEventFilter {
pub until_unix: Option<u64>,
pub limit: usize,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AlertState {
pub alert_id: String,
pub kind: String,
pub severity: String,
pub status: String,
pub agent_id: Option<String>,
pub message: String,
pub value: u64,
pub threshold: u64,
pub last_seen_unix: u64,
pub metadata: serde_json::Value,
}