ClearErrors removes all tracked errors
()
| 149 | |
| 150 | // ClearErrors removes all tracked errors |
| 151 | func (s *CollectorState) ClearErrors() { |
| 152 | s.errors = make(map[string]error) |
| 153 | } |
| 154 | |
| 155 | // NextIteration handles obsoletion and clears metrics for next iteration |
| 156 | func (s *CollectorState) NextIteration(obsoletionTimeout int) { |