Table of Contents

Class MailboxRestoreTelemetry

Namespace
MailFathom.Infrastructure.Observability
Assembly
MailFathom.Infrastructure.dll

Publishes how far a restoring account's mailbox has got back onto its source.

public sealed class MailboxRestoreTelemetry : IMailboxRestoreTelemetry
Inheritance
MailboxRestoreTelemetry
Implements
Inherited Members

Remarks

The counters follow the drain's, because the two halves of the switch are read together: an operator watching a mailbox come back wants the same shape of answer they had watching it leave. Two of them have no counterpart there — an append whose answer never arrived, and a pause — and both are worth a log line of their own, because each is a restore that will stand still until somebody acts.

The dimensions are the account alias and MailFathom's own names, bounded by the configured accounts times the seven kinds of failure. Nothing here is derived from a message.

Constructors

MailboxRestoreTelemetry(ILogger<MailboxRestoreTelemetry>)

Initializes the instruments every restore pass reports through.

Methods

Report(MailAccountId, MailboxRestoreReport)

Records what one pass at putting an account's mailbox back did.