added ai task db model
Former-commit-id: b81c68d0f5d6fdbd137c0a4c5531e23fae81c502
This commit is contained in:
parent
46913fb677
commit
c151c8db07
|
@ -84,4 +84,20 @@ type (
|
||||||
AiJobLogResp {
|
AiJobLogResp {
|
||||||
Log string `json:"log"`
|
Log string `json:"log"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AiTaskDb {
|
||||||
|
Id string `json:"id,omitempty" db:"id"`
|
||||||
|
TaskId string `json:"taskId,omitempty" db:"task_id"`
|
||||||
|
AdapterId string `json:"adapterId,omitempty" db:"adapter_id"`
|
||||||
|
ClusterId string `json:"clusterId,omitempty" db:"cluster_id"`
|
||||||
|
Name string `json:"name,omitempty" db:"name"`
|
||||||
|
Replica string `json:"replica,omitempty" db:"replica"`
|
||||||
|
ClusterTaskId string `json:"clusterTaskId,omitempty" db:"c_task_id"`
|
||||||
|
Strategy string `json:"strategy,omitempty" db:"strategy"`
|
||||||
|
Status string `json:"status,omitempty" db:"status"`
|
||||||
|
Msg string `json:"msg,omitempty" db:"msg"`
|
||||||
|
CommitTime string `json:"commitTime,omitempty" db:"commit_time"`
|
||||||
|
StartTime string `json:"startTime,omitempty" db:"start_time"`
|
||||||
|
EndTime string `json:"endTime,omitempty" db:"end_time"`
|
||||||
|
}
|
||||||
)
|
)
|
|
@ -5586,6 +5586,22 @@ type AiJobLogResp struct {
|
||||||
Log string `json:"log"`
|
Log string `json:"log"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type AiTaskDb struct {
|
||||||
|
Id string `json:"id,omitempty" db:"id"`
|
||||||
|
TaskId string `json:"taskId,omitempty" db:"task_id"`
|
||||||
|
AdapterId string `json:"adapterId,omitempty" db:"adapter_id"`
|
||||||
|
ClusterId string `json:"clusterId,omitempty" db:"cluster_id"`
|
||||||
|
Name string `json:"name,omitempty" db:"name"`
|
||||||
|
Replica string `json:"replica,omitempty" db:"replica"`
|
||||||
|
ClusterTaskId string `json:"clusterTaskId,omitempty" db:"c_task_id"`
|
||||||
|
Strategy string `json:"strategy,omitempty" db:"strategy"`
|
||||||
|
Status string `json:"status,omitempty" db:"status"`
|
||||||
|
Msg string `json:"msg,omitempty" db:"msg"`
|
||||||
|
CommitTime string `json:"commitTime,omitempty" db:"commit_time"`
|
||||||
|
StartTime string `json:"startTime,omitempty" db:"start_time"`
|
||||||
|
EndTime string `json:"endTime,omitempty" db:"end_time"`
|
||||||
|
}
|
||||||
|
|
||||||
type CreateAlertRuleReq struct {
|
type CreateAlertRuleReq struct {
|
||||||
CLusterId string `json:"clusterId"`
|
CLusterId string `json:"clusterId"`
|
||||||
ClusterName string `json:"clusterName"`
|
ClusterName string `json:"clusterName"`
|
||||||
|
|
Loading…
Reference in New Issue