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 bea847b Provide v2 of endpoint topology query. In order to make the UI could query metrics for the endpoint dependencies in v2. bea847b is described below commit bea847b90e08c07a5407c4121fe4cec1eec77a78 Author: Wu Sheng <wu.sh...@foxmail.com> AuthorDate: Tue Jun 30 16:55:21 2020 +0800 Provide v2 of endpoint topology query. In order to make the UI could query metrics for the endpoint dependencies in v2. --- topology.graphqls | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/topology.graphqls b/topology.graphqls index 012330b..6084255 100644 --- a/topology.graphqls +++ b/topology.graphqls @@ -26,6 +26,12 @@ type ServiceInstanceTopology { calls: [Call!]! } +# The endpoint topology +type EndpointTopology { + nodes: [EndpointNode!]! + calls: [Call!]! +} + # Node in Topology type Node { # The global id of each node, @@ -46,7 +52,25 @@ type Node { type ServiceInstanceNode { # The instance id of each node, id: ID! - # The literal name of the #id. + # The literal name of the #id. Instance Name. + name: String! + # Service id + serviceId: ID! + # The literal name of the #serviceId. + serviceName: String! + # The type name may be + # 1. The service provider/middleware tech, such as: Tomcat, SpringMVC + # 2. Conjectural Service, e.g. MySQL, Redis, Kafka + type: String + # It is a conjuecture node or real node, to represent an instance. + isReal: Boolean! +} + +# Node in EndpointTopology +type EndpointNode { + # The instance id of each node, + id: ID! + # The literal name of the #id. Endpoint Name name: String! # Service id serviceId: ID! @@ -93,4 +117,6 @@ extend type Query { getServiceInstanceTopology(clientServiceId: ID!, serverServiceId: ID!, duration: Duration!): ServiceInstanceTopology # Query the topology, based on the given endpoint getEndpointTopology(endpointId: ID!, duration: Duration!): Topology + # v2 of getEndpointTopology + getEndpointDependencies(endpointId: ID!, duration: Duration!): EndpointTopology }