File

src/alert/entities/alert.entity.ts

Index

Properties

Constructor

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

Properties

alertParams
Type : any
category
Type : string
checkType
Type : string
Optional createdAt
Type : Date
id
Type : number
interval
Type : number
Optional lastCheckAt
Type : Date
name
Type : string
Optional nextCheckAt
Type : Date
projectId
Type : number
status
Type : string
targetField
Type : string
targetFilter
Type : any
targetTable
Type : string
thresholds
Type : any
type
Type : string
Optional updatedAt
Type : Date
userId
Type : string
export class Alert {
  id: number;
  name: string;
  projectId: number;
  userId: string;
  category: string;
  status: string;
  type: string;
  checkType: string;
  interval: number;
  targetTable: string;
  targetField: string;
  targetFilter: any;

  thresholds: any;
  alertParams: any;
  createdAt?: Date;
  updatedAt?: Date;
  lastCheckAt?: Date;
  nextCheckAt?: Date;

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

export enum AlertCategory {
  METRIC = "METRIC",
}

export enum AlertStatus {
  ACTIVE = "ACTIVE",
  INPROGRESS = "INPROGRESS",
  TRIGGERED = "TRIGGERED",
  DISABLED = "DISABLED",
  DELETED = "DELETED",
  FAILED = "FAILED",
}

export enum AlertType {
  MIN = "MIN",
  MAX = "MAX",
  MIN_MAX = "MIN_MAX",
  PCC_MIN = "PCC_MIN",
  PCC_MAX = "PCC_MAX",
  PCC = "PCC",
}

export enum AlertCheckType {
  WINDOW = "WINDOW",
  VALUE = "VALUE",
}

results matching ""

    No results matching ""