generate getJobLog api

Former-commit-id: cf3cfd9b6f4ced4a41800863238490a797964c65
This commit is contained in:
tzwang 2024-04-25 16:03:13 +08:00
parent c0dcacb06d
commit 189c833f5d
2 changed files with 14 additions and 0 deletions

View File

@ -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",

View File

@ -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"`