Deux v0.1.2 Deux.Ping View Source

Handle the ping sources and services integirty checks

Link to this section Summary

Functions

Adds the remote ping source, load local reports and start worker

Link to this section Functions

Adds the remote ping source, load local reports and start worker

Params

  • name: the name of the given source
  • request: tesla request tuple list
  • mode: (default :status) to monitor mode
    • :status: it monitors succesful statuses
    • :body: it monitors the complete body from a response
    • :json: it monitors the json reponse

Examples

iex> srv = Deux.Ping.add(name: "localhost", request: [method: :get, url: "http://127.0.0.1:3000"], mode: :body)