mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-01-31 08:11:45 +01:00
improve detail on warning cards
This commit is contained in:
@@ -352,7 +352,7 @@
|
|||||||
<b>Missing Metric</b>
|
<b>Missing Metric</b>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardBody>
|
<CardBody>
|
||||||
<p>No dataset returned for <b>{item.metric}</b>.</p>
|
<p>No dataset(s) returned for <b>{item.metric}</b>.</p>
|
||||||
<p class="mb-1">Metric was not found in metric store for cluster <b>{$initq.data.job.cluster}</b>.</p>
|
<p class="mb-1">Metric was not found in metric store for cluster <b>{$initq.data.job.cluster}</b>.</p>
|
||||||
</CardBody>
|
</CardBody>
|
||||||
</Card>
|
</Card>
|
||||||
@@ -387,17 +387,17 @@
|
|||||||
<CardBody>
|
<CardBody>
|
||||||
{#if missingMetrics.length > 0}
|
{#if missingMetrics.length > 0}
|
||||||
<p>
|
<p>
|
||||||
No data at all is available for the metrics: {missingMetrics.join(
|
No datasets were returned for the metrics: <b>{missingMetrics.join(
|
||||||
", ",
|
", ",
|
||||||
)}
|
)}</b>
|
||||||
</p>
|
</p>
|
||||||
{/if}
|
{/if}
|
||||||
{#if missingHosts.length > 0}
|
{#if missingHosts.length > 0}
|
||||||
<p>Some metrics are missing for the following hosts:</p>
|
<p>Metrics are missing for the following hosts:</p>
|
||||||
<ul>
|
<ul>
|
||||||
{#each missingHosts as missing}
|
{#each missingHosts as missing}
|
||||||
<li>
|
<li>
|
||||||
{missing.hostname}: {missing.metrics.join(", ")}
|
<b>{missing.hostname}</b>: {missing.metrics.join(", ")}
|
||||||
</li>
|
</li>
|
||||||
{/each}
|
{/each}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
@@ -230,8 +230,10 @@
|
|||||||
>
|
>
|
||||||
{:else}
|
{:else}
|
||||||
<Card body class="mx-2" color="warning">
|
<Card body class="mx-2" color="warning">
|
||||||
<p>No dataset returned for <b>{metrics[i]}</b></p>
|
<p>No dataset(s) returned for <b>{metrics[i]}</b></p>
|
||||||
<p class="mb-1">Metric was not found in metric store for cluster <b>{job.cluster}</b>.</p>
|
<p class="mb-1">Metric or host was not found in metric store for cluster <b>{job.cluster}</b>:</p>
|
||||||
|
<p class="mb-1">Identical messages in <i>{metrics[i]} column</i>: Metric not found.</p>
|
||||||
|
<p class="mb-1">Identical messages in <i>job {job.jobId} row</i>: Host not found.</p>
|
||||||
</Card>
|
</Card>
|
||||||
{/if}
|
{/if}
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -205,8 +205,8 @@
|
|||||||
/>
|
/>
|
||||||
{:else}
|
{:else}
|
||||||
<td class="table-warning" style="max-width:10rem;">
|
<td class="table-warning" style="max-width:10rem;">
|
||||||
<p>No dataset returned for <b>{metric}</b>.</p>
|
<p>No dataset(s) returned for <b>{metric}</b>.</p>
|
||||||
<p>Metric was not found in metric store for cluster.</p>
|
<p>Metric was not found in metric store for host <b>{host}</b>.</p>
|
||||||
</td>
|
</td>
|
||||||
{/if}
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
|
|||||||
@@ -159,6 +159,7 @@
|
|||||||
<Badge color={stateColors[item?.state? item.state : 'notindb']}>{item?.state? item.state : 'notindb'}</Badge>
|
<Badge color={stateColors[item?.state? item.state : 'notindb']}>{item?.state? item.state : 'notindb'}</Badge>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
{#if item?.data}
|
||||||
{#if item.disabled === true}
|
{#if item.disabled === true}
|
||||||
<Card body class="mx-3" color="info"
|
<Card body class="mx-3" color="info"
|
||||||
>Metric disabled for subcluster <code
|
>Metric disabled for subcluster <code
|
||||||
@@ -185,6 +186,17 @@
|
|||||||
Can not determine {selectedMetric} availability: Please Reload Page
|
Can not determine {selectedMetric} availability: Please Reload Page
|
||||||
</Card>
|
</Card>
|
||||||
{/if}
|
{/if}
|
||||||
|
{:else}
|
||||||
|
<Card color="warning">
|
||||||
|
<CardHeader class="mb-0">
|
||||||
|
<b>Missing Metric</b>
|
||||||
|
</CardHeader>
|
||||||
|
<CardBody>
|
||||||
|
<p>No dataset(s) returned for <b>{selectedMetric}</b>.</p>
|
||||||
|
<p class="mb-1">Metric was not found in metric store for host <b>{item.host}</b>.</p>
|
||||||
|
</CardBody>
|
||||||
|
</Card>
|
||||||
|
{/if}
|
||||||
</Col>
|
</Col>
|
||||||
{/each}
|
{/each}
|
||||||
{/key}
|
{/key}
|
||||||
@@ -196,7 +208,7 @@
|
|||||||
<b>Missing Metric</b>
|
<b>Missing Metric</b>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardBody>
|
<CardBody>
|
||||||
<p>No dataset returned for <b>{selectedMetric}</b>.</p>
|
<p>No datasets returned for <b>{selectedMetric}</b>.</p>
|
||||||
<p class="mb-1">Metric was not found in metric store for cluster <b>{cluster}</b>.</p>
|
<p class="mb-1">Metric was not found in metric store for cluster <b>{cluster}</b>.</p>
|
||||||
</CardBody>
|
</CardBody>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
@@ -178,7 +178,7 @@
|
|||||||
>
|
>
|
||||||
{:else if !metricData?.data}
|
{:else if !metricData?.data}
|
||||||
<Card body class="mx-2" color="warning">
|
<Card body class="mx-2" color="warning">
|
||||||
<p>No dataset returned for <b>{selectedMetrics[i]}</b></p>
|
<p>No dataset(s) returned for <b>{selectedMetrics[i]}</b></p>
|
||||||
<p class="mb-1">Metric was not found in metric store for cluster <b>{cluster}</b>.</p>
|
<p class="mb-1">Metric was not found in metric store for cluster <b>{cluster}</b>.</p>
|
||||||
</Card>
|
</Card>
|
||||||
{:else if !metricData?.data?.name}
|
{:else if !metricData?.data?.name}
|
||||||
|
|||||||
Reference in New Issue
Block a user