I need to be able to write a condition for a watcher that will alert when the results from the Bucket Critical doc_count is at 50% or higher of bucket Info doc_count
This is the aggregation results
"aggregations" : {
"level" : {
"doc_count_error_upper_bound" : 0,
"sum_other_doc_count" : 0,
"buckets" : [
{
"key" : "INFO",
"doc_count" : 662
},
{
"key" : "Critical",
"doc_count" : 5
}
]
}
}