73 lines
2.7 KiB
Plaintext
73 lines
2.7 KiB
Plaintext
syntax = "v1"
|
|
|
|
info(
|
|
title: "type title here"
|
|
desc: "type desc here"
|
|
author: "type author here"
|
|
email: "type email here"
|
|
version: "type version here"
|
|
)
|
|
|
|
type Job {
|
|
SlurmVersion string `json:"slurmVersion"`
|
|
name string `json:"name"`
|
|
JobStartTime string `json:"JobStartTime"`
|
|
JobRunTime string `json:"JobRunTime"`
|
|
StateofJob string `json:"StateofJob"`
|
|
}
|
|
|
|
type (
|
|
listJobReq {
|
|
}
|
|
listJobResp {
|
|
Code int32 `json:"code"`
|
|
Msg string `json:"msg"`
|
|
RecordCount int32 `json:"recordCount"`
|
|
Jobs []Job `json:"jobInfos"`
|
|
}
|
|
)
|
|
|
|
type HistoryJob {
|
|
SlurmVersion string `json:"slurmVersion"`
|
|
name string `json:"name"`
|
|
JobStartTime string `json:"JobStartTime"`
|
|
JobRunTime string `json:"JobRunTime"`
|
|
StateofJob string `json:"StateofJob"`
|
|
}
|
|
|
|
type (
|
|
listHistoryJobReq {
|
|
}
|
|
listHistoryJobResp {
|
|
Code int32 `json:"code"`
|
|
Msg string `json:"msg"`
|
|
RecordCount int32 `json:"recordCount"`
|
|
HistoryJobs []HistoryJob `json:"jobInfoDbs"`
|
|
}
|
|
)
|
|
|
|
|
|
type QueueAssetsResp {
|
|
QueueAssets []QueueAsset `json:"queueAsset"`
|
|
}
|
|
type QueueAsset {
|
|
TenantName string `json:"tenantName"` //租户名称
|
|
ParticipantId int64 `json:"participantId"`
|
|
AclHosts string `json:"aclHosts"` // 可用节点,多个节点用逗号隔开
|
|
QueNodes string `json:"queNodes"` //队列节点总数
|
|
QueMinNodect string `json:"queMinNodect,omitempty"` //队列最小节点数
|
|
QueMaxNgpus string `json:"queMaxNgpus,omitempty"` //队列最大GPU卡数
|
|
QueMaxPPN string `json:"queMaxPPN,omitempty"` //使用该队列作业最大CPU核心数
|
|
QueChargeRate string `json:"queChargeRate,omitempty"` //费率
|
|
QueMaxNcpus string `json:"queMaxNcpus,omitempty"` //用户最大可用核心数
|
|
QueMaxNdcus string `json:"queMaxNdcus,omitempty"` //队列总DCU卡数
|
|
QueueName string `json:"queueName,omitempty"` //队列名称
|
|
QueMinNcpus string `json:"queMinNcpus,omitempty"` //队列最小CPU核数
|
|
QueFreeNodes string `json:"queFreeNodes,omitempty"` //队列空闲节点数
|
|
QueMaxNodect string `json:"queMaxNodect,omitempty"` //队列作业最大节点数
|
|
QueMaxGpuPN string `json:"queMaxGpuPN,omitempty"` //队列单作业最大GPU卡数
|
|
QueMaxWalltime string `json:"queMaxWalltime,omitempty"` //队列最大运行时间
|
|
QueMaxDcuPN string `json:"queMaxDcuPN,omitempty"` //队列单作业最大DCU卡数
|
|
QueFreeNcpus string `json:"queFreeNcpus"` //队列空闲cpu数
|
|
QueNcpus string `json:"queNcpus"` //队列cpu数
|
|
} |