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/12 03:35:54 UTC

[skywalking-query-protocol] branch master updated: Add process count query (#80)

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 3b3b5f4  Add process count query (#80)
3b3b5f4 is described below

commit 3b3b5f42609b4beebd83fbb8ad6d39090e19f894
Author: mrproliu <74...@qq.com>
AuthorDate: Tue Apr 12 11:35:49 2022 +0800

    Add process count query (#80)
---
 metadata-v2.graphqls | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/metadata-v2.graphqls b/metadata-v2.graphqls
index afcc540..fff81c2 100644
--- a/metadata-v2.graphqls
+++ b/metadata-v2.graphqls
@@ -140,6 +140,12 @@ extend type Query {
     listProcesses(serviceId: ID, 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
+    # 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.
+    estimateProfilingScale(serviceId: ID!, labels: [String!]!, duration: Duration!): Long!
     
     getTimeInfo: TimeInfo
 }