提交 4545e431 编写于 作者: wu-sheng's avatar wu-sheng

Add query arguments.

上级 131bbb96
......@@ -3,7 +3,6 @@
type ApplicationTopology {
nodes: [Node]!
calls: [Call]
duration: Duration!
}
# The base Node of all node types in topology
......@@ -70,20 +69,17 @@ type ClusterBrief {
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,
......@@ -96,7 +92,8 @@ type ConjecturalApp {
}
extend type Query {
getApplicationTopology: ApplicationTopology
getClusterBrief: ClusterBrief
getAlarmTrend: AlarmTrend
getApplicationTopology(duration: Duration!): ApplicationTopology
getClusterBrief(duration: Duration!): ClusterBrief
getAlarmTrend(duration: Duration!): AlarmTrend
getConjecturalApps(duration: Duration!): ConjecturalAppBrief
}
# The list of traces
type TraceBrief {
traces: [BasicTrace!]
duration: Duration!
}
# Trace basic info
type BasicTrace {
operationName: String!
duration: Int!
start: String!
isError: Boolean
traceId: String
}
# Represent the conditions used for query TraceBrief
type TraceQueryCondition {
applicationCodes: [String!]
traceId: String
operationName: String
# The time range of traces started
queryDuration: Duration
# The mix time of trace
minTraceDuration: Int
# The max time of trace
maxTraceDuration: Int
topN: Boolean
needTotal: Int
}
enum QueryOrder {
BY_START_TIME
BY_DURATION
}
extend type Query {
queryBasicTraces: TraceBrief
queryBasicTraces(condition: TraceQueryCondition): TraceBrief
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册