|
|
@@ -1190,6 +1190,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { |
|
|
Path: "/schedule/ai/getAlgorithms/:adapterId/:resourceType/:taskType/:dataset", |
|
|
Path: "/schedule/ai/getAlgorithms/:adapterId/:resourceType/:taskType/:dataset", |
|
|
Handler: schedule.ScheduleGetAlgorithmsHandler(serverCtx), |
|
|
Handler: schedule.ScheduleGetAlgorithmsHandler(serverCtx), |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
Method: http.MethodGet, |
|
|
|
|
|
Path: "/schedule/ai/getJobLog/:adapterId/:clusterId/:taskId/:instanceNum", |
|
|
|
|
|
Handler: schedule.ScheduleGetAiJobLogLogHandler(serverCtx), |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
Method: http.MethodPost, |
|
|
Method: http.MethodPost, |
|
|
Path: "/schedule/submit", |
|
|
Path: "/schedule/submit", |
|
|
@@ -1200,6 +1205,16 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { |
|
|
Path: "/schedule/getOverview", |
|
|
Path: "/schedule/getOverview", |
|
|
Handler: schedule.ScheduleGetOverviewHandler(serverCtx), |
|
|
Handler: schedule.ScheduleGetOverviewHandler(serverCtx), |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
Method: http.MethodGet, |
|
|
|
|
|
Path: "/schedule/getDownloadAlgothmCode", |
|
|
|
|
|
Handler: schedule.DownloadAlgothmCodeHandler(serverCtx), |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
Method: http.MethodPost, |
|
|
|
|
|
Path: "/schedule/getDownloadAlgothmCode", |
|
|
|
|
|
Handler: schedule.UploadAlgothmCodeHandler(serverCtx), |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
rest.WithPrefix("/pcm/v1"), |
|
|
rest.WithPrefix("/pcm/v1"), |
|
|
) |
|
|
) |
|
|
@@ -1294,7 +1309,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) { |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
Method: http.MethodPost, |
|
|
Method: http.MethodPost, |
|
|
Path: "/core/syncClusterAlert", |
|
|
|
|
|
|
|
|
Path: "/monitoring/syncClusterAlert", |
|
|
Handler: monitoring.SyncClusterAlertHandler(serverCtx), |
|
|
Handler: monitoring.SyncClusterAlertHandler(serverCtx), |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
|