generate getJobLog api
Former-commit-id: cf3cfd9b6f4ced4a41800863238490a797964c65
This commit is contained in:
parent
c0dcacb06d
commit
189c833f5d
|
@ -1145,6 +1145,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|||
Path: "/schedule/ai/getAlgorithms/:adapterId/:resourceType/:taskType/:dataset",
|
||||
Handler: schedule.ScheduleGetAlgorithmsHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
Method: http.MethodGet,
|
||||
Path: "/schedule/ai/getJobLog/:taskId/:instanceNum",
|
||||
Handler: schedule.ScheduleGetAiJobLogLogHandler(serverCtx),
|
||||
},
|
||||
{
|
||||
Method: http.MethodPost,
|
||||
Path: "/schedule/submit",
|
||||
|
|
|
@ -5535,6 +5535,15 @@ type AiAlgorithmsResp struct {
|
|||
Algorithms []string `json:"algorithms"`
|
||||
}
|
||||
|
||||
type AiJobLogReq struct {
|
||||
TaskId string `path:"taskId"`
|
||||
InstanceNum string `path:"instanceNum"`
|
||||
}
|
||||
|
||||
type AiJobLogResp struct {
|
||||
Log string `json:"log"`
|
||||
}
|
||||
|
||||
type CreateAlertRuleReq struct {
|
||||
CLusterId string `json:"clusterId"`
|
||||
ClusterName string `json:"clusterName"`
|
||||
|
|
Loading…
Reference in New Issue