system.graphql 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # ===============================================
  2. # SYSTEM
  3. # ===============================================
  4. extend type Query {
  5. system: SystemQuery
  6. }
  7. extend type Mutation {
  8. system: SystemMutation
  9. }
  10. # -----------------------------------------------
  11. # QUERIES
  12. # -----------------------------------------------
  13. type SystemQuery {
  14. info: SystemInfo @auth(requires: ["manage:system"])
  15. }
  16. # -----------------------------------------------
  17. # MUTATIONS
  18. # -----------------------------------------------
  19. type SystemMutation {
  20. todo: String
  21. }
  22. # -----------------------------------------------
  23. # TYPES
  24. # -----------------------------------------------
  25. type SystemInfo {
  26. configFile: String
  27. cpuCores: Int
  28. currentVersion: String
  29. dbHost: String
  30. dbType: String
  31. dbVersion: String
  32. groupsTotal: Int
  33. hostname: String
  34. latestVersion: String
  35. latestVersionReleaseDate: Date
  36. nodeVersion: String
  37. operatingSystem: String
  38. pagesTotal: Int
  39. platform: String
  40. ramTotal: String
  41. redisHost: String
  42. redisTotalRAM: String
  43. redisUsedRAM: String
  44. redisVersion: String
  45. usersTotal: Int
  46. workingDirectory: String
  47. }