| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- 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)
- **/
- ;
|