Hi @spinscale, I did it with bucket_script:
"success_percent": {
"bucket_script": {
"buckets_path": {
"error": "group_by_count_err",
"total": "group_by_count_all"
},
"script": "params.error/ params.total* 100",
"format": "0.00"
}
}
But I get all NAME values, how can I set the warning threshold for each NAME. For example: NAME 1: 80%, NAME 2: 20%... If the percentage is greater than the threshold, the NAME value will appear in the alert email.