diff --git a/src/types/api/pdisk.ts b/src/types/api/pdisk.ts index 5d6aea2743..32726e824c 100644 --- a/src/types/api/pdisk.ts +++ b/src/types/api/pdisk.ts @@ -65,6 +65,7 @@ export enum TPDiskState { OpenFileError = 'OpenFileError', ChunkQuotaError = 'ChunkQuotaError', DeviceIoError = 'DeviceIoError', + Stopped = 'Stopped', // these can't be sent to UI Missing = 'Missing', diff --git a/src/utils/disks/constants.ts b/src/utils/disks/constants.ts index 609c6c00f5..fcbd53e320 100644 --- a/src/utils/disks/constants.ts +++ b/src/utils/disks/constants.ts @@ -34,9 +34,9 @@ export const VDISK_STATE_SEVERITY: Record = { }; export const PDISK_STATE_SEVERITY = { - [TPDiskState.Initial]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Grey, [TPDiskState.Normal]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Green, + [TPDiskState.Initial]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Yellow, [TPDiskState.InitialFormatRead]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Yellow, [TPDiskState.InitialSysLogRead]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Yellow, [TPDiskState.InitialCommonLogRead]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Yellow, @@ -50,4 +50,5 @@ export const PDISK_STATE_SEVERITY = { [TPDiskState.OpenFileError]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Red, [TPDiskState.ChunkQuotaError]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Red, [TPDiskState.DeviceIoError]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Red, + [TPDiskState.Stopped]: DISK_COLOR_STATE_TO_NUMERIC_SEVERITY.Red, };