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:08:47 UTC

[skywalking-query-protocol] 01/01: Support empty value for query single value

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

wusheng pushed a commit to branch wu-sheng-patch-1
in repository https://gitbox.apache.org/repos/asf/skywalking-query-protocol.git

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

    Support empty value for query single value
---
 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.