Skip to content

Instantly share code, notes, and snippets.

@ikenami
Created August 2, 2018 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikenami/c098f106454ca2c2e4214570f88a4bca to your computer and use it in GitHub Desktop.
Save ikenami/c098f106454ca2c2e4214570f88a4bca to your computer and use it in GitHub Desktop.
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 3,
"successful": 3,
"failed": 0
},
"hits": {
"total": 21,
"max_score": 0,
"hits": []
},
"aggregations": {
"group_by_date": {
"buckets": [
{
"key_as_string": "2018-07-18T00:00:00.000Z",
"key": 1531872000000,
"doc_count": 3,
"total": {
"value": 314
}
},
{
"key_as_string": "2018-07-19T00:00:00.000Z",
"key": 1531958400000,
"doc_count": 3,
"total": {
"value": 336
}
},
{
"key_as_string": "2018-07-20T00:00:00.000Z",
"key": 1532044800000,
"doc_count": 3,
"total": {
"value": 334
}
},
{
"key_as_string": "2018-07-21T00:00:00.000Z",
"key": 1532131200000,
"doc_count": 3,
"total": {
"value": 323
}
},
{
"key_as_string": "2018-07-22T00:00:00.000Z",
"key": 1532217600000,
"doc_count": 3,
"total": {
"value": 332
}
},
{
"key_as_string": "2018-07-23T00:00:00.000Z",
"key": 1532304000000,
"doc_count": 3,
"total": {
"value": 307
}
},
{
"key_as_string": "2018-07-24T00:00:00.000Z",
"key": 1532390400000,
"doc_count": 3,
"total": {
"value": 272
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment