feat: Split topology metric query to avoid exceeding the maximum query complexity (#429)

This commit is contained in:
Fine0830
2024-11-14 11:38:13 +08:00
committed by GitHub
parent 64d4a2b59b
commit 536df8c052
5 changed files with 58 additions and 51 deletions

View File

@@ -249,7 +249,7 @@ limitations under the License. -->
topologyStore.nodes.filter((d: Node) => d.isReal),
);
const param = getExpressionQuery();
const res = await topologyStore.getNodeExpressionValue(param);
const res = await topologyStore.getTopologyExpressionValue(param);
if (res.errors) {
ElMessage.error(res.errors);
} else {

View File

@@ -290,7 +290,7 @@ limitations under the License. -->
topologyStore.nodes.filter((d: Node) => d.isReal),
);
const param = getExpressionQuery();
const res = await topologyStore.getNodeExpressionValue(param);
const res = await topologyStore.getTopologyExpressionValue(param);
if (res.errors) {
ElMessage.error(res.errors);
} else {