@ -1,28 +1,29 @@ | |||||
<div class="highlight"><pre><span></span><span class="p">{</span> | <div class="highlight"><pre><span></span><span class="p">{</span> | ||||
<span class="nt">"checks"</span><span class="p">:</span> <span class="p">[</span> | <span class="nt">"checks"</span><span class="p">:</span> <span class="p">[</span> | ||||
<span class="p">{</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">"ping_url"</span><span class="p">:</span> <span class="s2">"{{ PING_ENDPOINT }}662ebe36-ecab-48db-afe3-e20029cb71e6"</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">"grace"</span><span class="p">:</span> <span class="mi">900</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">"2016-07-09T13:58:43.366568+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">"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">"2016-07-09T14:58:43.366568+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/25c55e7c-8092-4d21-ad06-7dacfbb6fc10/pause"</span><span class="p">,</span> | |||||
<span class="nt">"ping_url"</span><span class="p">:</span> <span class="s2">"{{ PING_ENDPOINT }}25c55e7c-8092-4d21-ad06-7dacfbb6fc10"</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">"n_pings"</span><span class="p">:</span> <span class="mi">1</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">"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="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">"timeout"</span><span class="p">:</span> <span class="mi">3600</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="p">},</span> | ||||
<span class="p">{</span> | <span class="p">{</span> | ||||
<span class="nt">"grace"</span><span class="p">:</span> <span class="mi">60</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">"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">"ping_url"</span><span class="p">:</span> <span class="s2">"{{ PING_ENDPOINT }}9d17c61f-5c4f-4cab-b517-11e6b2679ced"</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">"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/7e1b6e61-b16f-4671-bae3-e3233edd1b5e/pause"</span><span class="p">,</span> | |||||
<span class="nt">"ping_url"</span><span class="p">:</span> <span class="s2">"{{ PING_ENDPOINT }}7e1b6e61-b16f-4671-bae3-e3233edd1b5e"</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">"grace"</span><span class="p">:</span> <span class="mi">3600</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">"n_pings"</span><span class="p">:</span> <span class="mi">0</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">"tags"</span><span class="p">:</span> <span class="s2">"bar baz"</span><span class="p">,</span> | ||||
<span class="nt">"timeout"</span><span class="p">:</span> <span class="mi">60</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">"tz"</span><span class="p">:</span> <span class="s2">"UTC"</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="p">}</span> | ||||
<span class="p">]</span> | <span class="p">]</span> | ||||
<span class="p">}</span> | <span class="p">}</span> | ||||
@ -1,28 +1,29 @@ | |||||
{ | { | ||||
"checks": [ | "checks": [ | ||||
{ | { | ||||
"last_ping": "2017-01-04T13:24:39.903464+00:00", | |||||
"ping_url": "PING_ENDPOINT662ebe36-ecab-48db-afe3-e20029cb71e6", | |||||
"next_ping": "2017-01-04T14:24:39.903464+00:00", | |||||
"grace": 900, | "grace": 900, | ||||
"last_ping": "2016-07-09T13:58:43.366568+00:00", | |||||
"n_pings": 1, | |||||
"name": "Api test 1", | "name": "Api test 1", | ||||
"next_ping": "2016-07-09T14:58:43.366568+00:00", | |||||
"pause_url": "SITE_ROOT/api/v1/checks/25c55e7c-8092-4d21-ad06-7dacfbb6fc10/pause", | |||||
"ping_url": "PING_ENDPOINT25c55e7c-8092-4d21-ad06-7dacfbb6fc10", | |||||
"status": "up", | |||||
"n_pings": 1, | |||||
"tags": "foo", | "tags": "foo", | ||||
"timeout": 3600 | |||||
"pause_url": "SITE_ROOT/api/v1/checks/662ebe36-ecab-48db-afe3-e20029cb71e6/pause", | |||||
"timeout": 3600, | |||||
"status": "up" | |||||
}, | }, | ||||
{ | { | ||||
"grace": 60, | |||||
"last_ping": null, | "last_ping": null, | ||||
"n_pings": 0, | |||||
"name": "Api test 2", | |||||
"ping_url": "PING_ENDPOINT9d17c61f-5c4f-4cab-b517-11e6b2679ced", | |||||
"next_ping": null, | "next_ping": null, | ||||
"pause_url": "SITE_ROOT/api/v1/checks/7e1b6e61-b16f-4671-bae3-e3233edd1b5e/pause", | |||||
"ping_url": "PING_ENDPOINT7e1b6e61-b16f-4671-bae3-e3233edd1b5e", | |||||
"status": "new", | |||||
"grace": 3600, | |||||
"name": "Api test 2", | |||||
"n_pings": 0, | |||||
"tags": "bar baz", | "tags": "bar baz", | ||||
"timeout": 60 | |||||
"pause_url": "SITE_ROOT/api/v1/checks/9d17c61f-5c4f-4cab-b517-11e6b2679ced/pause", | |||||
"tz": "UTC", | |||||
"schedule": "0/10 * * * *", | |||||
"status": "new" | |||||
} | } | ||||
] | ] | ||||
} | } |