3select.mql 720 B

12345678910111213141516171819202122232425262728293031323334353637
  1. -- select class,id,name,day,vtime,status,duration from /cache/nalerts_status order by vtime
  2. -- /**
  3. -- output()
  4. -- **/
  5. -- ;
  6. SELECT
  7. max(type) as "最大值", min(type) as "最小值", avg(type), sum(type), count(*)
  8. FROM
  9. /cache/nalerts_status
  10. -- where agent='huawei mttrapd #48' and node='222.129.134.178'
  11. /**
  12. output()
  13. **/
  14. ;
  15. select class, id, day, vtime, node, type from /cache/nalerts_status
  16. -- where type = null
  17. /**
  18. output()
  19. **/
  20. ;
  21. -- select count(*),min(vtime) as minvtime,max(vtime),sum(vtime),avg(vtime),day,node,status from /cache/nalerts_status
  22. -- where status>100 and status <300 and node!='node:node:192.168.0.11'
  23. -- group by day
  24. -- order by node desc
  25. -- /**
  26. -- output()
  27. -- **/
  28. -- ;