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: 7 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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