1 Star 0 Fork 0

cloudtask / common

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
joblog.go 944 Bytes
一键复制 编辑 原始数据 按行查看 历史
Rick.B.Liu 提交于 2018-01-26 16:05 . add common models.
package models
import (
"time"
)
/*
任务日志信息定义
*/
type JobLog struct {
JobId string `json:"jobid"` //任务编号
MsgId string `json:"msgid"` //消息编号
Event string `json:"event"` //事件描述
Group string `json:"group"` //隶属分组
Stat int `json:"stat"` //状态编码
Location string `json:"location"` //所在位置
Command string `json:"command"` //执行命令
WorkDir string `json:"workdir"` //执行工作目录
IpAddr string `json:"ipaddr"` //服务器地址
StdOut string `json:"stdout"` //标准输出
ErrOut string `json:"errout"` //错误输出
ExecErr string `json:"execerr"` //执行错误信息
ExecAt time.Time `json:"execat"` //本次执行时间
ExecTimes float64 `json:"exectimes"` //执行耗时(毫秒)
CreateAt int64 `json:"createat"` //日志时间
}
Go
1
https://gitee.com/cloudtask/common.git
git@gitee.com:cloudtask/common.git
cloudtask
common
common
db7089b61fbe

搜索帮助