theodi/bothan.js

View on GitHub
cassettes/Bothan/increments by a given amount.json

Summary

Maintainability
Test Coverage
[
  {
    "scope": "https://demo.bothan.io:443",
    "method": "POST",
    "path": "/metrics/my-new-metric-for-increment",
    "body": {
      "time": "2016-01-01T00:00:00.000Z",
      "value": 123
    },
    "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=d69559dfb2fa160366121fee8afd84fdf1481799037; expires=Fri, 15-Dec-17 10:50:37 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",
      "311955f09b7c138f-LHR"
    ]
  },
  {
    "scope": "https://demo.bothan.io:443",
    "method": "POST",
    "path": "/metrics/my-metric-for-increment/increment/123",
    "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=dd2735799d71fa73eabc0907673afb0761481799037; expires=Fri, 15-Dec-17 10:50:37 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",
      "311955f19ce10cdd-LHR"
    ]
  },
  {
    "scope": "https://demo.bothan.io:443",
    "method": "GET",
    "path": "/metrics/my-metric-for-increment.json",
    "body": "",
    "status": 200,
    "response": {
      "_id": {
        "$oid": "5852757d3aca3c0004f45bb6"
      },
      "name": "my-metric-for-increment",
      "time": "2016-12-15T10:50:37.733+00:00",
      "value": 246
    },
    "rawHeaders": [
      "Date",
      "Thu, 15 Dec 2016 10:50:37 GMT",
      "Content-Type",
      "application/json",
      "Content-Length",
      "127",
      "Connection",
      "close",
      "Set-Cookie",
      "__cfduid=db5be6174b1ecad00b2acc1b33a2466eb1481799037; 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",
      "311955f22e1206dc-LHR"
    ]
  }
]