Update metadata.graphqls 7/head
author吴晟 Wu Sheng <wu.sheng@foxmail.com>
Tue, 16 Oct 2018 09:04:18 +0000 (17:04 +0800)
committerGitHub <noreply@github.com>
Tue, 16 Oct 2018 09:04:18 +0000 (17:04 +0800)
metadata.graphqls

index 94b0d1c..7ff5062 100644 (file)
@@ -45,6 +45,13 @@ type Endpoint {
     name: String!
 }
 
+type EndpointInfo {
+    id: ID!
+    name: String!
+    serviceId: ID!
+    serviceName: String!
+}
+
 extend type Query {
     getGlobalBrief(duration: Duration!): ClusterBrief
 
@@ -60,4 +67,5 @@ extend type Query {
     # Consider there are huge numbers of endpoint,
     # must use endpoint owner's service id, keyword and limit filter to do query.
     searchEndpoint(keyword: String!, serviceId: ID!, limit: Int!): [Endpoint!]!
+    getEndpointInfo(endpointId: ID!): EndpointInfo
 }