Merge pull request #802 from apache/fix/query

Fix protocol mistakes.
This commit is contained in:
彭勇升 pengys 2018-02-09 21:18:34 +08:00 committed by GitHub
commit 59ae085b1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -27,11 +27,17 @@ type ConjecturalApp {
num: Int!
}
type ApplicationTPS {
applicationId: Int!
applicationCode: String
tps: Int!
}
extend type Query {
getClusterTopology(duration: Duration!): Topology
getClusterBrief(duration: Duration!): ClusterBrief
getAlarmTrend(duration: Duration!): AlarmTrend
getConjecturalApps(duration: Duration!): ConjecturalAppBrief
getTopNSlowService(duration: Duration!, topN: Int!): [ServiceMetric!]!
getTopNServerThroughput(applicationId: Int, duration: Duration!, topN: Int!): [AppServerInfo!]!
getTopNApplicationThroughput(duration: Duration!, topN: Int!): [ApplicationTPS!]!
}

View File

@ -7,7 +7,7 @@ type AppServerInfo {
id: ID!
name: String!
applicationId: Int!
applicationName: String
applicationCode: String
tps: Int!
host: String
pid: Int