Add server query.

This commit is contained in:
wu-sheng 2017-12-27 11:05:42 +08:00
parent 5d801fbd02
commit d3ab94bee3
1 changed files with 24 additions and 1 deletions

View File

@ -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
}