You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2021/12/27 08:56:37 UTC

[skywalking-query-protocol] branch wu-sheng-patch-1 updated: Update metadata-v2.graphqls

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch wu-sheng-patch-1
in repository https://gitbox.apache.org/repos/asf/skywalking-query-protocol.git


The following commit(s) were added to refs/heads/wu-sheng-patch-1 by this push:
     new 57b456a  Update metadata-v2.graphqls
57b456a is described below

commit 57b456ad51f910bfb38ee06de0c5a51eee601f33
Author: 吴晟 Wu Sheng <wu...@foxmail.com>
AuthorDate: Mon Dec 27 16:56:35 2021 +0800

    Update metadata-v2.graphqls
---
 metadata-v2.graphqls | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/metadata-v2.graphqls b/metadata-v2.graphqls
index 2bf55b4..528f303 100644
--- a/metadata-v2.graphqls
+++ b/metadata-v2.graphqls
@@ -108,18 +108,20 @@ extend type Query {
     
     # Read the service list according to layer.
     listServices(layer: String!): [Service!]!
+    # Find service according to given ID. Return null if not existing.
+    getService(serviceId: String!): Service
+    # Search and find service according to given name. Return null if not existing.
+    findService(serviceName: String!): Service
+    
     # Read service instance list.
     listInstances(duration: Duration!, serviceId: ID!): [ServiceInstance!]!
-
-    # Search and find service according to given ID. Return null if not existing.
-    findService(serviceId: String!): Service
     # Search and find service instance according to given ID. Return null if not existing.
-    findInstance(instanceId: String!): ServiceInstance
+    getInstance(instanceId: String!): ServiceInstance
+    
     # Search and find matched endpoints according to given service and keyword(optional)
     # If no keyword, randomly choose endpoint based on `limit` value.
     findEndpoint(keyword: String, serviceId: ID!, limit: Int!): [Endpoint!]!
-
-    # Legacy query(s) from v1
     getEndpointInfo(endpointId: ID!): EndpointInfo
+    
     getTimeInfo: TimeInfo
 }