analyzer

package
v0.0.0-...-f627d75 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2017 License: Apache-2.0, MIT Imports: 11 Imported by: 5

Documentation

Index

Constants

View Source
const (
	NumberOfAppsWithAllInstancesReporting = "NumberOfAppsWithAllInstancesReporting"
	NumberOfAppsWithMissingInstances      = "NumberOfAppsWithMissingInstances"
	NumberOfUndesiredRunningApps          = "NumberOfUndesiredRunningApps"
	NumberOfRunningInstances              = "NumberOfRunningInstances"
	NumberOfMissingIndices                = "NumberOfMissingIndices"
	NumberOfCrashedInstances              = "NumberOfCrashedInstances"
	NumberOfCrashedIndices                = "NumberOfCrashedIndices"
	NumberOfDesiredApps                   = "NumberOfDesiredApps"
	NumberOfDesiredInstances              = "NumberOfDesiredInstances"
	NumberOfDesiredAppsPendingStaging     = "NumberOfDesiredAppsPendingStaging"
)

Variables

This section is empty.

Functions

func ComputeCrashDelay

func ComputeCrashDelay(crashCount int, numberOfCrashesBeforeBackoffBegins int, startinDelay int, maximumDelay int) (delay int)

func SendMetrics

func SendMetrics(apps map[string]*models.App, err error)

Types

type Analyzer

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

func New

func New(store store.Store, clock clock.Clock, logger lager.Logger, conf *config.Config) *Analyzer

func (*Analyzer) Analyze

func (analyzer *Analyzer) Analyze(appQueue *models.AppQueue) (map[string]*models.App, []models.PendingStartMessage, []models.PendingStopMessage, error)

Jump to

Keyboard shortcuts

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