meilisearch v0.1.0-beta Meilisearch.System View Source

Collection of functions used to retrieve extended information about hardware usage by Meilisearch.

MeiliSearch Documentation - System Information

Link to this section Summary

Functions

Get system information.

Get system information with human-readable units.

Link to this section Functions

Specs

Get system information.

Example

iex> Meilisearch.Keys.get()
{:ok,
%{
  "global" => %{
    "inputData" => 0,
    "outputData" => 0,
    "totalMemory" => 0,
    "totalSwap" => 0,
    "usedMemory" => 0,
    "usedSwap" => 0
  },
  "memoryUsage" => nil,
  "process" => %{"cpu" => 0.0, "memory" => 0},
  "processorUsage" => [0.0, 0.0, 0.0, 0.0]
}}

Specs

info_pretty() :: Meilisearch.HTTP.response()

Get system information with human-readable units.

Example

iex> Meilisearch.Keys.get()
{:ok,
%{
  "global" => %{
    "inputData" => "0 B",
    "outputData" => "0 B",
    "totalMemory" => "0 B",
    "totalSwap" => "0 B",
    "usedMemory" => "0 B",
    "usedSwap" => "0 B"
  },
  "memoryUsage" => "NaN %",
  "process" => %{"cpu" => "None", "memory" => "None"},
  "processorUsage" => ["0.0 %", "0.0 %", "0.0 %", "0.0 %"]
}}