/*
* Hanzo Cloud API
*
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ArgoHealth {
/// Message is why the status is what it is — \"Running: no replicas ready\", \"iam: CrashLoopBackOff\". A Healthy object carries one too (\"Running: all replicas ready\"), so this is not a failure signal. Always absent on a CD row, which reports no health message.
#[serde(rename = "message", skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
/// Status is the ArgoCD health vocabulary, Capitalized: Healthy, Progressing, Degraded, Suspended, Missing or Unknown. For an App CR it is derived per object from what the operator reconciled (a workload with every replica ready is Healthy, one scaled to zero is Suspended, a crash-looping pod is Degraded); for a CD row it is the verdict CD wrote.
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
}
impl ArgoHealth {
pub fn new() -> ArgoHealth {
ArgoHealth {
message: None,
status: None,
}
}
}