mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 05:19:05 +01:00
init basic proof of concept
This commit is contained in:
parent
5cc7fc6ccb
commit
a59df12595
@ -159,6 +159,10 @@
|
|||||||
<!-- Subluster Metricconfig remove keyword for jobtables (joblist main, user joblist, project joblist) to be used here as toplevel case-->
|
<!-- Subluster Metricconfig remove keyword for jobtables (joblist main, user joblist, project joblist) to be used here as toplevel case-->
|
||||||
{#if metric.disabled == false && metric.data}
|
{#if metric.disabled == false && metric.data}
|
||||||
<MetricPlot
|
<MetricPlot
|
||||||
|
on:zoom-in={({ detail }) => {
|
||||||
|
// filterComponent.updateFilters(detail)
|
||||||
|
console.log("Upstream New Res:", detail)
|
||||||
|
}}
|
||||||
width={plotWidth}
|
width={plotWidth}
|
||||||
height={plotHeight}
|
height={plotHeight}
|
||||||
timestep={metric.data.metric.timestep}
|
timestep={metric.data.metric.timestep}
|
||||||
|
@ -112,7 +112,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import uPlot from "uplot";
|
import uPlot from "uplot";
|
||||||
import { formatNumber } from "../units.js";
|
import { formatNumber } from "../units.js";
|
||||||
import { getContext, onMount, onDestroy } from "svelte";
|
import { getContext, onMount, onDestroy, createEventDispatcher } from "svelte";
|
||||||
import { Card } from "@sveltestrap/sveltestrap";
|
import { Card } from "@sveltestrap/sveltestrap";
|
||||||
|
|
||||||
export let metric;
|
export let metric;
|
||||||
@ -134,6 +134,7 @@
|
|||||||
|
|
||||||
if (useStatsSeries == false && series == null) useStatsSeries = true;
|
if (useStatsSeries == false && series == null) useStatsSeries = true;
|
||||||
|
|
||||||
|
const dispatch = createEventDispatcher();
|
||||||
const subClusterTopology = getContext("getHardwareTopology")(cluster, subCluster);
|
const subClusterTopology = getContext("getHardwareTopology")(cluster, subCluster);
|
||||||
const metricConfig = getContext("getMetricConfig")(cluster, subCluster, metric);
|
const metricConfig = getContext("getMetricConfig")(cluster, subCluster, metric);
|
||||||
const clusterCockpitConfig = getContext("cc-config");
|
const clusterCockpitConfig = getContext("cc-config");
|
||||||
@ -433,6 +434,23 @@
|
|||||||
u.ctx.restore();
|
u.ctx.restore();
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
setScale: [
|
||||||
|
(u, key) => {
|
||||||
|
if (key === 'x') {
|
||||||
|
// Start
|
||||||
|
console.log('setScale X', key);
|
||||||
|
|
||||||
|
// Decide which resolution to request
|
||||||
|
|
||||||
|
// Dispatch request
|
||||||
|
const res = 1337;
|
||||||
|
dispatch('zoom-in', {
|
||||||
|
newres: res,
|
||||||
|
});
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
scales: {
|
scales: {
|
||||||
x: { time: false },
|
x: { time: false },
|
||||||
|
@ -190,6 +190,10 @@
|
|||||||
{:else if series != null && !patternMatches}
|
{:else if series != null && !patternMatches}
|
||||||
<Timeseries
|
<Timeseries
|
||||||
bind:this={plot}
|
bind:this={plot}
|
||||||
|
on:zoom-in={({ detail }) => {
|
||||||
|
// filterComponent.updateFilters(detail)
|
||||||
|
console.log("Upstream New Res:", detail)
|
||||||
|
}}
|
||||||
{width}
|
{width}
|
||||||
height={300}
|
height={300}
|
||||||
cluster={job.cluster}
|
cluster={job.cluster}
|
||||||
@ -203,6 +207,10 @@
|
|||||||
{:else if statsSeries[selectedScopeIndex] != null && patternMatches}
|
{:else if statsSeries[selectedScopeIndex] != null && patternMatches}
|
||||||
<Timeseries
|
<Timeseries
|
||||||
bind:this={plot}
|
bind:this={plot}
|
||||||
|
on:zoom-in={({ detail }) => {
|
||||||
|
// filterComponent.updateFilters(detail)
|
||||||
|
console.log("Upstream New Res:", detail)
|
||||||
|
}}
|
||||||
{width}
|
{width}
|
||||||
height={300}
|
height={300}
|
||||||
cluster={job.cluster}
|
cluster={job.cluster}
|
||||||
|
Loading…
Reference in New Issue
Block a user