mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
84 lines
1.2 KiB
TypeScript
Executable File
84 lines
1.2 KiB
TypeScript
Executable File
import { Column, Entity, Index } from 'typeorm';
|
|
import BaseModel from './BaseModel';
|
|
import User from './User';
|
|
import Project from './Project';
|
|
import ProjectAlertBalance from './ProjectAlertBalance';
|
|
import Monitor from './Monitor';
|
|
import Probe from './Probe';
|
|
import Incident from './Incident';
|
|
@Entity({
|
|
name: "UserAlerts"
|
|
})
|
|
export default class Model extends BaseModel {
|
|
|
|
@Column()
|
|
monitor!: Monitor;
|
|
|
|
@Column()
|
|
probe!: Probe;
|
|
|
|
@Column()
|
|
status!: string;
|
|
|
|
@Column()
|
|
responseTime!: Number;
|
|
|
|
@Column()
|
|
responseStatus!: Number;
|
|
|
|
@Column()
|
|
responseBody!: string;
|
|
|
|
@Column()
|
|
responseHeader!: Object;
|
|
|
|
@Column()
|
|
cpuLoad!: Number;
|
|
|
|
@Column()
|
|
avgCpuLoad!: Number;
|
|
|
|
@Column()
|
|
cpuCores!: Number;
|
|
|
|
@Column()
|
|
memoryUsed!: Number;
|
|
|
|
@Column()
|
|
totalMemory!: Number;
|
|
@Column()
|
|
swapUsed!: Number;
|
|
@Column()
|
|
storageUsed!: Number;
|
|
@Column()
|
|
totalStorage!: Number;
|
|
|
|
@Column()
|
|
storageUsage!: Number;
|
|
@Column()
|
|
mainTemp!: Number;
|
|
|
|
@Column()
|
|
maxTemp!: Number;
|
|
|
|
@Column()
|
|
incident!: Incident;
|
|
|
|
|
|
@Column()
|
|
sslCertificate!: Object;
|
|
|
|
@Column()
|
|
kubernetesLog!: Object;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|