Commit 3f9c80f57712afaf00eb8e7007bfd5c24a89f2a3

Authored by Igor Kulikov
1 parent 1fac07ed

Update UI: add customerId to alarm

... ... @@ -21,7 +21,7 @@ import { EntityId } from '@shared/models/id/entity-id';
21 21 import { TimePageLink } from '@shared/models/page/page-link';
22 22 import { NULL_UUID } from '@shared/models/id/has-uuid';
23 23 import { EntityType } from '@shared/models/entity-type.models';
24   -import { isString } from '@core/utils';
  24 +import { CustomerId } from '@shared/models/id/customer-id';
25 25
26 26 export enum AlarmSeverity {
27 27 CRITICAL = 'CRITICAL',
... ... @@ -87,6 +87,7 @@ export const alarmSeverityColors = new Map<AlarmSeverity, string>(
87 87
88 88 export interface Alarm extends BaseData<AlarmId> {
89 89 tenantId: TenantId;
  90 + customerId: CustomerId;
90 91 type: string;
91 92 originator: EntityId;
92 93 severity: AlarmSeverity;
... ... @@ -110,6 +111,7 @@ export interface AlarmDataInfo extends AlarmInfo {
110 111 export const simulatedAlarm: AlarmInfo = {
111 112 id: new AlarmId(NULL_UUID),
112 113 tenantId: new TenantId(NULL_UUID),
  114 + customerId: new CustomerId(NULL_UUID),
113 115 createdTime: new Date().getTime(),
114 116 startTs: new Date().getTime(),
115 117 endTs: 0,
... ...