You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2020/12/03 01:32:49 UTC

[skywalking-query-protocol] branch master updated: Log query polish (#44)

This is an automated email from the ASF dual-hosted git repository.

wusheng 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 4be8e45  Log query polish (#44)
4be8e45 is described below

commit 4be8e459b0ff56ed5d41a3b5c2173ba83668831e
Author: 吴晟 Wu Sheng <wu...@foxmail.com>
AuthorDate: Thu Dec 3 09:30:23 2020 +0800

    Log query polish (#44)
    
    * I polished a little about the log query.
    
    * Add tags.
---
 log.graphqls | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)

diff --git a/log.graphqls b/log.graphqls
index 31836fc..420d12c 100644
--- a/log.graphqls
+++ b/log.graphqls
@@ -44,12 +44,27 @@ input LogQueryCondition {
     serviceId: ID
     serviceInstanceId: ID
     endpointId: ID
-    traceId: String
+    # Related trace condition.
+    # When use related trace condition, duration is not required.
+    relatedTrace: TraceScopeCondition
     # The time range of log happened
+    # [Required] duration is required in most query, only exception is when use relatedTrace.
     queryDuration: Duration
     state: LogState!
-    stateCode: String
     paging: Pagination!
+    tags: [LogTag!]
+}
+
+# Trace related condition
+input TraceScopeCondition {
+    traceId: String!
+    segmentId: String
+    spanId: Int
+}
+
+input LogTag {
+    key: String!
+    value: String
 }
 
 enum LogState {
@@ -61,7 +76,7 @@ enum LogState {
 enum ContentType {
     TEXT
     JSON
-    NONE
+    YAML
 }
 
 extend type Query {