mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
51 lines
886 B
TypeScript
51 lines
886 B
TypeScript
import { Column, Entity } from 'typeorm';
|
|
import BaseModel from './BaseModel';
|
|
import User from './User';
|
|
import Project from './Project';
|
|
import AutomatedScript from './AutomatedScript';
|
|
import Incident from './Incident';
|
|
import OperationStatus from '../Types/OperationStatus';
|
|
|
|
@Entity({
|
|
name: "AutomationScriptRunInstance"
|
|
})
|
|
export default class AutomationScriptRunInstance extends BaseModel{
|
|
|
|
@Column()
|
|
automationScript!: AutomatedScript
|
|
|
|
@Column()
|
|
project!: Project
|
|
|
|
@Column()
|
|
triggerByUser!: User
|
|
|
|
@Column()
|
|
triggerByScript!: AutomatedScript
|
|
|
|
@Column()
|
|
triggerByIncident!: Incident
|
|
|
|
@Column()
|
|
scriptStatus!: OperationStatus
|
|
|
|
@Column()
|
|
deletedByUser!: User
|
|
|
|
@Column()
|
|
executionTime!: Number;
|
|
|
|
|
|
@Column()
|
|
errorDescription!: string;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|