Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
RegisterRoutes registers job log routes on the jobs group.
Types ¶
type JobLogger ¶
type JobLogger struct {
// contains filtered or unexported fields
}
JobLogger wraps logging to both stdout and database.
type ListJobLogsOptions ¶
type ListJobLogsQuery ¶
type ListJobLogsQuery struct {
AfterID *int `query:"after_id" json:"after_id,omitempty"`
Level []string `query:"level" json:"level,omitempty" validate:"dive,oneof=debug info warn error fatal" tstype:"LogLevel[]"`
Search *string `query:"search" json:"search,omitempty"`
Plugin *string `query:"plugin" json:"plugin,omitempty"`
}
type ListJobLogsResponse ¶ added in v0.0.47
type ListJobLogsResponse struct {
Items []*models.JobLog `json:"items" tstype:"JobLog[]"`
Total int `json:"total"`
}
ListJobLogsResponse is the GET /jobs/:id/logs list-endpoint envelope. The job itself is no longer bundled here; clients fetch it separately via GET /jobs/:id.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) CreateJobLog ¶
func (*Service) ListJobLogs ¶
Click to show internal directories.
Click to hide internal directories.