Wobserver v0.1.8 Wobserver.Util.Node.Remote View Source

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

Link to this type t() View Source
t() :: %Wobserver.Util.Node.Remote{host: String.t, local?: boolean, name: String.t, port: integer}

Remote node information.

Link to this section Functions

Link to this function api(remote_node, path) View Source
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.

Link to this function metrics(remote_node) View Source
metrics(remote_node :: map) :: String.t | :error

Collects metrics from a given remote_node.

Link to this function socket_proxy(remote_node) View Source
socket_proxy(atom | map) ::
  {pid, String.t} |
  {:error, String.t}

Sets up a websocket connection to the given remote_node.