Wobserver v0.1.7 Wobserver.Util.Node.Remote

Remote node.

TODO: Needs config.

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

Types

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

Remote node information.

Functions

api(remote_node, path)
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.

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

Collects metrics from a given remote_node.

socket_proxy(remote_node)
socket_proxy(atom | map) ::
  {pid, String.t} |
  {:error, String.t}

Sets up a websocket connection to the given remote_node.