headerView

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const UNKNOWN_ISOSEG_NAME = "UNKNOWN"
View Source
const UNKNOWN_STACK_GROUP_NAME = "UNKNOWN"

Variables

This section is empty.

Functions

func Round

func Round(d, r time.Duration) time.Duration

Types

type HeaderWidget

type HeaderWidget struct {
	HeaderSize int
	// contains filtered or unexported fields
}

func NewHeaderWidget

func NewHeaderWidget(masterUI masterUIInterface.MasterUIInterface,
	name string,
	router *eventrouting.EventRouter,
	commonData *dataCommon.CommonData) *HeaderWidget

func (*HeaderWidget) Layout

func (w *HeaderWidget) Layout(g *gocui.Gui) error

func (*HeaderWidget) Name

func (w *HeaderWidget) Name() string

func (*HeaderWidget) UpdateDisplay

func (w *HeaderWidget) UpdateDisplay(g *gocui.Gui) error

type StackSummaryStats

type StackSummaryStats struct {
	IsolationSegmentGuid        string
	IsolationSegmentName        string
	StackGroupId                string
	StackGroupName              string
	TotalCells                  int
	TotalApps                   int
	TotalReportingAppInstances  int
	TotalActiveApps             int
	TotalMemoryUsedAppInstances int64
	TotalDiskUsedAppInstances   int64
	TotalCpuPercentage          float64
	TotalCellCPUs               int
	// This is the hightest CPU percent of all the cells
	CellMaxCpuPercentage float64
	// This is the percent of CPU capacity of the hightest CPU percent cell
	// E.g.,  If CellMaxCpuPercentage is 160.0 and our cell has 2 vCPUs
	// then CellMaxCpuCapacity = (160 * 100) / (2 * 100) = 80 percent
	// To simplify the above equation it would be (160 / 2) = 80 percent
	CellMaxCpuCapacity  float64
	TotalCapacityMemory int64
	TotalCapacityDisk   int64
	ReservedMem         float64
	ReservedDisk        float64
}

type StackSummaryStatsArray

type StackSummaryStatsArray []*StackSummaryStats

func (StackSummaryStatsArray) Len

func (slice StackSummaryStatsArray) Len() int

func (StackSummaryStatsArray) Less

func (slice StackSummaryStatsArray) Less(i, j int) bool

func (StackSummaryStatsArray) Swap

func (slice StackSummaryStatsArray) Swap(i, j int)

Jump to

Keyboard shortcuts

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