Manages Meilisearch health, version, and stats checks.
Summary
Functions
Gets the health of the Meilisearch server.
Gets the health of the Meilisearch server, raising if the request fails.
Gets the stats of all indexes.
Gets the stats of all indexes, raising if the request fails.
Gets the version of the Meilisearch server.
Gets the version of the Meilisearch server, raising if the request fails.
Functions
@spec health(Meili.Client.t() | nil) :: {:ok, map()} | {:error, Meili.Error.t()}
Gets the health of the Meilisearch server.
Examples
Meili.Health.health()
Meili.Health.health(client)
@spec health!(Meili.Client.t() | nil) :: map() | no_return()
Gets the health of the Meilisearch server, raising if the request fails.
Examples
Meili.Health.health!()
Meili.Health.health!(client)
@spec stats(Meili.Client.t() | nil) :: {:ok, map()} | {:error, Meili.Error.t()}
Gets the stats of all indexes.
Examples
Meili.Health.stats()
Meili.Health.stats(client)
@spec stats!(Meili.Client.t() | nil) :: map() | no_return()
Gets the stats of all indexes, raising if the request fails.
Examples
Meili.Health.stats!()
Meili.Health.stats!(client)
@spec version(Meili.Client.t() | nil) :: {:ok, map()} | {:error, Meili.Error.t()}
Gets the version of the Meilisearch server.
Examples
Meili.Health.version()
Meili.Health.version(client)
@spec version!(Meili.Client.t() | nil) :: map() | no_return()
Gets the version of the Meilisearch server, raising if the request fails.
Examples
Meili.Health.version!()
Meili.Health.version!(client)