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 2022/04/13 13:49:45 UTC

[skywalking-query-protocol] branch master updated: Update process query (#82)

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 4fb447b  Update process query (#82)
4fb447b is described below

commit 4fb447b78d6e31912cbd8c8ae82cca1fc80861de
Author: mrproliu <74...@qq.com>
AuthorDate: Wed Apr 13 21:49:41 2022 +0800

    Update process query (#82)
---
 metadata-v2.graphqls | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/metadata-v2.graphqls b/metadata-v2.graphqls
index 97289ce..e0e1fe3 100644
--- a/metadata-v2.graphqls
+++ b/metadata-v2.graphqls
@@ -135,17 +135,16 @@ extend type Query {
     findEndpoint(keyword: String, serviceId: ID!, limit: Int!): [Endpoint!]!
     getEndpointInfo(endpointId: ID!): EndpointInfo
 
-    # Read process list if either serviceId or instanceId is provided.
-    # Otherwise, read an empty list.
-    listProcesses(serviceId: ID, instanceId: ID): [Process!]!
+    # Read process list.
+    listProcesses(duration: Duration!, instanceId: ID!): [Process!]!
     # Find process according to given ID. Return null if not existing.
     getProcess(processId: ID!): Process
-    # Get the number of matched processes through serviceId, labels, and duration
+    # Get the number of matched processes through serviceId, labels
     # Labels: the matched process should contain all labels
     #
     # The return is not a precise number, the process has its lifecycle, as it reboots and shutdowns with time.
     # The return number just gives an abstract of the scale of profiling that would be applied.
-    estimateProcessScale(serviceId: ID!, labels: [String!]!, duration: Duration!): Long!
+    estimateProcessScale(serviceId: ID!, labels: [String!]!): Long!
     
     getTimeInfo: TimeInfo
 }