提交 ef1f9658 编写于 作者: 静夜思朝颜's avatar 静夜思朝颜 提交者: wu-sheng

add profile task execute log (#26)

* add profile task execute log

* fix issues

* change `ProfileTaskLog#operationType` to enum

* change `EXECUTE_FINISH` to `EXECUTION_FINISHED`
上级 a9b48130
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册