mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-15 20:59:18 +00:00
feat: support multiple metrics for querys
This commit is contained in:
@@ -26,6 +26,8 @@ export const NewControl = {
|
||||
},
|
||||
graph: {},
|
||||
standard: {},
|
||||
metrics: [],
|
||||
metricTypes: [],
|
||||
};
|
||||
export const ConfigData: any = {
|
||||
x: 0,
|
||||
@@ -33,8 +35,8 @@ export const ConfigData: any = {
|
||||
w: 8,
|
||||
h: 12,
|
||||
i: "0",
|
||||
metrics: ["service_resp_time"],
|
||||
metricTypes: ["readMetricsValues"],
|
||||
metrics: ["service_resp_time", "service_cpm"],
|
||||
metricTypes: ["readMetricsValues", "readMetricsValues"],
|
||||
type: "Widget",
|
||||
widget: {
|
||||
title: "Title",
|
||||
@@ -49,3 +51,39 @@ export const ConfigData: any = {
|
||||
},
|
||||
children: [],
|
||||
};
|
||||
export const RespFields: any = {
|
||||
readMetricsValues: `{
|
||||
label
|
||||
values {
|
||||
values {value}
|
||||
}
|
||||
}`,
|
||||
readMetricsValue: "",
|
||||
sortMetrics: `{
|
||||
name
|
||||
id
|
||||
value
|
||||
refId
|
||||
}`,
|
||||
readLabeledMetricsValues: `{
|
||||
label
|
||||
values {
|
||||
values {value}
|
||||
}
|
||||
}`,
|
||||
readHeatMap: `{
|
||||
values {
|
||||
id
|
||||
values
|
||||
}
|
||||
buckets {
|
||||
min
|
||||
max
|
||||
}
|
||||
}`,
|
||||
readSampledRecords: `{
|
||||
name
|
||||
value
|
||||
refId
|
||||
}`,
|
||||
};
|
||||
|
Reference in New Issue
Block a user