View Source Qdrant.Api.Http.Service (Qdrant v0.0.8)

Fetch various telemetry data and all collections aliases.

Link to this section Summary

Functions

Get list of all existing collections aliases See more on qdrant

Get lock options

Collect Prometheus metrics data

Set lock options

Collect telemetry data

Link to this section Functions

Link to this function

list_collections_aliases()

View Source
@spec list_collections_aliases() :: {:ok, map()} | {:error, any()}

Get list of all existing collections aliases See more on qdrant

example

Example

iex> Qdrant.list_collections_aliases()
%{:ok, %{time: 0, status: "ok", result: %{}, aliases: [%{alias_name: "string", collection_name: "string"}]}}
@spec lock_options() :: {:ok, map()} | {:error, any()}

Get lock options

Get lock options. If write is locked, all write operations and collection creation are forbidden

@spec metrics() :: {:ok, map()} | {:error, any()}

Collect Prometheus metrics data

Collect metrics data including app info, collections info, cluster info and statistics

@spec set_lock_options(map()) :: {:ok, map()} | {:error, any()}

Set lock options

Set lock options. If write is locked, all write operations and collection creation are forbidden. Returns previous lock options

request-body-schema

Request body schema

  • error_message - Error message to return on write operations

  • write - Write lock flag. If true, all write operations and collection creation are forbidden

example

Example

iex> Qdrant.set_lock_options(%{error_message: "string", write: true})
%{:ok, %{time: 0, status: "ok", result: %{error_message: "string", write: true}}}
@spec telemetry() :: {:ok, map()} | {:error, any()}

Collect telemetry data

Collect telemetry data including app info, system info, collections info, cluster info, configs and statistics