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

add new protocol of values query

上级 14925142
...@@ -20,6 +20,7 @@ type AlarmTrend { ...@@ -20,6 +20,7 @@ type AlarmTrend {
} }
type AlarmMessage { type AlarmMessage {
startTime: Long!
scope: Scope! scope: Scope!
id: ID! id: ID!
message: String! message: String!
...@@ -33,4 +34,4 @@ type Alarms { ...@@ -33,4 +34,4 @@ type Alarms {
extend type Query { extend type Query {
getAlarmTrend(duration: Duration!): AlarmTrend! getAlarmTrend(duration: Duration!): AlarmTrend!
getAlarm(duration: Duration!, scope: Scope, paging: Pagination!): Alarms getAlarm(duration: Duration!, scope: Scope, paging: Pagination!): Alarms
} }
\ No newline at end of file
...@@ -25,7 +25,18 @@ input MetricCondition { ...@@ -25,7 +25,18 @@ input MetricCondition {
id: ID 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!]! values: [KVInt!]!
} }
...@@ -56,6 +67,7 @@ type Thermodynamic { ...@@ -56,6 +67,7 @@ type Thermodynamic {
extend type Query { 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 getThermodynamic(metric: MetricCondition!, duration: Duration!): Thermodynamic
} }
...@@ -32,8 +32,8 @@ type BasicTrace { ...@@ -32,8 +32,8 @@ type BasicTrace {
# Represent the conditions used for query TraceBrief # Represent the conditions used for query TraceBrief
input TraceQueryCondition { input TraceQueryCondition {
# The value of 0 means all application. # The value of 0 means all service.
applicationId: Int serviceId: Int
traceId: String traceId: String
operationName: String operationName: String
# The time range of traces started # The time range of traces started
...@@ -69,7 +69,7 @@ type Span { ...@@ -69,7 +69,7 @@ type Span {
spanId: Int! spanId: Int!
parentSpanId: Int! parentSpanId: Int!
refs: [Ref!]! refs: [Ref!]!
applicationCode: String! serviceCode: String!
startTime: Long! startTime: Long!
endTime: Long! endTime: Long!
operationName: String operationName: String
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册