metricsaccountant

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: 3 Imported by: 25

Documentation

Index

Constants

View Source
const (
	ReceivedHeartbeats     = "ReceivedHeartbeats"
	SavedHeartbeats        = "SavedHeartbeats"
	StartCrashed           = "StartCrashed"
	StartMissing           = "StartMissing"
	StartEvacuating        = "StartEvacuating"
	StopExtra              = "StopExtra"
	StopDuplicate          = "StopDuplicate"
	StopEvacuationComplete = "StopEvacuationComplete"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsAccountant

type MetricsAccountant interface {
	TrackReceivedHeartbeats(metric int) error
	TrackSavedHeartbeats(metric int) error
	IncrementSentMessageMetrics(starts []models.PendingStartMessage, stops []models.PendingStopMessage) error
}

type RealMetricsAccountant

type RealMetricsAccountant struct {
}

func New

func New() *RealMetricsAccountant

func (*RealMetricsAccountant) IncrementSentMessageMetrics

func (m *RealMetricsAccountant) IncrementSentMessageMetrics(starts []models.PendingStartMessage, stops []models.PendingStopMessage) error

func (*RealMetricsAccountant) TrackReceivedHeartbeats

func (m *RealMetricsAccountant) TrackReceivedHeartbeats(metric int) error

func (*RealMetricsAccountant) TrackSavedHeartbeats

func (m *RealMetricsAccountant) TrackSavedHeartbeats(metric int) error

type UsageTracker

type UsageTracker interface {
	StartTrackingUsage()
	MeasureUsage() (usage float64, measurementDuration time.Duration)
}

Directories

Path Synopsis
This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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