Skip to content

Commit

Permalink
Specify utilization in popover
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Jan 23, 2025
1 parent 1e43f9e commit 6aa73e2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/utilization-popover/utilization-popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ export enum Severity {
}

const SeverityMap = {
[Severity.None]: { label: 'Normal', type: 'default' },
[Severity.Information]: { label: 'Low', type: 'default' },
[Severity.Warning]: { label: 'High', type: 'warning' },
[Severity.Critical]: { label: 'Critical', type: 'danger' },
[Severity.None]: { label: 'Normal Utilization', type: 'default' },
[Severity.Information]: { label: 'Low Utilization', type: 'default' },
[Severity.Warning]: { label: 'High Utilization', type: 'warning' },
[Severity.Critical]: { label: 'Critical Utilization', type: 'danger' },
} satisfies Record<Severity, { label: string; type: StatusPopoverType }>;

type Props = {
Expand Down Expand Up @@ -86,10 +86,10 @@ export const UtilizationPopover = ({
>
<div className={'grid grid--gap-small'}>
<StatusBadgeTemplate type={SeverityMap[highestMemoryAlert].type}>
Memory {SeverityMap[highestMemoryAlert].label}
Memory: {SeverityMap[highestMemoryAlert].label}
</StatusBadgeTemplate>
<StatusBadgeTemplate type={SeverityMap[highestCPUAlert].type}>
CPU {SeverityMap[highestCPUAlert].label}
CPU: {SeverityMap[highestCPUAlert].label}
</StatusBadgeTemplate>
<Typography>
See Monitoring <Icon size={16} data={desktop_mac} /> for more details.
Expand Down

0 comments on commit 6aa73e2

Please sign in to comment.