提交 6b68a2cb 编写于 作者: wu-sheng's avatar wu-sheng

* `DurationItem` and `ThroughputItem` have been removed. Service defines must...

* `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.
上级 d3b357a4
......@@ -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]
}
\ No newline at end of file
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!
}
\ No newline at end of file
......@@ -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]
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册