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 0e11348  Update metrics-expression.graphqls. (#115)
0e11348 is described below

commit 0e11348a0b984881a6a6ffe834464ab634b072bf
Author: Wan Kai <[email protected]>
AuthorDate: Thu Jun 1 18:22:55 2023 +0800

    Update metrics-expression.graphqls. (#115)
---
 metrics-expression.graphqls | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/metrics-expression.graphqls b/metrics-expression.graphqls
index dc04251..47b2ad9 100644
--- a/metrics-expression.graphqls
+++ b/metrics-expression.graphqls
@@ -33,8 +33,8 @@ enum ExpressionResultType {
 }
 
 type MQEValue {
-    # Timestampe or name of the entity or record.
-    id: ID!
+    # Timestamp or name of the entity or record. It could be NULL if it is the 
result of an aggregate calculation.
+    id: ID
     # Value is formatted double/int or NULL if the value is absent.
     value: String
     # Sampled record could associate with a trace.
@@ -43,8 +43,8 @@ type MQEValue {
 }
 
 type MQEValues {
-    # The metadata description of this value series.
-    metric: Metadata!
+    # The metadata description of this value series. It could be NULL if it is 
the result of the different metrics calculation.
+    metric: Metadata
     # 1. When the type == SINGLE_VALUE, values only have one value.
     # 2. When the type == TIME_SERIES_VALUES, values would match the given 
elements in the duration range.
     # 3. When the type == SORTED_LIST, values could be results of 
`sort(metric)`
@@ -71,7 +71,7 @@ type ExpressionResult {
 
 
 extend type Query {
-    # The return type of the given expression
-    returnTypeOfMQE(expression: String!): ExpressionResultType!
+    # The return type of the given expression, the MQEValues will be empty.
+    returnTypeOfMQE(expression: String!): ExpressionResult!
     execExpression(expression: String!, entity: Entity!, duration: Duration!): 
ExpressionResult!
 }

Reply via email to