From 131bbb965f269f90a012ac823d24924f7b4ac9d6 Mon Sep 17 00:00:00 2001 From: wu-sheng Date: Tue, 26 Dec 2017 11:47:55 +0800 Subject: [PATCH] Add two services. --- .../ui-graphql/overview-layer.graphqls | 34 +++++++++++++++++++ .../main/resources/ui-graphql/trace.graphqls | 16 +++++++++ 2 files changed, 50 insertions(+) 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 437e10466..6b55b323a 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 @@ -63,6 +63,40 @@ type Call { responseTimePerSec: Int! } +# Query the cluster brief based on the given duration +type ClusterBrief { + numOfApplication: Int + numOfService: Int + numOfDatabase: Int + numOfCache: Int + numOfMQ: Int + duration: Duration! +} + +# Query the trend of alarm rate based on the given duration +type AlarmTrend { + numOfAlarmRate: [Int]! + duration: Duration! +} + +# Query all conjectural applications based on the given duration +# All applications here are not installed agent. +type ConjecturalAppBrief { + apps: [ConjecturalApp!] + duration: Duration! +} + +# The basic info of the conjectural application, +# includes the type and num of same type application +type ConjecturalApp { + # The display name of the application + # e.g. MySQL, RocketMQ, Kafka, Nginx + name: String! + num: int! +} + extend type Query { getApplicationTopology: ApplicationTopology + getClusterBrief: ClusterBrief + getAlarmTrend: AlarmTrend } diff --git a/apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/trace.graphqls b/apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/trace.graphqls index e69de29bb..950560646 100644 --- a/apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/trace.graphqls +++ b/apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/trace.graphqls @@ -0,0 +1,16 @@ +type TraceBrief { + traces: [BasicTrace!] + duration: Duration! + +} + +type BasicTrace { + operationName: String! + duration: Int! + start: String! +} + + +extend type Query { + queryBasicTraces: TraceBrief +} \ No newline at end of file