o19s / opensearch-ubi

OpenSearch plugin for User Behavior Insights
Apache License 2.0
6 stars 1 forks source link

Adding timestamp to search events #42

Closed jzonthemtn closed 9 months ago

jzonthemtn commented 9 months ago

For #4, adds a timestamp to search events. The timestamp in the search response below.

{
  "took": 3,
  "timed_out": false,
  "_shards": {
    "total": 1,
    "successful": 1,
    "skipped": 0,
    "failed": 0
  },
  "hits": {
    "total": {
      "value": 1,
      "relation": "eq"
    },
    "max_score": 1,
    "hits": [
      {
        "_index": ".awesome_queries",
        "_id": "1xo5s40BIxD0OQiiKYL8",
        "_score": 1,
        "_source": {
          "queryResponseHitIds": [
            "0"
          ],
          "queryResponseId": "a8f83e83-2904-4a2b-ad24-df64bb9022bc",
          "query": "{}",
          "timestamp": 1708108882938,
          "queryId": "0e96d884-a584-431e-b934-761fc71d579d"
        }
      }
    ]
  }
}