log

package
v0.14.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogs added in v0.14.6

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 GetRunLogRequest struct {
	JobID           string `json:"jobID"`
	PageNo          int    `json:"pageNo"`
	PageSize        int    `json:"pageSize"`
	LogFilePosition string `json:"logFilePosition"`
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL