theodi/bothan.js

View on GitHub
cassettes/Bothan/creates a new metric with increment.json

Summary

Maintainability
Test Coverage
[
  {
    "scope": "https://demo.bothan.io:443",
    "method": "POST",
    "path": "/metrics/my-new-metric/increment/1",
    "body": "",
    "status": 201,
    "response": "",
    "rawHeaders": [
      "Date",
      "Thu, 15 Dec 2016 10:50:37 GMT",
      "Content-Type",
      "text/html;charset=utf-8",
      "Transfer-Encoding",
      "chunked",
      "Connection",
      "close",
      "Set-Cookie",
      "__cfduid=d1f48f9b0b673caac7efb7882aa8cc6791481799036; expires=Fri, 15-Dec-17 10:50:36 GMT; path=/; domain=.bothan.io; HttpOnly",
      "Vary",
      "Accept, Origin",
      "X-Xss-Protection",
      "1; mode=block",
      "X-Content-Type-Options",
      "nosniff",
      "Via",
      "1.1 vegur",
      "Strict-Transport-Security",
      "max-age=0; includeSubDomains",
      "Server",
      "cloudflare-nginx",
      "CF-RAY",
      "311955ed1e8434e2-LHR"
    ]
  },
  {
    "scope": "https://demo.bothan.io:443",
    "method": "GET",
    "path": "/metrics/my-new-metric.json",
    "body": "",
    "status": 200,
    "response": {
      "_id": {
        "$oid": "5852757d3aca3c0004f45bb0"
      },
      "name": "my-new-metric",
      "time": "2016-12-15T10:50:37.043+00:00",
      "value": 1
    },
    "rawHeaders": [
      "Date",
      "Thu, 15 Dec 2016 10:50:37 GMT",
      "Content-Type",
      "application/json",
      "Content-Length",
      "115",
      "Connection",
      "close",
      "Set-Cookie",
      "__cfduid=dad5fb99bbb0315fdbd0a5a670ca43fd71481799037; expires=Fri, 15-Dec-17 10:50:37 GMT; path=/; domain=.bothan.io; HttpOnly",
      "Vary",
      "Accept, Origin",
      "X-Content-Type-Options",
      "nosniff",
      "Via",
      "1.1 vegur",
      "Strict-Transport-Security",
      "max-age=0; includeSubDomains",
      "Server",
      "cloudflare-nginx",
      "CF-RAY",
      "311955edd90b3452-LHR"
    ]
  }
]