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 2023/03/09 12:12:48 UTC

[skywalking-query-protocol] branch master updated: Support empty value for query single value (#112)

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 a658062  Support empty value for query single value (#112)
a658062 is described below

commit a658062786e895a6e1b9b16025e05a6d9be1541c
Author: 吴晟 Wu Sheng <wu...@foxmail.com>
AuthorDate: Thu Mar 9 20:12:42 2023 +0800

    Support empty value for query single value (#112)
---
 metrics-v2.graphqls | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/metrics-v2.graphqls b/metrics-v2.graphqls
index 091ba42..b3c47b4 100644
--- a/metrics-v2.graphqls
+++ b/metrics-v2.graphqls
@@ -145,6 +145,9 @@ extend type Query {
 
     # Read metrics single value in the duration of required metrics
     readMetricsValue(condition: MetricsCondition!, duration: Duration!): Long!
+    # Read metrics single value in the duration of required metrics
+    # IntValues#values#isEmptyValue == true indicates no telemetry data rather than aggregated value is actually zero.
+    readNullableMetricsValue(condition: MetricsCondition!, duration: Duration!): IntValues
     # Read time-series values in the duration of required metrics
     readMetricsValues(condition: MetricsCondition!, duration: Duration!): MetricsValues!
     # Read entity list of required metrics and parent entity type.