feat: add CRL health status schema and UI (PR 3 of 6)
All checks were successful
CI Pipeline / Rust Format Check (push) Successful in 5s
CI Pipeline / Clippy Lints (push) Successful in 52s
CI Pipeline / Rust Unit Tests (push) Successful in 1m8s
CI Pipeline / Security Audit (push) Successful in 5s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 15s
CI Pipeline / Build .deb & Release (push) Has been skipped
All checks were successful
CI Pipeline / Rust Format Check (push) Successful in 5s
CI Pipeline / Clippy Lints (push) Successful in 52s
CI Pipeline / Rust Unit Tests (push) Successful in 1m8s
CI Pipeline / Security Audit (push) Successful in 5s
CI Pipeline / Frontend Lint & Type Check (push) Successful in 15s
CI Pipeline / Build .deb & Release (push) Has been skipped
* feat: add CRL health status schema and UI (PR 3 of 6) * fix(lint): strict equality for crl_age_seconds --------- Co-authored-by: Draco Lunaris <331325+Draco-Lunaris@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
5aec9e629c
commit
ea8337b944
@ -94,6 +94,15 @@ pub struct Host {
|
||||
pub notes: String,
|
||||
pub registered_at: DateTime<Utc>,
|
||||
pub updated_at: DateTime<Utc>,
|
||||
/// CRL status reported by the agent: valid, expired, missing, invalid, or NULL for older agents.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub crl_status: Option<String>,
|
||||
/// Seconds since the agent's CRL was last refreshed.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub crl_age_seconds: Option<i64>,
|
||||
/// When the agent's CRL expires / next update is due.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub crl_next_update: Option<DateTime<Utc>>,
|
||||
}
|
||||
|
||||
/// Payload for registering a new host.
|
||||
@ -129,6 +138,9 @@ pub struct HostSummary {
|
||||
pub patches_missing: i32,
|
||||
pub health_check_status: Option<String>,
|
||||
pub registered_at: DateTime<Utc>,
|
||||
/// CRL status reported by the agent: valid, expired, missing, invalid, or NULL for older agents.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub crl_status: Option<String>,
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
|
||||
Reference in New Issue
Block a user