28 lines
634 B
Go
28 lines
634 B
Go
package state
|
|
|
|
import (
|
|
"fmt"
|
|
"jobwatch/timespec"
|
|
"jobwatch/types"
|
|
)
|
|
|
|
/*
|
|
|
|
|
|
|
|
*/
|
|
type State struct {
|
|
JobId string `json:"job_id"`
|
|
JobInstanceId string `json:"job_inst_id"`
|
|
LastRun string `json:"last_run"`
|
|
LastRunAge int `json:"last_run_age"`
|
|
LastRunAgeState int `json:"last_run_age_state"`
|
|
LastRunWarnAt timespec.TimeSpec `json:"last_run_warn_at"`
|
|
LastRunCritAt timespec.TimeSpec `json:"last_run_crit_at"`
|
|
LastExitCode int `json:"last_exit_code"`
|
|
}
|
|
|
|
func WriteLog(job types.Job, line ...string) {
|
|
fmt.Println("B")
|
|
}
|