megaping
This commit is contained in:
1 parent
ac54ec7c74
commit
f2ac690f17
6 files changed
+344
-1
No files matched your search
@@ -2,4 +2,4 @@ mod store;
|
||||
mod types;
|
||||
|
||||
pub use store::Store;
|
||||
pub use types::{AuditEventFilter, AuditEventInput};
|
||||
pub use types::{AlertState, AuditEvent, AuditEventFilter, AuditEventInput};
|
||||
@@ -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,
|
||||
}
|
||||
Reference in new issue
Block a user