Documentation ¶
Index ¶
- type Item
- type Tracker
- func (t *Tracker) NotifyAgeWarning(cb func(map[string]Item)) error
- func (t *Tracker) NotifyExpired(cb func(map[string]Item)) error
- func (t *Tracker) NotifyFirstSeen(cb func(string, Item)) error
- func (t *Tracker) NotifyRecover(cb func(string, Item)) error
- func (t *Tracker) RecordAdvised(v string)
- func (t *Tracker) RecordCopied(v string)
- func (t *Tracker) RecordSeen(v string, sz float64)
- func (t *Tracker) ShouldProcess(v string, sz float64) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tracker ¶
func (*Tracker) NotifyAgeWarning ¶
NotifyAgeWarning notifies a callback when an item exceeds the warning threshold, callbacks will be sent until RecordAdvised() is called for an item, which will reset on recovery
func (*Tracker) NotifyExpired ¶
NotifyExpired registers a callback for expired
func (*Tracker) NotifyFirstSeen ¶
NotifyFirstSeen registers a callback for items that were seen for the first time
func (*Tracker) NotifyRecover ¶
NotifyRecover notifies a callback when an item that exceeded the warning threshold but not yet reached the expired threshold is seen again
func (*Tracker) RecordAdvised ¶
RecordAdvised records that we advised about the item
func (*Tracker) RecordCopied ¶
RecordCopied records the fact the node data was copied, used to manage sampling
func (*Tracker) RecordSeen ¶
RecordSeen records that we saw the item
Click to show internal directories.
Click to hide internal directories.