fakemetricsaccountant

package
Version: v0.0.0-...-f9cc615 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2014 License: Apache-2.0, BSD-3-Clause, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeMetricsAccountant

type FakeMetricsAccountant struct {
	IncrementSentMessageMetricsError error
	IncrementedStarts                []models.PendingStartMessage
	IncrementedStops                 []models.PendingStopMessage

	TrackedDesiredStateSyncTime                  time.Duration
	TrackedActualStateListenerStoreUsageFraction float64

	GetMetricsError   error
	GetMetricsMetrics map[string]float64

	ReceivedHeartbeats int
	SavedHeartbeats    int
}

func New

func New() *FakeMetricsAccountant

func (*FakeMetricsAccountant) GetMetrics

func (m *FakeMetricsAccountant) GetMetrics() (map[string]float64, error)

func (*FakeMetricsAccountant) IncrementSentMessageMetrics

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

func (*FakeMetricsAccountant) TrackActualStateListenerStoreUsageFraction

func (m *FakeMetricsAccountant) TrackActualStateListenerStoreUsageFraction(usage float64) error

func (*FakeMetricsAccountant) TrackDesiredStateSyncTime

func (m *FakeMetricsAccountant) TrackDesiredStateSyncTime(dt time.Duration) error

func (*FakeMetricsAccountant) TrackReceivedHeartbeats

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

func (*FakeMetricsAccountant) TrackSavedHeartbeats

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL