agent/stats/queue.go
func (queue *Queue) Reset() {
	queue.lock.Lock()
	defer queue.lock.Unlock()
	queue.lastResetTime = time.Now()
	queue.buffer = queue.buffer[:0]
}
func (queue *Queue) Reset() {
	queue.lock.Lock()
	defer queue.lock.Unlock()
	queue.lastResetTime = time.Now()
	queue.buffer = queue.buffer[:0]
}
// Reset resets the stats queue.