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 ¶
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 |
Click to show internal directories.
Click to hide internal directories.