Method RecordCompleted
- Namespace
- MailFathom.Infrastructure.Observability
- Assembly
- MailFathom.Infrastructure.dll
RecordCompleted(StoredEmailExtractionBackfillResult, TimeSpan)
Records a pass that completed, what it moved, and the backlog it found ahead of it.
public void RecordCompleted(StoredEmailExtractionBackfillResult result, TimeSpan duration)
Parameters
resultStoredEmailExtractionBackfillResultWhat the pass produced.
durationTimeSpanHow long it took.
Remarks
Each counter is added to only when it moved. A stream of zeroes every interval would make an instance with nothing left to extract indistinguishable from one working through a mailbox.
Exceptions
- ArgumentNullException
Thrown when
resultis null.