Hello, does anyone knows how do I get the buckets size from the sub-aggregation buckets "obs1" under the Watcher condition ? Please advise, thanks.
"aggregations" : {
"system" : {
"doc_count_error_upper_bound" : 0,
"sum_other_doc_count" : 0,
"buckets" : [
{
"key" : "system-health-check-status",
"doc_count" : 20,
"obs1" : {
"doc_count_error_upper_bound" : 0,
"sum_other_doc_count" : 0,
"buckets" : [
{
"key" : "obs1.com",
"doc_count" : 5
},
{
"key" : "obs2.com",
"doc_count" : 5
}
]
}
}
]
}
}