You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2019/09/22 04:02:22 UTC
[skywalking-query-protocol] branch master updated: Query server
time info (#15)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-query-protocol.git
The following commit(s) were added to refs/heads/master by this push:
new 246f887 Query server time info (#15)
246f887 is described below
commit 246f887189b0ba6ea9c4fd7c58c5beb64f323171
Author: Kdump <ro...@gmail.com>
AuthorDate: Sun Sep 22 12:02:18 2019 +0800
Query server time info (#15)
* add query server time info
* add query server time info
* add query server time info
* add query server time info
* add query server time info
---
.graphqlconfig | 15 +++++++++++++++
metadata.graphqls | 8 ++++++++
2 files changed, 23 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/metadata.graphqls b/metadata.graphqls
index 5da4488..efa2c8b 100644
--- a/metadata.graphqls
+++ b/metadata.graphqls
@@ -58,6 +58,13 @@ type Database {
type: String!
}
+type TimeInfo {
+ # server current timezone
+ timezone: String
+ # server current timestamp
+ currentTimestamp: Long
+}
+
extend type Query {
getGlobalBrief(duration: Duration!): ClusterBrief
@@ -77,4 +84,5 @@ extend type Query {
# Database related meta info.
getAllDatabases(duration: Duration!): [Database!]!
+ getTimeInfo: TimeInfo
}