pub struct HealthResponse {
pub ok: bool,
pub runner_version: String,
pub uptime_ms: u64,
pub last_request_at_ms: u64,
pub sessions_open: u32,
pub activations_total: u64,
}Expand description
Extended GET /health response body (v1.0.2 additive).
Prior to v1.0.2 the endpoint returned a bare 200 with no body. Consumers that ignore the body get identical behavior; consumers that parse the JSON gain liveness observability.
Fields§
§ok: boolRunner alive.
runner_version: StringRunner semver (matches the smix-cli that shipped it).
uptime_ms: u64Runner uptime in milliseconds.
last_request_at_ms: u64Epoch millis of the runner’s most recent processed request (any route). 0 if the runner has served no requests yet.
sessions_open: u32Currently-open session count.
activations_total: u64Total .activate() calls issued since runner boot.
Trait Implementations§
Source§impl Clone for HealthResponse
impl Clone for HealthResponse
Source§fn clone(&self) -> HealthResponse
fn clone(&self) -> HealthResponse
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 HealthResponse
impl Debug for HealthResponse
Source§impl Default for HealthResponse
impl Default for HealthResponse
Source§fn default() -> HealthResponse
fn default() -> HealthResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HealthResponse
impl<'de> Deserialize<'de> for HealthResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HealthResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HealthResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for HealthResponse
impl Serialize for HealthResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for HealthResponse
impl RefUnwindSafe for HealthResponse
impl Send for HealthResponse
impl Sync for HealthResponse
impl Unpin for HealthResponse
impl UnsafeUnpin for HealthResponse
impl UnwindSafe for HealthResponse
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