add single update gql queries to metric wrapper

This commit is contained in:
Christoph Kluge
2024-08-16 14:50:31 +02:00
parent 6ab2e02fe6
commit b1fd07cd30
6 changed files with 114 additions and 38 deletions

View File

@@ -122,14 +122,14 @@
variables: { dbid, selectedMetrics, selectedScopes },
});
function loadAllScopes() {
selectedScopes = [...selectedScopes, "socket", "core"]
jobMetrics = queryStore({
client: client,
query: query,
variables: { dbid, selectedMetrics, selectedScopes},
});
}
// function loadAllScopes() {
// selectedScopes = [...selectedScopes, "socket", "core"]
// jobMetrics = queryStore({
// client: client,
// query: query,
// variables: { dbid, selectedMetrics, selectedScopes},
// });
// }
// Handle Job Query on Init -> is not executed anymore
getContext("on-init")(() => {
@@ -229,11 +229,6 @@
$initq.data.job.subCluster,
),
}));
const loadRes = ({ detail }) => {
console.log(">>> UPPER RES REQUEST", detail)
}
</script>
<Row>
@@ -362,8 +357,6 @@
{#if item.data}
<Metric
bind:this={plots[item.metric]}
on:load-all={loadAllScopes}
on:new-res={loadRes}
job={$initq.data.job}
metricName={item.metric}
metricUnit={$initq.data.globalMetrics.find((gm) => gm.name == item.metric)?.unit}