Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogs ¶ added in v0.14.6
func GetLogs(ctx *logger.RequestContext, request GetMixedLogRequest) (schema.JobLogInfo, error)
GetLogs return mixed logs
func GetPFJobLogs ¶ added in v0.14.6
func GetPFJobLogs(ctx *logger.RequestContext, request GetMixedLogRequest) (schema.JobLogInfo, error)
GetPFJobLogs todo to be merged with GetLogs return mixed log by events and logs
Types ¶
type GetMixedLogRequest ¶ added in v0.14.6
type GetMixedLogRequest struct {
Name string
Namespace string
ResourceType string
Framework string
LineLimit string
SizeLimit int64
IsReadFromTail bool
ClusterName string
ClusterInfo model.ClusterInfo
}
GetMixedLogRequest can request job log or k8s pod/deploy events and log
type GetMixedLogResponse ¶ added in v0.14.6
type GetMixedLogResponse struct {
ResourceName string `json:"name"`
Resourcetype string `json:"type"`
TaskList []schema.TaskLogInfo `json:"taskList"`
Events []string `json:"eventList"`
}
GetMixedLogResponse return mixed logs
type GetRunLogRequest ¶
type GetRunLogResponse ¶
type GetRunLogResponse struct {
SubmitLog string `json:"submitLog"`
RunLog []schema.JobLogInfo `json:"runLog"`
RunID string `json:"runID"`
}
func GetRunLog ¶
func GetRunLog(ctx *logger.RequestContext, runID string, request GetRunLogRequest) (*GetRunLogResponse, error)
Click to show internal directories.
Click to hide internal directories.