Skip to content

Instantly share code, notes, and snippets.

@rashidkpc
Created May 18, 2015 22:22
Show Gist options
  • Save rashidkpc/c9620b8e8d4bf2eb0ad3 to your computer and use it in GitHub Desktop.
Save rashidkpc/c9620b8e8d4bf2eb0ad3 to your computer and use it in GitHub Desktop.
{
"took": 14,
"timed_out": false,
"_shards": {
"total": 35,
"successful": 35,
"failed": 0
},
"hits": {
"total": 14268,
"max_score": 0,
"hits": []
},
"aggregations": {
"2": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 345,
"buckets": [
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "kcal",
"doc_count": 3048
}
]
},
"key": "calories",
"doc_count": 3048
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "meters",
"doc_count": 3048
}
]
},
"key": "distance",
"doc_count": 3048
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "seconds",
"doc_count": 3048
}
]
},
"key": "duration",
"doc_count": 3048
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "step",
"doc_count": 3048
}
]
},
"key": "steps",
"doc_count": 3048
}
]
},
"key": "activity",
"doc_count": 12192
},
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 104,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "kcal",
"doc_count": 132
}
]
},
"key": "calories",
"doc_count": 132
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "g",
"doc_count": 128
}
]
},
"key": "protein",
"doc_count": 128
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "g",
"doc_count": 127
}
]
},
"key": "sodium",
"doc_count": 127
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "g",
"doc_count": 125
}
]
},
"key": "fat",
"doc_count": 125
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "g",
"doc_count": 122
}
]
},
"key": "carbohydrate",
"doc_count": 122
}
]
},
"key": "food-meal",
"doc_count": 738
},
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "seconds",
"doc_count": 231
}
]
},
"key": "duration",
"doc_count": 231
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "",
"doc_count": 231
}
]
},
"key": "name",
"doc_count": 231
}
]
},
"key": "location",
"doc_count": 462
},
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "minutes",
"doc_count": 86
}
]
},
"key": "timeInBed",
"doc_count": 86
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "",
"doc_count": 83
}
]
},
"key": "efficiency",
"doc_count": 83
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "minutes",
"doc_count": 83
}
]
},
"key": "timeAsleep",
"doc_count": 83
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "minutes",
"doc_count": 78
}
]
},
"key": "timeAwake",
"doc_count": 78
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "minutes",
"doc_count": 51
}
]
},
"key": "timeAfterWakeup",
"doc_count": 51
}
]
},
"key": "sleep",
"doc_count": 381
},
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "mmHg",
"doc_count": 50
}
]
},
"key": "diastolic",
"doc_count": 50
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "bpm",
"doc_count": 50
}
]
},
"key": "heartRate",
"doc_count": 50
},
{
"4": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "mmHg",
"doc_count": 50
}
]
},
"key": "systolic",
"doc_count": 50
}
]
},
"key": "blood_pressure",
"doc_count": 150
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment