nomex v0.0.3 Nomex.Status

Methods in this module are used to interact with Nomad’s Status HTTP API. More information here:

https://www.nomadproject.io/api/status.html

Link to this section Summary

Functions

issues a GET request to <NOMAD_HOST>/v1/status/leader

issues a GET request to <NOMAD_HOST>/v1/status/leader

issues a GET request to <NOMAD_HOST>/v1/status/peers

issues a GET request to <NOMAD_HOST>/v1/status/peers

Link to this section Functions

issues a GET request to <NOMAD_HOST>/v1/status/leader

returns a tuple with status (:ok, :error) and the %Nomex.Response{}

Link to this function leader!()
leader!() :: Nomex.Response.t()

issues a GET request to <NOMAD_HOST>/v1/status/leader

returns a %Nomex.Response{} or raises exception

issues a GET request to <NOMAD_HOST>/v1/status/peers

returns a tuple with status (:ok, :error) and the %Nomex.Response{}

issues a GET request to <NOMAD_HOST>/v1/status/peers

returns a %Nomex.Response{} or raises exception