Update UI: add customerId to alarm

This commit is contained in:
Igor Kulikov 2021-05-07 16:07:38 +03:00
parent 1fac07ed5e
commit 3f9c80f577

View File

@ -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<AlarmSeverity, string>(
export interface Alarm extends BaseData<AlarmId> {
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,