schemas_v1_api_platforms_models - OmniCloudOrg/OmniOrchestrator GitHub Wiki
Path: src/schemas/v1/api/platforms/models.rs
- struct SshHost
- struct CloudConfig
- struct ApiResponse
- struct HostDeploymentStatus
- struct ServiceStatus
pub struct SshHost {
pub name: String,
pub hostname: String,
pub username: String,
pub port: u16,
pub identity_file: Option<String>,
pub is_bastion: bool,
}
pub struct CloudConfig {
pub company_name: String,
pub admin_name: String,
pub cloud_name: String,
pub region: String,
pub ssh_hosts: Vec<SshHost>,
pub enable_monitoring: bool,
pub enable_backups: bool,
pub backup_retention_days: u32,
}
pub struct ApiResponse {
pub status: String,
pub message: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub data: Option<Value>,
}
pub struct HostDeploymentStatus {
pub host: String,
pub status: String,
pub services: Vec<ServiceStatus>,
pub current_step: String,
pub progress: u8,
pub error: Option<String>,
pub completed: bool,
}
pub struct ServiceStatus {
pub name: String,
pub status: String,
pub uptime: Option<String>,
pub cpu: Option<String>,
pub memory: Option<String>,
}