gaows20 commented on issue #3384:
URL: https://github.com/apache/hertzbeat/issues/3384#issuecomment-2958020667
对对对 ,太需要了!!!
# 状态值映射
- ifOperStatus=ifOperStatusRaw@map(1=up,2=down)
还有@where和@count()函数等:
calculates:
# 直接使用字符串过滤统计
- total_devices=status_list@where(status_list!="Empty")@count()
- connected_devices=status_list@where(status_list=="Connected")@count()
-
disconnected_devices=status_list@where(status_list=="Unconnect")@count()
- empty_devices=status_list@where(status_list=="Empty")@count()
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]