From ef1f9658083d7e421c1fa4a8656cfc8cdf34f968 Mon Sep 17 00:00:00 2001 From: mrproliu <741550557@qq.com> Date: Fri, 3 Jan 2020 11:53:40 +0800 Subject: [PATCH] add profile task execute log (#26) * add profile task execute log * fix issues * change `ProfileTaskLog#operationType` to enum * change `EXECUTE_FINISH` to `EXECUTION_FINISHED` --- profile.graphqls | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/profile.graphqls b/profile.graphqls index 9823fed..94c4167 100644 --- a/profile.graphqls +++ b/profile.graphqls @@ -39,6 +39,27 @@ type ProfileTaskCreationResult { id: String } +# Profile task log operation type +enum ProfileTaskLogOperationType { + # when sniffer has notified + NOTIFIED, + # when sniffer has execution finished to report + EXECUTION_FINISHED +} + +# Profile task execute log +type ProfileTaskLog { + id: String! + # execute instance + instanceId: ID! + instanceName: String! + # operation type + operationType: ProfileTaskLogOperationType! + # operation time + operationTime: Long! +} + +# Profile type ProfileTask { id: String! # monitor service @@ -54,6 +75,9 @@ type ProfileTask { minDurationThreshold: Int! # when start monitor, time interval for each dumping the stack dumpPeriod: Int! + + # instance operation logs + logs: [ProfileTaskLog!]! } extend type Mutation { -- GitLab