monitoring

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actions

type Actions struct {
	// contains filtered or unexported fields
}

func NewActions

func NewActions(
	logger *WorkerJobLogger,
	location *time.Location,
) *Actions

func (*Actions) WorkersLoad

func (a *Actions) WorkersLoad(ctx *gin.Context)

func (*Actions) WorkersLoadTotal

func (a *Actions) WorkersLoadTotal(ctx *gin.Context)

type WorkerJobLogger

type WorkerJobLogger struct {
	// contains filtered or unexported fields
}

func NewWorkerJobLogger

func NewWorkerJobLogger(location *time.Location) *WorkerJobLogger

func (*WorkerJobLogger) GoRunTimelineWriter

func (w *WorkerJobLogger) GoRunTimelineWriter()

func (*WorkerJobLogger) Log

func (w *WorkerJobLogger) Log(rec result.JobLog)

func (*WorkerJobLogger) TotalLoad

func (w *WorkerJobLogger) TotalLoad(fromDT, toDT time.Time) (float64, error)

func (*WorkerJobLogger) WorkersLoad

func (w *WorkerJobLogger) WorkersLoad(fromDT, toDT time.Time) (WorkersLoad, error)

type WorkersLoad

type WorkersLoad map[string]float64

Jump to

Keyboard shortcuts

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