You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.2 KiB

  1. # ===============================================
  2. # LOGGING
  3. # ===============================================
  4. extend type Query {
  5. logging: LoggingQuery
  6. }
  7. extend type Mutation {
  8. logging: LoggingMutation
  9. }
  10. extend type Subscription {
  11. loggingLiveTrail: LoggerTrailLine
  12. }
  13. # -----------------------------------------------
  14. # QUERIES
  15. # -----------------------------------------------
  16. type LoggingQuery {
  17. loggers(
  18. filter: String
  19. orderBy: String
  20. ): [Logger] @auth(requires: ["manage:system"])
  21. }
  22. # -----------------------------------------------
  23. # MUTATIONS
  24. # -----------------------------------------------
  25. type LoggingMutation {
  26. updateLoggers(
  27. loggers: [LoggerInput]
  28. ): DefaultResponse @auth(requires: ["manage:system"])
  29. }
  30. # -----------------------------------------------
  31. # TYPES
  32. # -----------------------------------------------
  33. type Logger {
  34. isEnabled: Boolean!
  35. key: String!
  36. title: String!
  37. description: String
  38. logo: String
  39. website: String
  40. level: String
  41. config: [KeyValuePair]
  42. }
  43. input LoggerInput {
  44. isEnabled: Boolean!
  45. key: String!
  46. level: String!
  47. config: [KeyValuePairInput]
  48. }
  49. type LoggerTrailLine {
  50. level: String!
  51. output: String!
  52. timestamp: Date!
  53. }