Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimeMonitor ¶
TimeMonitor is used to periodically monitor if time.Now().Sub(refreshTime) is greater than durationThreshold
func NewTimeMonitor ¶
func NewTimeMonitor(name string, durationThreshold, interval time.Duration, metricName string, emitter metrics.MetricEmitter) *TimeMonitor
func (*TimeMonitor) GetRefreshTime ¶
func (m *TimeMonitor) GetRefreshTime() time.Time
func (*TimeMonitor) UpdateRefreshTime ¶
func (m *TimeMonitor) UpdateRefreshTime()
Click to show internal directories.
Click to hide internal directories.