新增:HPC常用指令封装

This commit is contained in:
yangyang01000846
2025-11-17 20:36:02 +08:00
parent 5c6041becb
commit 3575ee5cd2

View File

@@ -0,0 +1,64 @@
package com.sdm.common.entity.req.pbs.hpc;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
@Schema(description = "HPC作业列表查询请求参数对应 job list 命令)")
public class ListJobReq {
/**
* 是否列出集群中所有作业,查询所有的时候,其他的参数就不要指定
*/
@Schema(description = "列出集群中所有作业", defaultValue = "true", example = "true")
private Boolean all;
/**
* 信息显示格式可选值list/table默认list, table 执行命令有问题
*/
@Schema(description = "信息显示格式list=列表格式table=表格格式)", defaultValue = "table", example = "table", allowableValues = {"list", "table"})
private String format="list";
/**
* 按作业名称筛选(模糊匹配/精确匹配,取决于命令底层逻辑)
*/
@Schema(description = "按作业名称筛选查询", example = "模型训练作业")
private String jobname;
/**
* 按项目名称筛选
*/
@Schema(description = "按项目名称筛选查询", example = "AI图像识别项目")
private String project;
/**
* 按池名称筛选
*/
@Schema(description = "按池名称筛选查询", example = "gpu-pool-01")
private String pool;
/**
* 集群头节点主机名或IP地址
*/
@Schema(description = "指定查询的集群头节点主机名或IP地址", example = "192.168.1.200")
private String scheduler;
/**
* 按作业状态筛选(多个状态用逗号分隔)
*/
@Schema(description = "按作业状态筛选(多个状态用逗号分隔)", example = "Running,Queued,Completed")
private String state;
/**
* 仅显示过去指定天数内提交的作业(正整数)
*/
@Schema(description = "仅显示过去N天内提交的作业N为正整数", example = "7")
private Integer submittime;
/**
* 按作业所有者筛选(格式:[域\\]用户名,*表示所有用户)
*/
@Schema(description = "按作业所有者筛选(格式:[域\\]用户名,*表示所有用户)", example = "SDM\\admin")
private String user;
}