Skip to content

Instantly share code, notes, and snippets.

@charliemoseley
Created September 12, 2014 19:52
Show Gist options
  • Save charliemoseley/997a912c6811962f5a8c to your computer and use it in GitHub Desktop.
Save charliemoseley/997a912c6811962f5a8c to your computer and use it in GitHub Desktop.
{
"meta": {
"status": "Success"
},
"data": {
"id": 8347876, <- For a test now, should this be NULL?
"href: NULL, <- Same?
"monitor": {
"id": 393,
"url": "https://api.apiscience.com/v1/monitors/393"
},
"statistics": {
"resolve": 1.29,
"connect": 70.59,
"transfer": 69.4,
"closing": 0.15,
"total": 141.42,
"downloadSize": 184
},
"calls": [
{
"id": 10038750,
"template": {
"id": 1833,
"url": "https://api.apisceince.com/v1/monitors/393/templates/1833"
},
"statistics": {
"resolve": 1.29,
"connect": 70.59,
"transfer": 69.4,
"closing": 0.15,
"total": 141.42,
"downloadSize": 184
},
"request": {
"verb": "POST",
"url": "http://apiscience.com",
"headers": null,
"body": null,
"params": null
},
"response": {
"contentType": "text/html",
"stausCode": 301,
"headers": [
{
"Server": "nginx/1.2.1"
},
{
"Date": "Fri, 12 Sep 2014 19:50:55 GMT"
},
{
"Content-Type": "text/html"
},
{
"Content-Length": "184"
},
{
"Connection": "keep-alive"
},
{
"Location": "http://www.apiscience.com/"
}
],
"body": "<html>\r\n<head><title>301 Moved Permanently</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>301 Moved Permanently</h1></center>\r\n<hr><center>nginx/1.2.1</center>\r\n</body>\r\n</html>\r\n"
},
"validationFailures": [
{
"kind": "Regex",
"message": "Response does not contain any regex matchs for '~/foo/'"
}
],
"createdAt": "2014-09-12T19:50:55.000Z",
"updatedAt": "2014-09-12T19:50:55.000Z"
}
],
"createdAt": "2014-09-12T19:50:55.000Z",
"updatedAt": "2014-09-12T19:50:55.000Z"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment