|
|
@@ -151,23 +151,42 @@ type TaskPod struct { |
|
|
|
TaskRoleStatus struct { |
|
|
|
Name string `json:"name"` |
|
|
|
} `json:"taskRoleStatus"` |
|
|
|
TaskStatuses []struct { |
|
|
|
TaskIndex int `json:"taskIndex"` |
|
|
|
PodUID string `json:"podUid"` |
|
|
|
PodIP string `json:"podIp"` |
|
|
|
PodName string `json:"podName"` |
|
|
|
ContainerID string `json:"containerId"` |
|
|
|
ContainerIP string `json:"containerIp"` |
|
|
|
ContainerGpus string `json:"containerGpus"` |
|
|
|
State string `json:"state"` |
|
|
|
StartAt time.Time `json:"startAt"` |
|
|
|
FinishedAt time.Time `json:"finishedAt"` |
|
|
|
ExitCode int `json:"exitCode"` |
|
|
|
ExitDiagnostics string `json:"exitDiagnostics"` |
|
|
|
RetriedCount int `json:"retriedCount"` |
|
|
|
StartTime string |
|
|
|
FinishedTime string |
|
|
|
} `json:"taskStatuses"` |
|
|
|
//TaskStatuses []struct { |
|
|
|
// TaskIndex int `json:"taskIndex"` |
|
|
|
// PodUID string `json:"podUid"` |
|
|
|
// PodIP string `json:"podIp"` |
|
|
|
// PodName string `json:"podName"` |
|
|
|
// ContainerID string `json:"containerId"` |
|
|
|
// ContainerIP string `json:"containerIp"` |
|
|
|
// ContainerGpus string `json:"containerGpus"` |
|
|
|
// State string `json:"state"` |
|
|
|
// StartAt time.Time `json:"startAt"` |
|
|
|
// FinishedAt time.Time `json:"finishedAt"` |
|
|
|
// ExitCode int `json:"exitCode"` |
|
|
|
// ExitDiagnostics string `json:"exitDiagnostics"` |
|
|
|
// RetriedCount int `json:"retriedCount"` |
|
|
|
// StartTime string |
|
|
|
// FinishedTime string |
|
|
|
//} `json:"taskStatuses"` |
|
|
|
TaskStatuses []TaskStatuses `json:"taskStatuses"` |
|
|
|
} |
|
|
|
|
|
|
|
type TaskStatuses struct { |
|
|
|
TaskIndex int `json:"taskIndex"` |
|
|
|
PodUID string `json:"podUid"` |
|
|
|
PodIP string `json:"podIp"` |
|
|
|
PodName string `json:"podName"` |
|
|
|
ContainerID string `json:"containerId"` |
|
|
|
ContainerIP string `json:"containerIp"` |
|
|
|
ContainerGpus string `json:"containerGpus"` |
|
|
|
State string `json:"state"` |
|
|
|
StartAt time.Time `json:"startAt"` |
|
|
|
FinishedAt time.Time `json:"finishedAt"` |
|
|
|
ExitCode int `json:"exitCode"` |
|
|
|
ExitDiagnostics string `json:"exitDiagnostics"` |
|
|
|
RetriedCount int `json:"retriedCount"` |
|
|
|
StartTime string |
|
|
|
FinishedTime string |
|
|
|
} |
|
|
|
|
|
|
|
type TaskInfo struct { |
|
|
|