You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by kd...@apache.org on 2019/09/22 03:29:21 UTC
[skywalking-query-protocol] 01/02: add query server time info
This is an automated email from the ASF dual-hosted git repository.
kdump pushed a commit to branch query-server-time-info
in repository https://gitbox.apache.org/repos/asf/skywalking-query-protocol.git
commit c39bc9f3f174f87fa6a830ac13f13719cf8129e1
Author: x22x22 <ro...@gmail.com>
AuthorDate: Sun Sep 22 11:28:15 2019 +0800
add query server time info
---
.graphqlconfig | 15 +++++++++++++++
scalar.graphql | 1 +
time.graphqls | 24 ++++++++++++++++++++++++
3 files changed, 40 insertions(+)
diff --git a/.graphqlconfig b/.graphqlconfig
new file mode 100644
index 0000000..a5d6356
--- /dev/null
+++ b/.graphqlconfig
@@ -0,0 +1,15 @@
+{
+ "name": "Skywalking GraphQL Schema",
+ "schemaPath": "schema.graphql",
+ "extensions": {
+ "endpoints": {
+ "Dev GraphQL Endpoint": {
+ "url": "http://localhost:12800/graphql",
+ "headers": {
+ "user-agent": "JS GraphQL"
+ },
+ "introspect": false
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/scalar.graphql b/scalar.graphql
new file mode 100644
index 0000000..2113d07
--- /dev/null
+++ b/scalar.graphql
@@ -0,0 +1 @@
+scalar Long
\ No newline at end of file
diff --git a/time.graphqls b/time.graphqls
new file mode 100644
index 0000000..9a5c536
--- /dev/null
+++ b/time.graphqls
@@ -0,0 +1,24 @@
+# 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.
+
+type TimeInfo {
+ timezone: String
+ timestamp: Long
+}
+
+extend type Query {
+ getTimeInfo: TimeInfo
+}