SmolBox.Health (SmolBox v0.1.0)

Copy Markdown View Source

Bounded worker health observation from SmolVM's /health endpoint.

The version is reported by the server, not cryptographically attested. Missing machine counts indicate unavailable inventory; a successful HTTP status alone is insufficient for managed admission. Readiness is a separate blocking-pool probe. Neither endpoint certifies host quotas, artifact identity, or isolation.

Summary

Types

t()

@type t() :: %SmolBox.Health{
  running: non_neg_integer() | nil,
  total: non_neg_integer() | nil,
  uptime_seconds: non_neg_integer() | nil,
  version: String.t()
}

Functions

from_wire(body)

@spec from_wire(term()) :: {:ok, t()} | {:error, SmolBox.Error.t()}