Multiple Entities Counted as 1 Series, no Grouping

Description

Request

URI

POST /api/v1/messages/stats/query

Payload

[
  {
    "entities": [
      "nurswgvml007",
      "nurswgvml006"
    ],
    "metric": "message-count",
    "aggregate": {
      "types": [
        "COUNT"
      ],
      "period": {
        "count": 1,
        "unit": "MONTH"
      }
    },
    "startDate": "2016-05-15T00:00:00.000Z",
    "endDate": "2016-06-21T00:00:00.000Z"
  }
]

Response

Payload

[
  {
    "entity": "nurswgvml007_nurswgvml006",
    "metric": "message-count",
    "tags": {},
    "type": "HISTORY",
    "aggregate": {
      "type": "COUNT",
      "period": {
        "count": 1,
        "unit": "MONTH"
      }
    },
    "data": [
      {
        "d": "2016-06-01T00:00:00.000Z",
        "v": 223165
      }
    ]
  }
]