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

add new protocol of values query

上级 14925142
......@@ -20,6 +20,7 @@ type AlarmTrend {
}
type AlarmMessage {
startTime: Long!
scope: Scope!
id: ID!
message: String!
......@@ -33,4 +34,4 @@ type Alarms {
extend type Query {
getAlarmTrend(duration: Duration!): AlarmTrend!
getAlarm(duration: Duration!, scope: Scope, paging: Pagination!): Alarms
}
\ No newline at end of file
}
......@@ -25,7 +25,18 @@ input MetricCondition {
id: ID
}
type LinearIntValues {
input BatchMetricConditions {
# Metric name, which should be defined in OAL script
# Such as:
# Endpoint_avg = from(Endpoint.latency).avg()
# Then, `Endpoint_avg`
name: String!
# Id in this metric type.
# In the above case, the id should be endpoint id.
ids: [ID!]!
}
type IntValues {
values: [KVInt!]!
}
......@@ -56,6 +67,7 @@ type Thermodynamic {
extend type Query {
getLinearIntValues(metric: MetricCondition!, duration: Duration!): LinearIntValues
getValues(metric: BatchMetricConditions!, duration: Duration!): IntValues
getLinearIntValues(metric: MetricCondition!, duration: Duration!): IntValues
getThermodynamic(metric: MetricCondition!, duration: Duration!): Thermodynamic
}
......@@ -32,8 +32,8 @@ type BasicTrace {
# Represent the conditions used for query TraceBrief
input TraceQueryCondition {
# The value of 0 means all application.
applicationId: Int
# The value of 0 means all service.
serviceId: Int
traceId: String
operationName: String
# The time range of traces started
......@@ -69,7 +69,7 @@ type Span {
spanId: Int!
parentSpanId: Int!
refs: [Ref!]!
applicationCode: String!
serviceCode: String!
startTime: Long!
endTime: Long!
operationName: String
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册