未验证 提交 aee43574 编写于 作者: 静夜思朝颜's avatar 静夜思朝颜 提交者: GitHub

add profile analyze query time range (#35)

上级 6b26ddad
...@@ -136,6 +136,11 @@ type ProfiledSegment { ...@@ -136,6 +136,11 @@ type ProfiledSegment {
spans: [ProfiledSpan!]! spans: [ProfiledSpan!]!
} }
type ProfileAnalyzeTimeRange {
start: Long!
end: Long!
}
extend type Mutation { extend type Mutation {
# crate new profile task # crate new profile task
createProfileTask(creationRequest: ProfileTaskCreationRequest): ProfileTaskCreationResult! createProfileTask(creationRequest: ProfileTaskCreationRequest): ProfileTaskCreationResult!
...@@ -149,5 +154,5 @@ extend type Query { ...@@ -149,5 +154,5 @@ extend type Query {
# query profiled segemnt # query profiled segemnt
getProfiledSegment(segmentId: String): ProfiledSegment getProfiledSegment(segmentId: String): ProfiledSegment
# analyze profiled segment, start and end time use timestamp(millisecond) # analyze profiled segment, start and end time use timestamp(millisecond)
getProfileAnalyze(segmentId: String!, start: Long!, end: Long!): ProfileAnalyzation! getProfileAnalyze(segmentId: String!, timeRanges: [ProfileAnalyzeTimeRange!]!): ProfileAnalyzation!
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册