

-- select class,id,name,day,vtime,status,duration from /cache/alerts_status order by vtime
-- /**
--     output()
-- **/
-- ;


SELECT
 max(type) as "最大值", min(type) as "最小值", avg(type), sum(type), count(*)
FROM
  /cache/alerts_status
-- where agent='huawei mttrapd #48' and node='222.129.134.178'
/**
    output()
**/
;


-- select class, id, day, vtime, type from /cache/alerts_status
--  where type = null
-- /**
--     output()
-- **/
-- ;


-- select count(*),min(vtime) as minvtime,max(vtime),sum(vtime),avg(vtime),day,node,status from /cache/alerts_status
--  where status>100 and status <300 and node!='node:node:192.168.0.11'
--  group by day
--  order by node desc
-- /**
--     output()
-- **/
-- ;

