From d3ab94bee31c88a84b0dab8a3386f50dd0c11a6a Mon Sep 17 00:00:00 2001 From: wu-sheng Date: Wed, 27 Dec 2017 11:05:42 +0800 Subject: [PATCH] Add server query. --- .../ui-graphql/server-layer.graphqls | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/server-layer.graphqls b/apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/server-layer.graphqls index 3335dcd66..cd86957f0 100644 --- a/apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/server-layer.graphqls +++ b/apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/server-layer.graphqls @@ -14,6 +14,29 @@ type AppServerInfo { IPv6: String } +type CPUTrend { + cost: [Int!] +} + +# The gc trend represents the numbers of Garbage Collector execution +type GCTrend { + youngGC: [Int!] + oldGC: [Int!] +} + +# The memory used and max limit in heap and noheap space. +type MemoryTrend { + heap: [int!] + maxHeap: [int!] + noheap: [int!] + maxNoheap: [int!] +} + + extend type Query { - + getServerResponseTimeTrend(serverId: ID!, duration: Duration!): ResponseTimeTrend + getServerTPSTrend(serverId: ID!, duration: Duration!): TPSTrend + getCPUTrend(serverId: ID!, duration: Duration!): CPUTrend + getGCTrend(serverId: ID!, duration: Duration!): GCTrend + getMemoryTrend(serverId: ID!, duration: Duration!): MemoryTrend } \ No newline at end of file