dataCommon

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2018 License: Apache-2.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 CommonData

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

func NewCommonData

func NewCommonData(router *eventrouting.EventRouter, monitoredAppGuids map[string]bool) *CommonData

func (*CommonData) AppsNotInDesiredState

func (cd *CommonData) AppsNotInDesiredState() int

func (*CommonData) GetDisplayAppStatsMap

func (cd *CommonData) GetDisplayAppStatsMap() map[string]*DisplayAppStats

func (*CommonData) GetMonitoredAppGuids added in v0.8.4

func (cd *CommonData) GetMonitoredAppGuids() map[string]bool

func (*CommonData) IsMonitoredAppGuid added in v0.8.4

func (cd *CommonData) IsMonitoredAppGuid(appGuid string) bool

func (*CommonData) IsWarmupComplete

func (cd *CommonData) IsWarmupComplete() bool

func (*CommonData) PostProcessData

func (cd *CommonData) PostProcessData() map[string]*DisplayAppStats

func (*CommonData) SetMonitoredAppGuids added in v0.8.4

func (cd *CommonData) SetMonitoredAppGuids(monitoredAppGuids map[string]bool)

func (*CommonData) TotalCrash1hCount added in v0.8.3

func (cd *CommonData) TotalCrash1hCount() int

func (*CommonData) TotalCrash24hCount added in v0.8.3

func (cd *CommonData) TotalCrash24hCount() int

type DisplayAppStats

type DisplayAppStats struct {
	*eventApp.AppStats

	AppName              string
	AppNameForSort       string
	SpaceId              string
	SpaceName            string
	OrgId                string
	OrgName              string
	DesiredContainers    int
	StackId              string
	StackName            string
	IsolationSegmentGuid string
	IsolationSegmentName string

	// If the app is in the pending delete from cache, then its been deleted
	// but we keep it around for a n seconds to show newly deleted app on the UI
	IsDeleted             bool
	IsPackageStatePending bool

	// Indicate if this app is monitored.  For privileged users
	// this should always be true.
	Monitored bool

	TotalCpuPercentage float64
	TotalMemoryUsed    int64
	TotalDiskUsed      int64

	TotalReportingContainers int
	TotalLogStdout           int64
	TotalLogStderr           int64
	Crash1hCount             int
	Crash24hCount            int
	LastCrashTime            *time.Time

	// Summerize HTTP response codes
	HttpAllCount int64
	Http2xxCount int64
	Http3xxCount int64
	Http4xxCount int64
	Http5xxCount int64
}

func NewDisplayAppStats

func NewDisplayAppStats(appStats *eventApp.AppStats) *DisplayAppStats

Jump to

Keyboard shortcuts

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