2024-05-08 16:12:49 +00:00
|
|
|
use super::alert::Alert;
|
|
|
|
use serde::{Deserialize, Serialize};
|
2024-05-11 14:38:29 +00:00
|
|
|
use time::OffsetDateTime;
|
2024-05-08 16:12:49 +00:00
|
|
|
|
|
|
|
#[derive(Debug, Serialize, Deserialize)]
|
|
|
|
#[serde(rename_all = "camelCase")]
|
|
|
|
pub struct Alerts {
|
|
|
|
pub heartbeat_age_in_millis: u64,
|
2024-05-11 14:38:29 +00:00
|
|
|
#[serde(deserialize_with = "super::datetime::deserialize_alerts")]
|
|
|
|
pub render_time: OffsetDateTime,
|
|
|
|
#[serde(rename = "alerts")]
|
|
|
|
pub list: Vec<Alert>,
|
2024-05-08 16:12:49 +00:00
|
|
|
}
|