View Source Wobserver.Util.Node.Remote (Wobserver NG v1.14.0)

Remote node.

TODO: Needs config.

Link to this section Summary

Types

t()

Remote node information.

Functions

Performs an api call using the path on the remote_node and returns the result.

Collects metrics from a given remote_node.

Sets up a websocket connection to the given remote_node.

Link to this section Types

@type t() :: %Wobserver.Util.Node.Remote{
  host: String.t(),
  local?: boolean(),
  name: String.t(),
  port: integer()
}

Remote node information.

Link to this section Functions

@spec api(remote_node :: map(), path :: String.t()) :: String.t() | :error

Performs an api call using the path on the remote_node and returns the result.

@spec metrics(remote_node :: map()) :: String.t() | :error

Collects metrics from a given remote_node.

Link to this function

socket_proxy(remote_node)

View Source
@spec socket_proxy(atom() | map()) :: {pid(), String.t()} | {:error, String.t()}

Sets up a websocket connection to the given remote_node.