Support query endpoints in given duration (#140)
diff --git a/metadata-v2.graphqls b/metadata-v2.graphqls
index adf3850..d22e734 100644
--- a/metadata-v2.graphqls
+++ b/metadata-v2.graphqls
@@ -129,7 +129,8 @@
# 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!]!
+ # If duration is nil mean get all endpoints, otherwise, get the endpoint list in the given duration.
+ findEndpoint(keyword: String, serviceId: ID!, limit: Int!, duration: Duration): [Endpoint!]!
getEndpointInfo(endpointId: ID!): EndpointInfo
# Read process list.