oneuptime/Common/Models/MonitorLog.ts
Simon Larsen f0c0715f36
fix
2022-04-29 20:52:23 +01:00

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;
}