wikijs-fork/server/graph/schemas/logging.graphql

65 lines
1.2 KiB
GraphQL
Raw Permalink Normal View History

2018-09-02 02:37:20 +00:00
# ===============================================
# LOGGING
# ===============================================
extend type Query {
logging: LoggingQuery
}
extend type Mutation {
logging: LoggingMutation
}
extend type Subscription {
loggingLiveTrail: LoggerTrailLine
}
2018-09-02 02:37:20 +00:00
# -----------------------------------------------
# QUERIES
# -----------------------------------------------
type LoggingQuery {
loggers(
filter: String
orderBy: String
2018-10-14 21:38:39 +00:00
): [Logger] @auth(requires: ["manage:system"])
2018-09-02 02:37:20 +00:00
}
# -----------------------------------------------
# MUTATIONS
# -----------------------------------------------
type LoggingMutation {
updateLoggers(
loggers: [LoggerInput]
2018-10-14 21:38:39 +00:00
): DefaultResponse @auth(requires: ["manage:system"])
2018-09-02 02:37:20 +00:00
}
# -----------------------------------------------
# TYPES
# -----------------------------------------------
type Logger {
isEnabled: Boolean!
key: String!
title: String!
description: String
logo: String
website: String
level: String
config: [KeyValuePair]
}
input LoggerInput {
isEnabled: Boolean!
key: String!
level: String!
config: [KeyValuePairInput]
}
type LoggerTrailLine {
level: String!
output: String!
timestamp: Date!
}