meilisearch v0.1.0-beta Meilisearch.System View Source
Collection of functions used to retrieve extended information about hardware usage by Meilisearch.
Link to this section Summary
Link to this section Functions
Specs
info() :: Meilisearch.HTTP.response()
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 %"]
}}