问题描述
我正在生成表示失败呼叫的一系列数值,按其源应用程序分组。这是此数据的基本表示形式:
我正在尝试创建基于阈值的警报,应对满足条件的每个应用程序执行该警报。目前,我可以在整个应用程序中获取最大值并执行警报,但是,我的目标是能够检查应用程序组数据并在需要时对该应用程序执行警报。然后,应检查下一个应用程序组并在必要时发出警报。这应该在所有存在的应用程序中发生。
尽管我可以为每个应用程序手动创建一个单独的手表,但这将是乏味且难以维护的。有没有其他方法可以创建此类警报?
注意:以上数据的.json如下:
"aggregations": {
"2": {
"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": 244,"buckets": [
{
"key": "channelB","doc_count": 1746
},{
"key": "channelD","doc_count": 598
},{
"key": "channelC","doc_count": 354
}
]
},"key": "FAILURE","doc_count": 2942
}
]
},"key_as_string": "2020-11-06T17:00:00.000+05:30","key": 1604662200000,"doc_count": 2942
},{
"3": {
"doc_count_error_upper_bound": 0,"sum_other_doc_count": 226,"doc_count": 1714
},"doc_count": 577
},"doc_count": 316
}
]
},"doc_count": 2833
}
]
},"key_as_string": "2020-11-06T18:00:00.000+05:30","key": 1604665800000,"doc_count": 2833
},"sum_other_doc_count": 112,"doc_count": 856
},"doc_count": 278
},"doc_count": 162
}
]
},"doc_count": 1408
}
]
},"key_as_string": "2020-11-06T19:00:00.000+05:30","key": 1604669400000,"doc_count": 1408
}
]
}
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)