select node,nodealias,alertkey,alertgroup,firstoccurrence,lastoccurrence,summary,severity,tally,id,entity,class,status from /m3event/devops/alerts_status where severity>0 limit -1 /** qmeta({"user":"user1"}) output() **/ ; -- 用户信息 select * from /matrix/ldap where username='user1' /** output() count(1) match("otype", "usr") match("parent", "/总行/总行录入") match("fullname", "/总行/总行录入/user1") **/ ; -- 用户所属父一级组织 select * from /matrix/ldap where fullname='/总行/总行录入' /** output() count(1) match("grpset.0", "/总行/总行录入") match("fullname", "/总行/总行录入") **/ ; -- 用户所属父二级组织 select * from /matrix/ldap where fullname='/总行' /** output() count(1) match("grpset.0", "/总行") match("fullname", "/总行") **/ ; -- 用户所属关联组信息 角色 select * from /matrix/group where fullname='/总行/总行录入' /** output() count(1) **/ ; -- 用户所属关联组信息 角色 select * from /matrix/group where parent='/总行/总行录入' /** output() count(1) **/ ; -- 用户所属关联组信息 角色 select * from /matrix/group where fullname='/总行' /** output() count(1) **/ ;