mirror of https://github.com/requarks/wiki
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.
65 lines
1.1 KiB
65 lines
1.1 KiB
# ===============================================
|
|
# LOGGING
|
|
# ===============================================
|
|
|
|
extend type Query {
|
|
logging: LoggingQuery
|
|
}
|
|
|
|
extend type Mutation {
|
|
logging: LoggingMutation
|
|
}
|
|
|
|
extend type Subscription {
|
|
loggingLiveTrail: LoggerTrailLine
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# QUERIES
|
|
# -----------------------------------------------
|
|
|
|
type LoggingQuery {
|
|
loggers(
|
|
filter: String
|
|
orderBy: String
|
|
): [Logger]
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# MUTATIONS
|
|
# -----------------------------------------------
|
|
|
|
type LoggingMutation {
|
|
updateLoggers(
|
|
loggers: [LoggerInput]
|
|
): DefaultResponse
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# 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!
|
|
}
|