Discarded Duplicate Tags Messages

Description

One of the messages is discarded since all of the key fields (entity, type, source, time) are equal.

Request

URI

POST /api/v1/messages/insert

Payload

[{
    "entity": "nurswgvml007",
    "type": "application",
    "source": "atsd",
    "date": "2016-06-14T14:52:00Z",
    "message": "ssh: error: connect_to localhost port 7777: failed.",
    "severity": "MAJOR",
    "tags": {
      "name": "sda",
      "path": "/"
    }
},{
    "entity": "nurswgvml007",
    "type": "application",
    "source": "atsd",
    "date": "2016-06-14T14:52:00Z",
    "message": "connect to localhost port 8888: failed.",
    "severity": "INFO",
    "tags": {
      "name": "sdb",
      "path": "/"
    }
}]

Response

URI

POST /api/v1/messages/query

Payload

[
  {
    "entity": "nurswgvml007",
    "type": "application",
    "source": "atsd",
    "severity": "MAJOR",
    "tags": {
      "name": "sda",
      "path": "/"
    },
    "message": "ssh: error: connect_to localhost port 7777: failed.",
    "date": "2016-06-15T10:52:00.000Z"
  }
]