This is an automated email from the ASF dual-hosted git repository. wankai pushed a commit to branch mqe in repository https://gitbox.apache.org/repos/asf/skywalking-query-protocol.git
commit fec33dea5941dd123ab474587716b5caf28baf4b Author: wankai123 <[email protected]> AuthorDate: Thu Jun 1 15:18:11 2023 +0800 Update metrics-expression.graphqls. --- 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! }
