File

src/alert/entities/alert-trigger.entity.ts

Index

Properties

Constructor

constructor(partial: Partial)
Parameters :
Name Type Optional
partial Partial<AlertTrigger> No

Properties

alertId
Type : number
breakEvent
Type : boolean
id
Type : number
targetField
Type : string
Decorators :
@Exclude()
targetId
Type : number
targetTable
Type : string
Decorators :
@Exclude()
targetValue
Type : number
timestamp
Type : Date
import { Exclude } from "class-transformer";

export class AlertTrigger {
  id: number;
  alertId: number;

  @Exclude()
  targetTable: string;

  @Exclude()
  targetField: string;

  targetId: number;
  targetValue: number;
  timestamp: Date;
  breakEvent: boolean;

  constructor(partial: Partial<AlertTrigger>) {
    Object.assign(this, partial);
  }
}

export class AlertTriggerRow {
  alertId: number;
  targetTable: string;
  targetField: string;
  targetId: number;
  targetValue: number;
  timestamp: Date;
  breakEvent: boolean;

  constructor(partial: Partial<AlertTriggerRow>) {
    Object.assign(this, partial);
  }
}

results matching ""

    No results matching ""