diff --git a/ui-ngx/src/app/shared/models/alarm.models.ts b/ui-ngx/src/app/shared/models/alarm.models.ts index c79935f23d..e629e1c574 100644 --- a/ui-ngx/src/app/shared/models/alarm.models.ts +++ b/ui-ngx/src/app/shared/models/alarm.models.ts @@ -21,7 +21,7 @@ import { EntityId } from '@shared/models/id/entity-id'; import { TimePageLink } from '@shared/models/page/page-link'; import { NULL_UUID } from '@shared/models/id/has-uuid'; import { EntityType } from '@shared/models/entity-type.models'; -import { isString } from '@core/utils'; +import { CustomerId } from '@shared/models/id/customer-id'; export enum AlarmSeverity { CRITICAL = 'CRITICAL', @@ -87,6 +87,7 @@ export const alarmSeverityColors = new Map( export interface Alarm extends BaseData { tenantId: TenantId; + customerId: CustomerId; type: string; originator: EntityId; severity: AlarmSeverity; @@ -110,6 +111,7 @@ export interface AlarmDataInfo extends AlarmInfo { export const simulatedAlarm: AlarmInfo = { id: new AlarmId(NULL_UUID), tenantId: new TenantId(NULL_UUID), + customerId: new CustomerId(NULL_UUID), createdTime: new Date().getTime(), startTs: new Date().getTime(), endTs: 0,