mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-12 15:52:57 +00:00
fix: name
This commit is contained in:
parent
98008e5cf4
commit
4269ff2061
@ -25,7 +25,7 @@ import type { Instance, Endpoint, Service } from "@/types/selector";
|
|||||||
import type { Node, Call } from "@/types/topology";
|
import type { Node, Call } from "@/types/topology";
|
||||||
|
|
||||||
export async function useDashboardQueryProcessor(configArr: Indexable[]) {
|
export async function useDashboardQueryProcessor(configArr: Indexable[]) {
|
||||||
function expressionsGraphqlPods(config: Indexable, idx: number) {
|
function expressionsGraphql(config: Indexable, idx: number) {
|
||||||
if (!(config.metrics && config.metrics[0])) {
|
if (!(config.metrics && config.metrics[0])) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -87,7 +87,6 @@ export async function useDashboardQueryProcessor(configArr: Indexable[]) {
|
|||||||
conditions,
|
conditions,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function expressionsSource(config: Indexable, resp: { errors: string; data: Indexable | any }) {
|
function expressionsSource(config: Indexable, resp: { errors: string; data: Indexable | any }) {
|
||||||
if (resp.errors) {
|
if (resp.errors) {
|
||||||
ElMessage.error(resp.errors);
|
ElMessage.error(resp.errors);
|
||||||
@ -144,7 +143,7 @@ export async function useDashboardQueryProcessor(configArr: Indexable[]) {
|
|||||||
duration: appStore.durationTime,
|
duration: appStore.durationTime,
|
||||||
};
|
};
|
||||||
for (let i = 0; i < configArr.length; i++) {
|
for (let i = 0; i < configArr.length; i++) {
|
||||||
const params = await expressionsGraphqlPods(configArr[i], i);
|
const params = await expressionsGraphql(configArr[i], i);
|
||||||
if (params) {
|
if (params) {
|
||||||
fragments += params?.fragment;
|
fragments += params?.fragment;
|
||||||
conditions = { ...conditions, ...params.conditions };
|
conditions = { ...conditions, ...params.conditions };
|
||||||
|
Loading…
Reference in New Issue
Block a user