jobhisttab

package
v0.0.0-...-9d695bc Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SacctHistCmdSwitches = []string{"-n", "--json"}
)
View Source
var SacctTabCols = []table.Column{
	{
		Title: "Job ID",
		Width: 10,
	},
	{
		Title: "Job Name",
		Width: 35,
	},
	{
		Title: "Part.",
		Width: 5,
	},
	{
		Title: "QoS",
		Width: 10,
	},
	{
		Title: "Account",
		Width: 10,
	},
	{
		Title: "User",
		Width: 15,
	},
	{
		Title: "Nodes",
		Width: 20,
	},
	{
		Title: "State",
		Width: 10,
	},
}

Functions

func GetSacctHist

func GetSacctHist(uaccs string, d uint, t uint, l *log.Logger) tea.Cmd

func NewCmdCC

func NewCmdCC(config config.ConfigContainer)

Types

type Breakdowns

type Breakdowns struct {
	Top5user   generic.CountItemSlice
	Top5acc    generic.CountItemSlice
	JobPerQos  generic.CountItemSlice
	JobPerPart generic.CountItemSlice
}

type JobHistTab

type JobHistTab struct {
	StatsOn           bool
	CountsOn          bool
	FilterOn          bool
	HistFetched       bool // signals View() if sacct call is finished, to print "waiting for..." message
	HistFetchFail     bool // if sacct call times out/errors, this is set to true
	JobHistStart      uint
	JobHistTimeout    uint
	SacctTable        table.Model
	SacctHist         SacctJSON
	SacctHistFiltered SacctJSON
	Filter            textinput.Model
	Stats
	Breakdowns
}

func (*JobHistTab) AdjTableHeight

func (t *JobHistTab) AdjTableHeight(h int, l *log.Logger)

func (*JobHistTab) GetStatsFiltered

func (t *JobHistTab) GetStatsFiltered(l *log.Logger)

func (*JobHistTab) JobHistTabStats

func (jh *JobHistTab) JobHistTabStats(l *log.Logger) string

func (*JobHistTab) View

func (jh *JobHistTab) View(l *log.Logger) string

type JobHistTabMsg

type JobHistTabMsg struct {
	HistFetchFail bool
	SacctJSON
}

type Keys

type Keys map[*key.Binding]bool

func (*Keys) SetupKeys

func (k *Keys) SetupKeys()

type SacctJSON

type SacctJSON slurm.SacctJSON

func (*SacctJSON) FilterSacctTable

func (saList *SacctJSON) FilterSacctTable(f string, l *log.Logger) (*TableRows, *SacctJSON, *command.ErrorMsg)

type Stats

type Stats struct {
	StateCnt map[string]uint
	AvgWait  time.Duration
	MinWait  time.Duration
	MaxWait  time.Duration
	MedWait  time.Duration
	AvgRun   time.Duration
	MinRun   time.Duration
	MaxRun   time.Duration
	MedRun   time.Duration
	SDWait   int
}

type TableRows

type TableRows []table.Row

Jump to

Keyboard shortcuts

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