@ -109,35 +109,35 @@ specified value.</p>
< div class = "highlight" > < pre > < span > < / span > < code > < span class = "p" > {< / span >
< span class = "nt" > " checks" < / span > < span class = "p" > :< / span > < span class = "p" > [< / span >
< span class = "p" > {< / span >
< span class = "nt" > " chan nels " < / span > < span class = "p" > :< / span > < span class = "s2" > " 4ec5a071-2d08-4baa-898a-eb4eb3cd6941,746a083e-f542-4554-be1a-707ce16d3acc " < / span > < span class = "p" > ,< / span >
< span class = "nt" > " desc " < / span > < span class = "p" > :< / span > < span class = "s2" > " Longer free-form description goes here " < / span > < span class = "p" > ,< / span >
< span class = "nt" > " grace " < / span > < span class = "p" > :< / span > < span class = "mi" > 900 < / span > < span class = "p" > ,< / span >
< span class = "nt" > " last_pin g" < / span > < span class = "p" > :< / span > < span class = "s2 " > " 2017-01-04T13:24:39.9034 64+ 00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " nam e" < / span > < span class = "p" > :< / span > < span class = "s2" > " Filesystem Backup " < / span > < span class = "p" > ,< / span >
< span class = "nt" > " tags " < / span > < span class = "p" > :< / span > < span class = "s2" > " backup fs " < / span > < span class = "p" > ,< / span >
< span class = "nt" > " desc " < / span > < span class = "p" > :< / span > < span class = "s2" > " Runs incremental backup every hour" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " grace " < / span > < span class = "p" > :< / span > < span class = "mi " > 600< / span > < span class = "p" > ,< / span >
< span class = "nt" > " n_pings" < / span > < span class = "p" > :< / span > < span class = "mi" > 1< / span > < span class = "p" > ,< / span >
< span class = "nt" > " name" < / span > < span class = "p" > :< / span > < span class = "s2" > " Api test 1" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " next_ping" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2017-01-04T14:24:39.903464+00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " pause_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/662ebe36-ecab-48db-afe3-e20029cb71e6/pause" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " ping_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " PING_ENDPOINT662ebe36-ecab-48db-afe3-e20029cb71e6" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " status" < / span > < span class = "p" > :< / span > < span class = "s2" > " up" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " tags" < / span > < span class = "p" > :< / span > < span class = "s2" > " foo" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " timeout" < / span > < span class = "p" > :< / span > < span class = "mi" > 3600< / span > < span class = "p" > ,< / span >
< span class = "nt" > " update_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/662ebe36-ecab-48db-afe3-e20029cb71e6" < / span >
< span class = "nt" > " last_ping" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2020-03-24T14:02:03+00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " next_ping" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2020-03-24T15:02:03+00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " ping_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " PING_ENDPOINT31365bce-8da9-4729-8ff3-aaa71d56b712" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " update_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/31365bce-8da9-4729-8ff3-aaa71d56b712" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " pause_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/31365bce-8da9-4729-8ff3-aaa71d56b712/pause" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " channels" < / span > < span class = "p" > :< / span > < span class = "s2" > " 1bdea468-03bf-47b8-ab27-29a9dd0e4b94,51c6eb2b-2ae1-456b-99fe-6f1e0a36cd3c" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " timeout" < / span > < span class = "p" > :< / span > < span class = "mi" > 3600< / span >
< span class = "p" > },< / span >
< span class = "p" > {< / span >
< span class = "nt" > " channels" < / span > < span class = "p" > :< / span > < span class = "s2" > " " < / span > < span class = "p" > ,< / span >
< span class = "nt" > " desc" < / span > < span class = "p" > :< / span > < span class = "s2" > " " < / span > < span class = "p" > ,< / span >
< span class = "nt" > " grace" < / span > < span class = "p" > :< / span > < span class = "mi" > 3600< / span > < span class = "p" > ,< / span >
< span class = "nt" > " last_ping" < / span > < span class = "p" > :< / span > < span class = "kc" > null< / span > < span class = "p" > ,< / span >
< span class = "nt" > " n_pings" < / span > < span class = "p" > :< / span > < span class = "mi" > 0< / span > < span class = "p" > ,< / span >
< span class = "nt" > " name" < / span > < span class = "p" > :< / span > < span class = "s2" > " Api test 2" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " name" < / span > < span class = "p" > :< / span > < span class = "s2" > " Database Backup" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " tags" < / span > < span class = "p" > :< / span > < span class = "s2" > " production db" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " desc" < / span > < span class = "p" > :< / span > < span class = "s2" > " Runs ~/db-backup.sh" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " grace" < / span > < span class = "p" > :< / span > < span class = "mi" > 1200< / span > < span class = "p" > ,< / span >
< span class = "nt" > " n_pings" < / span > < span class = "p" > :< / span > < span class = "mi" > 7< / span > < span class = "p" > ,< / span >
< span class = "nt" > " status" < / span > < span class = "p" > :< / span > < span class = "s2" > " down" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " last_ping" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2020-03-23T10:19:32+00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " next_ping" < / span > < span class = "p" > :< / span > < span class = "kc" > null< / span > < span class = "p" > ,< / span >
< span class = "nt" > " pause_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/9d17c61f-5c4f-4cab-b517-11e6b2679ced/pause" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " ping_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " PING_ENDPOINT9d17c61f-5c4f-4cab-b517-11e6b2679ced" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " schedule" < / span > < span class = "p" > :< / span > < span class = "s2" > " 0/10 * * * *" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " status" < / span > < span class = "p" > :< / span > < span class = "s2" > " new" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " tags" < / span > < span class = "p" > :< / span > < span class = "s2" > " bar baz" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " tz" < / span > < span class = "p" > :< / span > < span class = "s2" > " UTC" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " update_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/9d17c61f-5c4f-4cab-b517-11e6b2679ced" < / span >
< span class = "nt" > " ping_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " PING_ENDPOINT803f680d-e89b-492b-82ef-2be7b774a92d" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " update_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/803f680d-e89b-492b-82ef-2be7b774a92d" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " pause_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/803f680d-e89b-492b-82ef-2be7b774a92d/pause" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " channels" < / span > < span class = "p" > :< / span > < span class = "s2" > " 1bdea468-03bf-47b8-ab27-29a9dd0e4b94,51c6eb2b-2ae1-456b-99fe-6f1e0a36cd3c" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " schedule" < / span > < span class = "p" > :< / span > < span class = "s2" > " 15 5 * * *" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " tz" < / span > < span class = "p" > :< / span > < span class = "s2" > " UTC" < / span >
< span class = "p" > }< / span >
< span class = "p" > ]< / span >
< span class = "p" > }< / span >
@ -150,28 +150,29 @@ is added. This identifier is stable across API calls. Example:</p>
< div class = "highlight" > < pre > < span > < / span > < code > < span class = "p" > {< / span >
< span class = "nt" > " checks" < / span > < span class = "p" > :< / span > < span class = "p" > [< / span >
< span class = "p" > {< / span >
< span class = "nt" > " desc" < / span > < span class = "p" > :< / span > < span class = "s2" > " Longer free-form description goes here" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " grace" < / span > < span class = "p" > :< / span > < span class = "mi" > 900< / span > < span class = "p" > ,< / span >
< span class = "nt" > " last_ping" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2017-01-04T13:24:39.903464+00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " name" < / span > < span class = "p" > :< / span > < span class = "s2" > " Filesystem Backup" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " tags" < / span > < span class = "p" > :< / span > < span class = "s2" > " backup fs" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " desc" < / span > < span class = "p" > :< / span > < span class = "s2" > " Runs incremental backup every hour" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " grace" < / span > < span class = "p" > :< / span > < span class = "mi" > 600< / span > < span class = "p" > ,< / span >
< span class = "nt" > " n_pings" < / span > < span class = "p" > :< / span > < span class = "mi" > 1< / span > < span class = "p" > ,< / span >
< span class = "nt" > " name" < / span > < span class = "p" > :< / span > < span class = "s2" > " Api test 1" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " status" < / span > < span class = "p" > :< / span > < span class = "s2" > " up" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " tags" < / span > < span class = "p" > :< / span > < span class = "s2" > " foo" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " timeout" < / span > < span class = "p" > :< / span > < span class = "mi" > 3600< / span > < span class = "p" > ,< / span >
< span class = "nt" > " unique_key" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2872190d95224bad120f41d3c06aab94b8175bb6" < / span >
< span class = "nt" > " last_ping" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2020-03-24T14:02:03+00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " next_ping" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2020-03-24T15:02:03+00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " unique_key" < / span > < span class = "p" > :< / span > < span class = "s2" > " a6c7b0a8a66bed0df66abfdab3c77736861703ee" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " timeout" < / span > < span class = "p" > :< / span > < span class = "mi" > 3600< / span >
< span class = "p" > },< / span >
< span class = "p" > {< / span >
< span class = "nt" > " desc" < / span > < span class = "p" > :< / span > < span class = "s2" > " " < / span > < span class = "p" > ,< / span >
< span class = "nt" > " grace" < / span > < span class = "p" > :< / span > < span class = "mi" > 3600< / span > < span class = "p" > ,< / span >
< span class = "nt" > " last_ping" < / span > < span class = "p" > :< / span > < span class = "kc" > null< / span > < span class = "p" > ,< / span >
< span class = "nt" > " n_pings" < / span > < span class = "p" > :< / span > < span class = "mi" > 0< / span > < span class = "p" > ,< / span >
< span class = "nt" > " name" < / span > < span class = "p" > :< / span > < span class = "s2" > " Api test 2" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " name" < / span > < span class = "p" > :< / span > < span class = "s2" > " Database Backup" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " tags" < / span > < span class = "p" > :< / span > < span class = "s2" > " production db" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " desc" < / span > < span class = "p" > :< / span > < span class = "s2" > " Runs ~/db-backup.sh" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " grace" < / span > < span class = "p" > :< / span > < span class = "mi" > 1200< / span > < span class = "p" > ,< / span >
< span class = "nt" > " n_pings" < / span > < span class = "p" > :< / span > < span class = "mi" > 7< / span > < span class = "p" > ,< / span >
< span class = "nt" > " status" < / span > < span class = "p" > :< / span > < span class = "s2" > " down" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " last_ping" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2020-03-23T10:19:32+00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " next_ping" < / span > < span class = "p" > :< / span > < span class = "kc" > null< / span > < span class = "p" > ,< / span >
< span class = "nt" > " schedule" < / span > < span class = "p" > :< / span > < span class = "s2" > " 0/10 * * * *" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " status" < / span > < span class = "p" > :< / span > < span class = "s2" > " new" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " tags" < / span > < span class = "p" > :< / span > < span class = "s2" > " bar baz" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " tz" < / span > < span class = "p" > :< / span > < span class = "s2" > " UTC" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " unique_key" < / span > < span class = "p" > :< / span > < span class = "s2" > " 9b5fc29129560ff2c5c1803803a7415e4f80cf7e" < / span >
< span class = "nt" > " unique_key" < / span > < span class = "p" > :< / span > < span class = "s2" > " 124f983e0e3dcaeba921cfcef46efd084576e783" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " schedule" < / span > < span class = "p" > :< / span > < span class = "s2" > " 15 5 * * *" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " tz" < / span > < span class = "p" > :< / span > < span class = "s2" > " UTC" < / span >
< span class = "p" > }< / span >
< span class = "p" > ]< / span >
< span class = "p" > }< / span >
@ -199,19 +200,43 @@ is added. This identifier is stable across API calls. Example:</p>
< h3 > Example Response< / h3 >
< div class = "highlight" > < pre > < span > < / span > < code > < span class = "p" > {< / span >
< span class = "nt" > " channels" < / span > < span class = "p" > :< / span > < span class = "s2" > " 4ec5a071-2d08-4baa-898a-eb4eb3cd6941,746a083e-f542-4554-be1a-707ce16d3acc" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " desc" < / span > < span class = "p" > :< / span > < span class = "s2" > " Longer free-form description goes here" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " grace" < / span > < span class = "p" > :< / span > < span class = "mi" > 900< / span > < span class = "p" > ,< / span >
< span class = "nt" > " last_ping" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2017-01-04T13:24:39.903464+00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " n_pings" < / span > < span class = "p" > :< / span > < span class = "mi" > 1< / span > < span class = "p" > ,< / span >
< span class = "nt" > " name" < / span > < span class = "p" > :< / span > < span class = "s2" > " Api test 1" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " next_ping" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2017-01-04T14:24:39.903464+00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " pause_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/662ebe36-ecab-48db-afe3-e20029cb71e6/pause" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " ping_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " PING_ENDPOINT662ebe36-ecab-48db-afe3-e20029cb71e6" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " status" < / span > < span class = "p" > :< / span > < span class = "s2" > " up" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " tags" < / span > < span class = "p" > :< / span > < span class = "s2" > " foo" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " timeout" < / span > < span class = "p" > :< / span > < span class = "mi" > 3600< / span > < span class = "p" > ,< / span >
< span class = "nt" > " update_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/662ebe36-ecab-48db-afe3-e20029cb71e6" < / span >
< span class = "nt" > " name" < / span > < span class = "p" > :< / span > < span class = "s2" > " Database Backup" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " tags" < / span > < span class = "p" > :< / span > < span class = "s2" > " production db" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " desc" < / span > < span class = "p" > :< / span > < span class = "s2" > " Runs ~/db-backup.sh" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " grace" < / span > < span class = "p" > :< / span > < span class = "mi" > 1200< / span > < span class = "p" > ,< / span >
< span class = "nt" > " n_pings" < / span > < span class = "p" > :< / span > < span class = "mi" > 7< / span > < span class = "p" > ,< / span >
< span class = "nt" > " status" < / span > < span class = "p" > :< / span > < span class = "s2" > " down" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " last_ping" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2020-03-23T10:19:32+00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " next_ping" < / span > < span class = "p" > :< / span > < span class = "kc" > null< / span > < span class = "p" > ,< / span >
< span class = "nt" > " ping_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " PING_ENDPOINT803f680d-e89b-492b-82ef-2be7b774a92d" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " update_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/803f680d-e89b-492b-82ef-2be7b774a92d" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " pause_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/803f680d-e89b-492b-82ef-2be7b774a92d/pause" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " channels" < / span > < span class = "p" > :< / span > < span class = "s2" > " 1bdea468-03bf-47b8-ab27-29a9dd0e4b94,51c6eb2b-2ae1-456b-99fe-6f1e0a36cd3c" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " schedule" < / span > < span class = "p" > :< / span > < span class = "s2" > " 15 5 * * *" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " tz" < / span > < span class = "p" > :< / span > < span class = "s2" > " UTC" < / span >
< span class = "p" > }< / span >
< / code > < / pre > < / div >
< h3 > Example Read-Only Response< / h3 >
< p > When using the read-only API key, the following fields are omitted:
< code > ping_url< / code > , < code > update_url< / code > , < code > pause_url< / code > , < code > channels< / code > . An extra < code > unique_key< / code > field is
added. This identifier is stable across API calls.< / p >
< p > Note: the < code > ping_url< / code > , < code > update_url< / code > and < code > pause_url< / code > fields, although omitted, are not
really secret. The client already knows the check's unique UUID and so can easily
construct these URLs by itself.< / p >
< div class = "highlight" > < pre > < span > < / span > < code > < span class = "p" > {< / span >
< span class = "nt" > " name" < / span > < span class = "p" > :< / span > < span class = "s2" > " Database Backup" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " tags" < / span > < span class = "p" > :< / span > < span class = "s2" > " production db" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " desc" < / span > < span class = "p" > :< / span > < span class = "s2" > " Runs ~/db-backup.sh" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " grace" < / span > < span class = "p" > :< / span > < span class = "mi" > 1200< / span > < span class = "p" > ,< / span >
< span class = "nt" > " n_pings" < / span > < span class = "p" > :< / span > < span class = "mi" > 7< / span > < span class = "p" > ,< / span >
< span class = "nt" > " status" < / span > < span class = "p" > :< / span > < span class = "s2" > " down" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " last_ping" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2020-03-23T10:19:32+00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " next_ping" < / span > < span class = "p" > :< / span > < span class = "kc" > null< / span > < span class = "p" > ,< / span >
< span class = "nt" > " unique_key" < / span > < span class = "p" > :< / span > < span class = "s2" > " 124f983e0e3dcaeba921cfcef46efd084576e783" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " schedule" < / span > < span class = "p" > :< / span > < span class = "s2" > " 15 5 * * *" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " tz" < / span > < span class = "p" > :< / span > < span class = "s2" > " UTC" < / span >
< span class = "p" > }< / span >
< / code > < / pre > < / div >