* `DurationItem` and `ThroughputItem` have been removed. Service defines must be explicit and clear.
* In server layer, AppServerInfo type represents the basic server info and related metrics * In service layer, ServiceInfo type represents the basic service info and related metrics * `getServiceSlowTrace` service has been provided by `queryBasicTraces` service. All trace query should be included in that.
This commit is contained in:
parent
d3b357a447
commit
6b68a2cb6d
|
|
@ -31,7 +31,7 @@ type ConjecturalNode implements Node {
|
|||
|
||||
extend type Query {
|
||||
getAllApplication(duration: Duration!): [ApplicationNode]
|
||||
getApplicationTopology(appId: ID!, duration: Duration!): Topology
|
||||
getSlowService(appId: ID!, duration: Duration!): [DurationItem]
|
||||
getServerThroughput(appId: ID!, duration: Duration!): [ThroughputItem]
|
||||
}
|
||||
getApplicationTopology(applicationId: ID!, duration: Duration!): Topology
|
||||
getSlowService(applicationId: ID!, duration: Duration!): [ServiceInfo!]
|
||||
getServerThroughput(applicationId: ID!, duration: Duration!): [AppServerInfo!]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,15 +86,3 @@ type Call {
|
|||
# Unit: millisecond
|
||||
responseTimePerSec: Int!
|
||||
}
|
||||
|
||||
# The item of slow service list
|
||||
type DurationItem {
|
||||
name: String!
|
||||
duration: Int!
|
||||
}
|
||||
|
||||
# The item of throughput list
|
||||
type ThroughputItem {
|
||||
name: String!
|
||||
tps: Int!
|
||||
}
|
||||
|
|
@ -32,6 +32,6 @@ extend type Query {
|
|||
getClusterBrief(duration: Duration!): ClusterBrief
|
||||
getAlarmTrend(duration: Duration!): AlarmTrend
|
||||
getConjecturalApps(duration: Duration!): ConjecturalAppBrief
|
||||
getTopNSlowService(duration: Duration!, topN: Int!): [DurationItem]
|
||||
getTopNServerThroughput(duration: Duration!, topN: Int!): [ThroughputItem]
|
||||
getTopNSlowService(duration: Duration!, topN: Int!): [ServiceInfo!]
|
||||
getTopNServerThroughput(duration: Duration!, topN: Int!): [AppServerInfo!]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,6 +12,14 @@ type ServiceNode implements Node {
|
|||
numOfServiceAlarm: Int!
|
||||
}
|
||||
|
||||
type ServiceInfo {
|
||||
id: ID!
|
||||
name: String
|
||||
# The unit is millisecond.
|
||||
avgResponseTime: Int!
|
||||
tps: Int!
|
||||
}
|
||||
|
||||
type TraceItem {
|
||||
time: String!
|
||||
entry: String!
|
||||
|
|
@ -24,5 +32,4 @@ extend type Query {
|
|||
getServiceTPSTrend(serviceId: ID!, duration: Duration!): ThroughputTrend
|
||||
getServiceSLATrend(serviceId: ID!, duration: Duration!): SLATrend
|
||||
getServiceTopology(serviceId: ID!, duration: Duration!): Topology
|
||||
getServiceSlowTrace(serviceId: ID!, duration: Duration!): [TraceItem]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue