Skip to content

Saturn Console Controller RequestMapping Information

何小鹏 edited this page Jan 4, 2018 · 36 revisions

该页面正在更新中,用户请忽略

说明:RequestParam参数, 加粗的是必填, 否则是可选

HomeController

RootPath: /console/home

Uri Method RequestParam
/namespaces GET
/namespace GET namespace

JobOverviewController

RootPath: /console/job-overview

Uri Method RequestParam Description
/jobs GET namespace
/groups GET namespace
/depending-jobs GET namespace
jobName
获取该作业依赖的作业
/depending-jobs-batch GET namespace
jobNames
/depended-jobs GET namespace
jobName
获取依赖该作业的作业
/depended-jobs-batch GET namespace
jobNames
/enable-job POST namespace
jobName
/enable-job-batch POST namespace
jobNames
/disable-job POST namespace
jobName
/disable-job-batch POST namespace
jobNames
/remove-job POST namespace
jobName
/remove-job-batch POST namespace
jobNames
/online-executors GET namespace 获取该域下所有在线的Executor,用于批量选择优先Executor
/set-prefer-executors-batch POST namespace
jobNames
preferList
批量设置作业的优先Executor
/add-job POST namespace
JobConfig(jobType, jobName, jobClass, cron, shardingTotalCount, shardingItemParameters, description)
/import-jobs POST namespace
file
导入作业
/export-jobs GET namespace 导出作业
/export-jobs-template GET 下载导入作业模版

JobConfigController

RootPath: /console/job-detail/config

Uri Method RequestParam Description
/get-config GET namespace
jobName
获取作业配置
/update-config POST namespace
JobConfig
更新作业配置

ExecutorOverviewController

RootPath: /console/executor-overview

Uri Method RequestParam Description
/executors GET namespace 获取所有executors
/executor-allocation GET namespace
executorName
获取作业分片分配
/traffic POST namespace
executorName
operation
摘取流量(operation=extract)及流量恢复(operation=recover)
/shard-all POST namespace 一键重排
/remove-executor POST namespace
executorName
移除离线的executor
/remove-executor-batch POST namespace
executorNames
批量移除离线的executor
/dump POST namespace
executorName
一键dump,包括threaddump和gc.log

JobExecutionController

RootPath: /console/job/execution

Uri Method RequestParam Description
/status GET namespace
jobName
获取作业运行状态
/log GET namespace
jobName
jobItem
获取作业日志信息