Browse Source

Update UI: add customerId to alarm

pull/4563/head
Igor Kulikov 5 years ago
parent
commit
3f9c80f577
  1. 4
      ui-ngx/src/app/shared/models/alarm.models.ts

4
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<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,

Loading…
Cancel
Save