774.authinfo.mql 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. select node,nodealias,alertkey,alertgroup,firstoccurrence,lastoccurrence,summary,severity,tally,id,entity,class,status from /m3event/devops/alerts_status where severity>0 limit -1
  2. /**
  3. qmeta({"user":"user1"})
  4. output()
  5. **/
  6. ;
  7. -- 用户信息
  8. select * from /matrix/ldap where username='user1'
  9. /**
  10. output()
  11. count(1)
  12. match("otype", "usr")
  13. match("parent", "/总行/总行录入")
  14. match("fullname", "/总行/总行录入/user1")
  15. **/
  16. ;
  17. -- 用户所属父一级组织
  18. select * from /matrix/ldap where fullname='/总行/总行录入'
  19. /**
  20. output()
  21. count(1)
  22. match("grpset.0", "/总行/总行录入")
  23. match("fullname", "/总行/总行录入")
  24. **/
  25. ;
  26. -- 用户所属父二级组织
  27. select * from /matrix/ldap where fullname='/总行'
  28. /**
  29. output()
  30. count(1)
  31. match("grpset.0", "/总行")
  32. match("fullname", "/总行")
  33. **/
  34. ;
  35. -- 用户所属关联组信息 角色
  36. select * from /matrix/group where fullname='/总行/总行录入'
  37. /**
  38. output()
  39. count(1)
  40. **/
  41. ;
  42. -- 用户所属关联组信息 角色
  43. select * from /matrix/group where parent='/总行/总行录入'
  44. /**
  45. output()
  46. count(1)
  47. **/
  48. ;
  49. -- 用户所属关联组信息 角色
  50. select * from /matrix/group where fullname='/总行'
  51. /**
  52. output()
  53. count(1)
  54. **/
  55. ;