feat: add hooks for querys

This commit is contained in:
Qiuxia Fan
2022-01-20 22:25:19 +08:00
parent 65cd6eb437
commit b4c1dabfad
5 changed files with 143 additions and 119 deletions

View File

@@ -51,39 +51,3 @@ 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
}`,
};