Add two services.

This commit is contained in:
wu-sheng 2017-12-26 11:47:55 +08:00
parent d07a91353c
commit 131bbb965f
2 changed files with 50 additions and 0 deletions

View File

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

View File

@ -0,0 +1,16 @@
type TraceBrief {
traces: [BasicTrace!]
duration: Duration!
}
type BasicTrace {
operationName: String!
duration: Int!
start: String!
}
extend type Query {
queryBasicTraces: TraceBrief
}