diff --git a/src/lib/components/SummaryCard.svelte b/src/lib/components/SummaryCard.svelte new file mode 100644 index 00000000..db585e13 --- /dev/null +++ b/src/lib/components/SummaryCard.svelte @@ -0,0 +1,81 @@ + + +
+ {@render children()} +
+
- {#if cost !== PendingValue}
-
- {#if utilization.sqlInstances !== PendingValue}
- {(utilization.sqlInstances.cpu.utilization * 100).toFixed(1)}% of
- {utilization.sqlInstances.cpu.requested.toFixed(0)} core{utilization.sqlInstances.cpu
- .requested > 1
- ? 's'
- : ''}
- {:else}
-
+ {(utilization.sqlInstances.memory.utilization * 100).toFixed(1)}% of + {prettyBytes(utilization.sqlInstances.memory.requested)} +
+ {:else} +