Documentation ¶
Index ¶
- type FakeMetricsAccountant
- func (m *FakeMetricsAccountant) GetMetrics() (map[string]float64, error)
- func (m *FakeMetricsAccountant) IncrementSentMessageMetrics(starts []models.PendingStartMessage, stops []models.PendingStopMessage) error
- func (m *FakeMetricsAccountant) TrackActualStateListenerStoreUsageFraction(usage float64) error
- func (m *FakeMetricsAccountant) TrackDesiredStateSyncTime(dt time.Duration) error
- func (m *FakeMetricsAccountant) TrackReceivedHeartbeats(metric int) error
- func (m *FakeMetricsAccountant) TrackSavedHeartbeats(metric int) error
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
Click to show internal directories.
Click to hide internal directories.