Series Query: Calendar Expression Syntax

Description

startDate and endDate can be specified with calendar keywords.

Request

URI

POST /api/v1/series/query

Payload

[
    {
        "endDate":   "now",
        "startDate": "current_hour",
        "entity": "nurswgvml007",
        "metric": "mpstat.cpu_busy"
    }
]

Response

Payload

[
  {
    "entity": "nurswgvml007",
    "metric": "mpstat.cpu_busy",
    "tags": {},
    "type": "HISTORY",
    "aggregate": {
      "type": "DETAIL"
    },
    "data": [
      {
        "d": "2016-06-27T12:00:13.000Z",
        "v": 34.38
      },
      {
        "d": "2016-06-27T12:00:29.000Z",
        "v": 37.76
      }
    ]
  }
]