Format cleanup

This commit is contained in:
Christoph Kluge
2023-05-12 11:19:37 +02:00
parent 23e485afce
commit 96e4448505
6 changed files with 80 additions and 78 deletions

View File

@@ -27,31 +27,33 @@
let hostnameFilter = ''
let selectedMetric = ccconfig.system_view_selectedMetric
const client = getContextClient();
$: nodesQuery = queryStore({
client: getContextClient(),
client: client,
query: gql`query($cluster: String!, $metrics: [String!], $from: Time!, $to: Time!) {
nodeMetrics(cluster: $cluster, metrics: $metrics, from: $from, to: $to) {
host
subCluster
metrics {
name
scope
metric {
timestep
unit { base, prefix }
series {
statistics { min, avg, max }
data
nodeMetrics(cluster: $cluster, metrics: $metrics, from: $from, to: $to) {
host
subCluster
metrics {
name
scope
metric {
timestep
unit { base, prefix }
series {
statistics { min, avg, max }
data
}
}
}
}
}`,
variables: {
cluster: cluster,
metrics: [selectedMetric],
from: from.toISOString(),
to: to.toISOString()
}
}`,
variables: {
cluster: cluster,
metrics: [selectedMetric],
from: from.toISOString(),
to: to.toISOString()}
})
let metricUnits = {}