Skip to content

RESTful API

Vasily Korytov edited this page Jul 12, 2018 · 7 revisions

GET /status

Prior to 2.0 this was GET /

Output example

[
  {
    "name": "Yandex",
    "web": "https://ya.ru",
    "failed": false
  },
  {
    "web": "http://192.168.6.1",
    "failed": false,
    "since": "2018-07-10T22:12:49+03Z"
  },
  {
    "shell": "ping -t 1 192.168.6.1",
    "failed": true,
    "since": "2018-07-10T22:12:54+03:00"
  }
]

Specification

  • name: Human-readable description (optional)

  • web: Web check URL

  • shell: Shell check command

  • failed: true if the check failed :-)

  • since: Last status change timestamp: that is the time, check flickered between failed and non-failed status.
    If the check is up all the time since application (re)started, there is no since field

    Please note that Z in timestamps indicates UTC, otherwise it's UTC offset.

GET /version

{
  "jsonmon": "3.1.8",
  "runtime": "go1.10.3",
  "os": "darwin",
  "arch": "amd64"
}
Clone this wiki locally