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 6b26dda provide query profiled segment (#34) 6b26dda is described below commit 6b26ddad2099b8782b2e298fd0df02dfd1d6609f Author: mrproliu <741550...@qq.com> AuthorDate: Mon Feb 24 16:03:41 2020 +0800 provide query profiled segment (#34) --- profile.graphqls | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/profile.graphqls b/profile.graphqls index 3252ccd..b3ca5fc 100644 --- a/profile.graphqls +++ b/profile.graphqls @@ -113,6 +113,29 @@ type ProfileAnalyzation { trees: [ProfileStackTree!]! } +type ProfiledSpan { + spanId: Int! + parentSpanId: Int! + serviceCode: String! + startTime: Long! + endTime: Long! + endpointName: String + # There are three span types: Local, Entry and Exit + type: String! + # Peer network id, e.g. host+port, ip+port + peer: String + component: String + isError: Boolean + # There are 5 layers: Unknown, Database, RPCFramework, Http, MQ and Cache + layer: String + tags: [KeyValue!]! + logs: [LogEntity!]! +} + +type ProfiledSegment { + spans: [ProfiledSpan!]! +} + extend type Mutation { # crate new profile task createProfileTask(creationRequest: ProfileTaskCreationRequest): ProfileTaskCreationResult! @@ -123,6 +146,8 @@ extend type Query { getProfileTaskList(serviceId: ID, endpointName: String): [ProfileTask!]! # query all task profiled segment list getProfileTaskSegmentList(taskID: String): [BasicTrace!]! + # query profiled segemnt + getProfiledSegment(segmentId: String): ProfiledSegment # analyze profiled segment, start and end time use timestamp(millisecond) getProfileAnalyze(segmentId: String!, start: Long!, end: Long!): ProfileAnalyzation! }