pub struct HealthCheck {
pub server_id: ServerId,
pub status: HealthStatus,
pub timestamp: DateTime<Utc>,
pub player_count: u32,
pub capacity: u32,
pub uptime_secs: u64,
pub tick_rate: f32,
pub memory_mb: u32,
pub cpu_percent: f32,
pub components: Vec<ComponentHealth>,
pub message: Option<String>,
}Expand description
Detailed health check response from a Horizon server.
Fields§
§server_id: ServerIdServer identifier
status: HealthStatusOverall health status
timestamp: DateTime<Utc>Timestamp of this health check
player_count: u32Current player count
capacity: u32Maximum player capacity
uptime_secs: u64Server uptime in seconds
tick_rate: f32Average tick rate (ticks per second)
memory_mb: u32Memory usage in megabytes
cpu_percent: f32CPU usage percentage (0-100)
components: Vec<ComponentHealth>Individual component checks
message: Option<String>Optional message
Implementations§
Source§impl HealthCheck
impl HealthCheck
Trait Implementations§
Source§impl Clone for HealthCheck
impl Clone for HealthCheck
Source§fn clone(&self) -> HealthCheck
fn clone(&self) -> HealthCheck
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HealthCheck
impl Debug for HealthCheck
Source§impl<'de> Deserialize<'de> for HealthCheck
impl<'de> Deserialize<'de> for HealthCheck
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HealthCheck
impl RefUnwindSafe for HealthCheck
impl Send for HealthCheck
impl Sync for HealthCheck
impl Unpin for HealthCheck
impl UnsafeUnpin for HealthCheck
impl UnwindSafe for HealthCheck
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more