基于条件的SignalFX检测器数据()。计数()
是否可以根据条件实现计数()MTS?
例如: 我们需要监视RDS CPU在过去3天中选择95%的时间。
A = data('CPU_Utilization').count(...when point > 95%).
detector(when(A > {number_of_times_breached}, lasting='3d')).publish(...)
更新。
解决方案是由我的同事发现的:
A = data('CPU_Utilization').above({condition_value}, inclusive=True).count(...)
Is it possible to implement count() MTS based on condition?
For instance:
We need to monitor the amount of time RDS CPU picks the point of 95% for the last 3 days.
A = data('CPU_Utilization').count(...when point > 95%).
detector(when(A > {number_of_times_breached}, lasting='3d')).publish(...)
Update.
Solution was found by my colleague:
A = data('CPU_Utilization').above({condition_value}, inclusive=True).count(...)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用在
spl
QUERY中的布尔结果count()
中的带有布尔结果。类似
You can use
eval()
with boolean result insidecount()
in yourSPL
query.Something like