You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by ha...@apache.org on 2017/12/25 14:38:54 UTC

[incubator-skywalking] branch feature/ui-protocol updated: Add application topology query type

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

hanahmily pushed a commit to branch feature/ui-protocol
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking.git


The following commit(s) were added to refs/heads/feature/ui-protocol by this push:
     new 8ae1b42  Add application topology query type
8ae1b42 is described below

commit 8ae1b4213b158c3ccab02673bf956e93fd8561db
Author: gaohongtao <ha...@gmail.com>
AuthorDate: Mon Dec 25 22:28:00 2017 +0800

    Add application topology query type
---
 .../src/main/resources/ui-graphql/common.graphqls  | 21 ++++++++++++
 .../resources/ui-graphql/overview-layer.graphqls   | 38 ++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git a/apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/common.graphqls b/apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/common.graphqls
index e69de29..910fdb7 100644
--- a/apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/common.graphqls
+++ b/apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/common.graphqls
@@ -0,0 +1,21 @@
+schema {
+  query: Query
+}
+
+type Query {
+  version: String
+}
+
+type Duration{
+  start: String!  # https://www.ietf.org/rfc/rfc3339.txt
+  end: String!
+  step: Step!
+}
+
+enum Step{
+  MONTH
+  DAY
+  HOUR
+  MINUTE
+  SECOND
+}
diff --git a/apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/overview-layer.graphqls b/apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/overview-layer.graphqls
index e69de29..2995614 100644
--- a/apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/overview-layer.graphqls
+++ b/apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/overview-layer.graphqls
@@ -0,0 +1,38 @@
+type ApplicationTopology {
+  nodes: [Node]!
+  edges: [Edge]
+  duration: Duration!
+}
+
+interface Node {
+  id: ID!
+  name: String!
+  type: String
+}
+
+type ApplicationNode implements Node {
+  id: ID!
+  name: String!
+  type: String
+  sla: Float!
+  calls: Long!
+  apdex: Float!
+  totalInstance: Int!
+  totalAlert: Int!
+}
+
+type ResourceNode implements Node {
+  id: ID!
+  name: String!
+  type: String
+}
+
+type Edge {
+  source: ID!
+  target: ID!
+  isAlert: Boolean
+}
+
+extend type Query {
+  getApplicationTopology: ApplicationTopology
+}

-- 
To stop receiving notification emails like this one, please contact
['"commits@skywalking.apache.org" <co...@skywalking.apache.org>'].