You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2021/08/18 05:59:30 UTC
[skywalking-query-protocol] branch master updated: Add an API for
LAL debug (#60)
This is an automated email from the ASF dual-hosted git repository.
kezhenxu94 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-query-protocol.git
The following commit(s) were added to refs/heads/master by this push:
new 47202fc Add an API for LAL debug (#60)
47202fc is described below
commit 47202fc1eaa1864c587a78f423a0685ffbe294ad
Author: kezhenxu94 <ke...@apache.org>
AuthorDate: Wed Aug 18 13:59:25 2021 +0800
Add an API for LAL debug (#60)
---
log.graphqls | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/log.graphqls b/log.graphqls
index f5b126f..4d58243 100644
--- a/log.graphqls
+++ b/log.graphqls
@@ -75,8 +75,33 @@ enum ContentType {
YAML
}
+input LogTestRequest {
+ # The log data of protocol https://github.com/apache/skywalking-data-collect-protocol/blob/e626ee04850703c220f64b642d2893fa65572943/logging/Logging.proto#41
+ # in JSON format
+ log: String!
+ dsl: String!
+}
+
+type LogTestResponse {
+ # The final log if it will be persisted, this can be empty if the log is dropped.
+ log: Log
+ # The metrics generated during the LAL when testing a LogTestRequest
+ metrics: [LogTestMetrics!]
+}
+
+# The metrics generated during the LAL when testing a LogTestRequest
+type LogTestMetrics {
+ name: String!
+ tags: [KeyValue!]
+ value: Long!
+ timestamp: Long!
+}
+
extend type Query {
# Return true if the current storage implementation supports fuzzy query for logs.
supportQueryLogsByKeywords: Boolean!
queryLogs(condition: LogQueryCondition): Logs
+
+ # Test the logs and get the results of the LAL output.
+ test(requests: LogTestRequest!): LogTestResponse!
}