appStats

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2016 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const MEGABYTE = (1024 * 1024)
View Source
const (
	UnknownName = "unknown"
)

Variables

This section is empty.

Functions

func MovingExpAvg

func MovingExpAvg(value, oldValue, fdtime, ftime float64) float64

Types

type AppDetailView

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

func NewAppDetailView

func NewAppDetailView(masterUI masterUIInterface.MasterUIInterface, name string, appId string, appListView *AppListView) *AppDetailView

func (*AppDetailView) Layout

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

func (*AppDetailView) Name added in v0.5.5

func (w *AppDetailView) Name() string

type AppInfoWidget added in v0.5.5

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

func NewAppInfoWidget added in v0.5.5

func NewAppInfoWidget(masterUI masterUIInterface.MasterUIInterface, name string, width, height int) *AppInfoWidget

func (*AppInfoWidget) Layout added in v0.5.5

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

func (*AppInfoWidget) Name added in v0.5.5

func (w *AppInfoWidget) Name() string

type AppListView

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

func NewAppListView

func NewAppListView(masterUI masterUIInterface.MasterUIInterface, name string, topMargin, bottomMargin int,
	cliConnection plugin.CliConnection) *AppListView

func (*AppListView) ClearStats

func (asUI *AppListView) ClearStats(g *gocui.Gui, v *gocui.View) error

func (*AppListView) FilterAndSortData added in v0.6.3

func (asUI *AppListView) FilterAndSortData()

func (*AppListView) GetCurrentProcessor

func (asUI *AppListView) GetCurrentProcessor() *AppStatsEventProcessor

func (*AppListView) GetDisplayPaused

func (asUI *AppListView) GetDisplayPaused() bool

func (*AppListView) GetListSize

func (asUI *AppListView) GetListSize() int

func (*AppListView) GetRowKey

func (asUI *AppListView) GetRowKey(statIndex int) string

func (*AppListView) GetUnfilteredListSize added in v0.6.3

func (asUI *AppListView) GetUnfilteredListSize() int

func (*AppListView) Layout

func (asUI *AppListView) Layout(g *gocui.Gui) error

func (*AppListView) Name added in v0.5.5

func (asUI *AppListView) Name() string

func (*AppListView) PreRowDisplay

func (asUI *AppListView) PreRowDisplay(statIndex int, isSelected bool) string

func (*AppListView) RefreshDisplay

func (asUI *AppListView) RefreshDisplay(g *gocui.Gui) error

func (*AppListView) SetDisplayPaused

func (asUI *AppListView) SetDisplayPaused(paused bool)

func (*AppListView) Start

func (asUI *AppListView) Start()

func (*AppListView) UpdateDisplay

func (asUI *AppListView) UpdateDisplay(g *gocui.Gui) error

type AppStats

type AppStats struct {
	AppUUID   *events.UUID
	AppId     string
	AppName   string
	SpaceName string
	OrgName   string

	NonContainerOutCount int64
	NonContainerErrCount int64

	ContainerArray      []*ContainerStats
	ContainerTrafficMap map[string]*Traffic
	TotalTraffic        *Traffic

	TotalCpuPercentage float64 // updated after a clone of this object
	TotalUsedMemory    uint64  // updated after a clone of this object
	TotalUsedDisk      uint64  // updated after a clone of this object

	TotalReportingContainers int   //updated after a clone of this object
	TotalLogCount            int64 //updated after a clone of this object
}

func NewAppStats

func NewAppStats(appId string) *AppStats

type AppStatsEventProcessor

type AppStatsEventProcessor struct {
	AppMap      map[string]*AppStats
	TotalEvents int64
	// contains filtered or unexported fields
}

func NewAppStatsEventProcessor

func NewAppStatsEventProcessor() *AppStatsEventProcessor

func (*AppStatsEventProcessor) Clear

func (ap *AppStatsEventProcessor) Clear()

func (*AppStatsEventProcessor) Clone

func (*AppStatsEventProcessor) GetTotalEvents

func (ap *AppStatsEventProcessor) GetTotalEvents() int64

func (*AppStatsEventProcessor) Process

func (ap *AppStatsEventProcessor) Process(msg *events.Envelope)

type ContainerStats

type ContainerStats struct {
	ContainerMetric *events.ContainerMetric
	LastUpdate      time.Time
	OutCount        int64
	ErrCount        int64
}

func NewContainerStats

func NewContainerStats() *ContainerStats

type FilterWidget

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

func NewFilterWidget

func NewFilterWidget(masterUI masterUIInterface.MasterUIInterface, name string, width, height int) *FilterWidget

func (*FilterWidget) Layout

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

func (*FilterWidget) Name added in v0.5.5

func (w *FilterWidget) Name() string

type Traffic

type Traffic struct {
	AvgResponseL60Time float64 // updated after a clone of this object
	EventL60Rate       int     // updated after a clone of this object

	AvgResponseL10Time float64 // updated after a clone of this object
	EventL10Rate       int     // updated after a clone of this object

	AvgResponseL1Time float64 // updated after a clone of this object
	EventL1Rate       int     // updated after a clone of this object

	HttpAllCount int64
	Http2xxCount int64
	Http3xxCount int64
	Http4xxCount int64
	Http5xxCount int64
	// contains filtered or unexported fields
}

func NewTraffic

func NewTraffic() *Traffic

Jump to

Keyboard shortcuts

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