diff --git a/web/frontend/src/status/dashdetails/UsageDash.svelte b/web/frontend/src/status/dashdetails/UsageDash.svelte index 2a9b3037..89e6977c 100644 --- a/web/frontend/src/status/dashdetails/UsageDash.svelte +++ b/web/frontend/src/status/dashdetails/UsageDash.svelte @@ -8,7 +8,7 @@ - `useAltColors Bool?`: Use alternative color set [Default: false] --> - - + - - Duration Bin Size - + Duration Bin Size {#each durationBinOptions as dbin} @@ -237,24 +215,26 @@ { - pagingState = { page:1, itemsPerPage: 10 }; + pagingState = { page: 1, itemsPerPage: 10 }; selectedHistograms = [...$state.snapshot(selectedHistograms)]; }} /> -
+
-{#if $topJobsQuery?.fetching || $nodeStatusQuery?.fetching} +{#if $topStatsQuery?.fetching || $nodeStatusQuery?.fetching} -{:else if $topJobsQuery?.data && $nodeStatusQuery?.data} +{:else if $topStatsQuery?.data && $nodeStatusQuery?.data} {#key $nodeStatusQuery.data.jobsStatistics[0].histDuration}
-

- Top Users: Jobs -

+

Top Users: Jobs

tu['totalJobs'], + quantities={$topStatsQuery.data.topUserJobs.map( + (tu) => tu["totalJobs"], + )} + entities={$topStatsQuery.data.topUserJobs.map((tu) => + scrambleNames ? scramble(tu.id) : tu.id, )} - entities={$topJobsQuery.data.topUser.map((tu) => scrambleNames ? scramble(tu.id) : tu.id)} />
@@ -291,11 +271,17 @@ User Jobs - {#each $topJobsQuery.data.topUser as tu, i} + {#each $topStatsQuery.data.topUserJobs as tu, i} - + - {scrambleNames ? scramble(tu.id) : tu.id} @@ -306,25 +292,25 @@ >{scrambleNames ? scramble(tu.name) : tu.name} {/if} - {tu['totalJobs']} + {tu["totalJobs"]} {/each} -

- Top Projects: Jobs -

+

Top Projects: Jobs

tp['totalJobs'], + sliceLabel={"Jobs"} + quantities={$topStatsQuery.data.topProjectJobs.map( + (tp) => tp["totalJobs"], + )} + entities={$topStatsQuery.data.topProjectJobs.map((tp) => + scrambleNames ? scramble(tp.id) : tp.id, )} - entities={$topJobsQuery.data.topProjects.map((tp) => scrambleNames ? scramble(tp.id) : tp.id)} /> @@ -334,34 +320,44 @@ Project Jobs - {#each $topJobsQuery.data.topProjects as tp, i} + {#each $topStatsQuery.data.topProjectJobs as tp, i} - + - {scrambleNames ? scramble(tp.id) : tp.id} - {tp['totalJobs']} + {tp["totalJobs"]} {/each}
{:else} - Cannot render job status charts: No data! + Cannot render job status charts: No data! {/if} -
+
-{#if $topNodesQuery?.fetching || $nodeStatusQuery?.fetching} +{#if $topStatsQuery?.fetching || $nodeStatusQuery?.fetching} -{:else if $topNodesQuery?.data && $nodeStatusQuery?.data} +{:else if $topStatsQuery?.data && $nodeStatusQuery?.data}
-

- Top Users: Nodes -

+

Top Users: Nodes

tu['totalNodes'], + quantities={$topStatsQuery.data.topUserNodes.map( + (tu) => tu["totalNodes"], + )} + entities={$topStatsQuery.data.topUserNodes.map((tu) => + scrambleNames ? scramble(tu.id) : tu.id, )} - entities={$topNodesQuery.data.topUser.map((tu) => scrambleNames ? scramble(tu.id) : tu.id)} />
@@ -395,11 +391,17 @@ User Nodes - {#each $topNodesQuery.data.topUser as tu, i} + {#each $topStatsQuery.data.topUserNodes as tu, i} - + - {scrambleNames ? scramble(tu.id) : tu.id} @@ -410,25 +412,25 @@ >{scrambleNames ? scramble(tu.name) : tu.name} {/if} - {tu['totalNodes']} + {tu["totalNodes"]} {/each} -

- Top Projects: Nodes -

+

Top Projects: Nodes

tp['totalNodes'], + sliceLabel={"Nodes"} + quantities={$topStatsQuery.data.topProjectNodes.map( + (tp) => tp["totalNodes"], + )} + entities={$topStatsQuery.data.topProjectNodes.map((tp) => + scrambleNames ? scramble(tp.id) : tp.id, )} - entities={$topNodesQuery.data.topProjects.map((tp) => scrambleNames ? scramble(tp.id) : tp.id)} /> @@ -438,34 +440,44 @@ Project Nodes - {#each $topNodesQuery.data.topProjects as tp, i} + {#each $topStatsQuery.data.topProjectNodes as tp, i} - + - {scrambleNames ? scramble(tp.id) : tp.id} - {tp['totalNodes']} + {tp["totalNodes"]} {/each}
{:else} - Cannot render node status charts: No data! + Cannot render node status charts: No data! {/if} -
+
-{#if $topAccsQuery?.fetching || $nodeStatusQuery?.fetching} +{#if $topStatsQuery?.fetching || $nodeStatusQuery?.fetching} -{:else if $topAccsQuery?.data && $nodeStatusQuery?.data} +{:else if $topStatsQuery?.data && $nodeStatusQuery?.data}
-

- Top Users: GPUs -

+

Top Users: GPUs

tu['totalAccs'], + quantities={$topStatsQuery.data.topUserAccs.map( + (tu) => tu["totalAccs"], + )} + entities={$topStatsQuery.data.topUserAccs.map((tu) => + scrambleNames ? scramble(tu.id) : tu.id, )} - entities={$topAccsQuery.data.topUser.map((tu) => scrambleNames ? scramble(tu.id) : tu.id)} />
@@ -499,11 +511,17 @@ User GPUs - {#each $topAccsQuery.data.topUser as tu, i} + {#each $topStatsQuery.data.topUserAccs as tu, i} - + - {scrambleNames ? scramble(tu.id) : tu.id} @@ -514,25 +532,25 @@ >{scrambleNames ? scramble(tu.name) : tu.name} {/if} - {tu['totalAccs']} + {tu["totalAccs"]} {/each} -

- Top Projects: GPUs -

+

Top Projects: GPUs

tp['totalAccs'], + sliceLabel={"GPUs"} + quantities={$topStatsQuery.data.topProjectAccs.map( + (tp) => tp["totalAccs"], + )} + entities={$topStatsQuery.data.topProjectAccs.map((tp) => + scrambleNames ? scramble(tp.id) : tp.id, )} - entities={$topAccsQuery.data.topProjects.map((tp) => scrambleNames ? scramble(tp.id) : tp.id)} /> @@ -542,20 +560,29 @@ Project GPUs - {#each $topAccsQuery.data.topProjects as tp, i} + {#each $topStatsQuery.data.topProjectAccs as tp, i} - + - {scrambleNames ? scramble(tp.id) : tp.id} - {tp['totalAccs']} + {tp["totalAccs"]} {/each}
{:else} - Cannot render accelerator status charts: No data! -{/if} \ No newline at end of file + Cannot render accelerator status charts: No data! +{/if} +