theodi/bothan.js

View on GitHub
cassettes/Bothan/creates a simple metric with a specific time.json

Summary

Maintainability
Test Coverage
[
  {
    "scope": "https://demo.bothan.io:443",
    "method": "POST",
    "path": "/metrics/my-new-metric",
    "body": {
      "time": "2016-12-23T00:00:00.000+00:00",
      "value": 123
    },
    "status": 201,
    "response": "",
    "rawHeaders": [
      "Date",
      "Tue, 13 Dec 2016 11:10:09 GMT",
      "Content-Type",
      "text/html;charset=utf-8",
      "Transfer-Encoding",
      "chunked",
      "Connection",
      "close",
      "Set-Cookie",
      "__cfduid=dc0b904cf7b2a34a88152169576f33a871481627409; expires=Wed, 13-Dec-17 11:10:09 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",
      "3108f7ce4a743452-LHR"
    ]
  },
  {
    "scope": "https://demo.bothan.io:443",
    "method": "GET",
    "path": "/metrics/my-new-metric.json",
    "body": "",
    "status": 200,
    "response": {
      "_id": {
        "$oid": "584fd711ea094e000444c875"
      },
      "name": "my-new-metric",
      "time": "2016-12-23T00:00:00.000+00:00",
      "value": 123
    },
    "rawHeaders": [
      "Date",
      "Tue, 13 Dec 2016 11:10:09 GMT",
      "Content-Type",
      "application/json",
      "Content-Length",
      "117",
      "Connection",
      "close",
      "Set-Cookie",
      "__cfduid=daa0f750fc3ed3ae4f9c029d51dc65ce91481627409; expires=Wed, 13-Dec-17 11:10:09 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",
      "3108f7cefef40cdd-LHR"
    ]
  }
]