Health and ping checks for InfluxDB instances.
Delegates to the configured InfluxElixir.Client implementation.
Use this module to verify connectivity and service health.
Examples
{:ok, conn} = InfluxElixir.Client.Local.start()
{:ok, %{"status" => "pass"}} = InfluxElixir.Admin.Health.check(conn)
Summary
Functions
Checks the health of an InfluxDB instance.
Functions
@spec check(InfluxElixir.Client.connection()) :: {:ok, map()} | {:error, term()}
Checks the health of an InfluxDB instance.
Parameters
connection- a client connection term
Returns
{:ok, map()}with string keys, as decoded from the server's JSON (e.g.%{"status" => "pass"});Client.Localreturns the same shape{:error, reason}if the instance is unreachable or unhealthy