mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-28 17:50:56 +01:00
feat: added modules
This commit is contained in:
23
core/interfaces/model_task_stat.go
Normal file
23
core/interfaces/model_task_stat.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package interfaces
|
||||
|
||||
import "time"
|
||||
|
||||
type TaskStat interface {
|
||||
Model
|
||||
GetCreateTs() (ts time.Time)
|
||||
SetCreateTs(ts time.Time)
|
||||
GetStartTs() (ts time.Time)
|
||||
SetStartTs(ts time.Time)
|
||||
GetEndTs() (ts time.Time)
|
||||
SetEndTs(ts time.Time)
|
||||
GetWaitDuration() (d int64)
|
||||
SetWaitDuration(d int64)
|
||||
GetRuntimeDuration() (d int64)
|
||||
SetRuntimeDuration(d int64)
|
||||
GetTotalDuration() (d int64)
|
||||
SetTotalDuration(d int64)
|
||||
GetResultCount() (c int64)
|
||||
SetResultCount(c int64)
|
||||
GetErrorLogCount() (c int64)
|
||||
SetErrorLogCount(c int64)
|
||||
}
|
||||
Reference in New Issue
Block a user