You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by yw...@apache.org on 2019/01/31 04:55:39 UTC

[incubator-skywalking-query-protocol] branch database-query-protocol updated: Update: update database-query-protocol

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

ywang pushed a commit to branch database-query-protocol
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking-query-protocol.git


The following commit(s) were added to refs/heads/database-query-protocol by this push:
     new 99681cd  Update: update database-query-protocol
99681cd is described below

commit 99681cd92c573b2f8074e313e5b0d99e1132e51f
Author: TinyAllen <al...@outlook.com>
AuthorDate: Thu Jan 31 12:55:24 2019 +0800

    Update: update database-query-protocol
---
 database.graphqls | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/database.graphqls b/database.graphqls
new file mode 100644
index 0000000..1e4d888
--- /dev/null
+++ b/database.graphqls
@@ -0,0 +1,29 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Query the cluster brief based on the given duration
+
+type Database {
+    id: ID!
+    name: String!
+}
+
+extend type Query {
+
+    # Database related meta info.
+    getAllDatabases(duration: Duration!): [Database!]!
+
+}