web/app/src/interfaces.ts in crono_trigger-0.4.0 vs web/app/src/interfaces.ts in crono_trigger-0.5.0
- old
+ new
@@ -53,17 +53,34 @@
model_name: string
}
interface ISchedulableRecordsStates {
records: ISchedulableRecord[],
timeRangeMinute: number,
+ executions: IExecution[],
}
interface ISchedulableRecordProps {
model_name: string,
record: ISchedulableRecord
}
+interface IExecution {
+ status: string,
+ id: number,
+ schedule_id: number,
+ schedule_type: string,
+ worker_id: number,
+ executed_at: string,
+ completed_at: string | null,
+ error_name: string | null,
+ error_reason: string | null,
+}
+
+interface IExecutionProps {
+ execution: IExecution
+}
+
export {
IGlobalWindow,
IWorkerRecord,
IWorkersState,
IWorkerProps,
@@ -71,7 +88,9 @@
ISignalsState,
ISignalProps,
ISchedulableRecord,
ISchedulableRecordsProps,
ISchedulableRecordsStates,
- ISchedulableRecordProps
+ ISchedulableRecordProps,
+ IExecution,
+ IExecutionProps
}