devops_armory/logging/alerts/
models.rs1use serde::*;
2use serde::Deserialize as SerDel;
3use serde_query::Deserialize;
4
5#[derive(Debug, Deserialize, Serialize)]
6pub struct Pod {
7 #[query(".items.[].metadata.name")]
8 pub hostname: Vec<String>,
9}
10
11#[derive(Serialize)]
12pub struct Log {
13 pub google_project_id: String,
14 pub project_id: String,
15 pub region: String,
16 pub host: String,
17 pub time: String,
18 pub message: String,
19}
20
21#[derive(Serialize, Eq, Hash, PartialEq, Clone, Debug, SerDel)]
22pub struct Notification {
23 pub channel: String,
24 pub username: String,
25 pub text: String,
26 pub icon_emoji: String,
27}