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 2019/12/30 06:28:04 UTC

[skywalking-query-protocol] branch master updated: Profile remove query duration and creation duration step (#25)

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 a52c7a9  Profile remove query duration and creation duration step (#25)
a52c7a9 is described below

commit a52c7a957f02a37b9409b52fc55db774f20291bf
Author: mrproliu <74...@qq.com>
AuthorDate: Mon Dec 30 14:27:57 2019 +0800

    Profile remove query duration and creation duration step (#25)
    
    * change thread monitor to profile
    
    * 1. remove profile task duration unit, use minute
    2. remove duration on query profile task list
---
 profile.graphqls | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/profile.graphqls b/profile.graphqls
index 018a1ab..9823fed 100644
--- a/profile.graphqls
+++ b/profile.graphqls
@@ -22,10 +22,8 @@ input ProfileTaskCreationRequest {
     endpointName: String!
     # if null means the task starts ASAP, otherwise the task begin after the startTime(based on agent side time)
     startTime: Long
-    # duration of this task
+    # duration of this task (minute)
     duration: Int!
-    # duration unit
-    durationUnit: Step!
     # when the segment starts to execute, how long must it take before the monitor can be enbaled
     minDurationThreshold: Int!
     # when start monitor, time interval for each dumping the stack
@@ -50,7 +48,7 @@ type ProfileTask {
     endpointName: String!
     # task start time (timestamp)
     startTime: Long!
-    # duration of this task (second)
+    # duration of this task (minute)
     duration: Int!
     # when the segment starts to execute, how long must it take before the monitor can be enbaled
     minDurationThreshold: Int!
@@ -64,6 +62,6 @@ extend type Mutation {
 }
 
 extend type Query {
-    # query task list
-    getProfileTaskList(serviceId: ID, endpointName: String, duration: Duration!): [ProfileTask!]!
+    # query all task list, order by ProfileTask#startTime descending
+    getProfileTaskList(serviceId: ID, endpointName: String): [ProfileTask!]!
 }