jobhisttab

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 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, start string, end string, t uint, l *log.Logger) tea.Cmd

func NewCmdCC

func NewCmdCC(config config.ConfigContainer)

func NewUserInputs added in v1.0.5

func NewUserInputs(t uint, starttime string, endtime string) generic.UserInputs

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
	UserInputsOn      bool // allow user to add/modify parameters for slurm commands
	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      string
	JobHistEnd        string
	JobHistTimeout    uint
	SacctTable        table.Model
	SacctHist         SacctJSON
	SacctHistFiltered SacctJSON
	Filter            textinput.Model
	UserInputs        generic.UserInputs
	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 []*key.Binding

func (*Keys) DisableKeys added in v1.0.5

func (ky *Keys) DisableKeys()

func (*Keys) SetupKeys

func (ky *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