View Source Jellyfish.Health (Jellyfish Server SDK v0.5.1)
Utilities for managing the health of Jellyfish instances.
Examples
iex> client = Jellyfish.Client.new()
iex> assert {:ok, %Jellyfish.Health{
...> status: :up,
...> }} = Jellyfish.Health.check(client)
Summary
Functions
Perform a health check of Jellyfish.
Types
@type status() :: :up | :down
The status of Jellyfish or a specific service.
@type t() :: %Jellyfish.Health{ distribution: %{ enabled: boolean(), node_status: status(), nodes_in_cluster: non_neg_integer() }, status: status(), uptime: non_neg_integer() }
Stores a health report of Jellyfish.
:status
- overall status:uptime
- uptime in seconds:distribution
- distribution health report::enabled
- whether distribution is enabled:node_status
- status of this Jellyfish's node:nodes_in_cluster
- amount of nodes (including this Jellyfish's node) in the distribution cluster
Functions
@spec check(Jellyfish.Client.t()) :: {:ok, t()} | {:error, atom() | String.t()}
Perform a health check of Jellyfish.