未验证 提交 1122e97b 编写于 作者: 彭勇升 pengys 提交者: GitHub

Merge pull request #7 from apache/wu-sheng-patch-1

Add query service id/name from endpoint
...@@ -45,6 +45,13 @@ type Endpoint { ...@@ -45,6 +45,13 @@ type Endpoint {
name: String! name: String!
} }
type EndpointInfo {
id: ID!
name: String!
serviceId: ID!
serviceName: String!
}
extend type Query { extend type Query {
getGlobalBrief(duration: Duration!): ClusterBrief getGlobalBrief(duration: Duration!): ClusterBrief
...@@ -60,4 +67,5 @@ extend type Query { ...@@ -60,4 +67,5 @@ extend type Query {
# Consider there are huge numbers of endpoint, # Consider there are huge numbers of endpoint,
# must use endpoint owner's service id, keyword and limit filter to do query. # must use endpoint owner's service id, keyword and limit filter to do query.
searchEndpoint(keyword: String!, serviceId: ID!, limit: Int!): [Endpoint!]! searchEndpoint(keyword: String!, serviceId: ID!, limit: Int!): [Endpoint!]!
getEndpointInfo(endpointId: ID!): EndpointInfo
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册