You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wa...@apache.org on 2023/02/21 06:23:27 UTC

[skywalking-query-protocol] 01/01: deprecate scope from entity

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

wankai pushed a commit to branch deprecate-scope
in repository https://gitbox.apache.org/repos/asf/skywalking-query-protocol.git

commit 574d42f1ce8b351dd9c7b85ef1d08a90160bf857
Author: wankai123 <wa...@foxmail.com>
AuthorDate: Tue Feb 21 14:23:11 2023 +0800

    deprecate scope from entity
---
 metrics-v2.graphqls | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/metrics-v2.graphqls b/metrics-v2.graphqls
index 35be22d..ecb3d78 100644
--- a/metrics-v2.graphqls
+++ b/metrics-v2.graphqls
@@ -34,13 +34,14 @@ enum MetricsType {
 }
 
 input Entity {
-    # 1. scope=All, no name is required.
-    # 2. scope=Service, ServiceInstance and Endpoint, set necessary serviceName/serviceInstanceName/endpointName
-    # 3. Scope=ServiceRelation, ServiceInstanceRelation, EndpointRelation and ProcessRelation
+    # Deprecated from 9.4.0
+    # Backend query service would get Scope by condition's `metrics name` from `ValueColumnMetadata`, and override the Scope here.
+    scope: Scope
+    # 1. metrics scope=Service, ServiceInstance and Endpoint, set necessary serviceName/serviceInstanceName/endpointName
+    # 2. metrics Scope=ServiceRelation, ServiceInstanceRelation, EndpointRelation and ProcessRelation
     #    serviceName/serviceInstanceName/endpointName/processName is/are the source(s)
     #    destServiceName/destServiceInstanceName/destEndpointName/destProcessName is/are destination(s)
     #    set necessary names of sources and destinations.
-    scope: Scope!
     serviceName: String
     # Normal service is the service having installed agent or metrics reported directly.
     # Unnormal service is conjectural service, usually detected by the agent.