Table of Contents

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

result StoredEmailExtractionBackfillResult

What the pass produced.

duration TimeSpan

How 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 result is null.