Table of Contents

Class MailboxDrainTelemetry

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

Publishes how far a held account's source has been emptied, and what the gate is keeping on it.

public sealed class MailboxDrainTelemetry : IMailboxDrainTelemetry
Inheritance
MailboxDrainTelemetry
Implements
Inherited Members

Remarks

A switch to holding a mailbox is the one operation here whose progress nobody can see from the mail: a drained message looks exactly like a message that was never on the source, and a held-back one looks exactly like a drained one. So the counters are the operator's whole view of it, and the held-back reason is the dimension that turns nothing is moving into an answer.

The dimensions are the account alias and MailFathom's own name for a hold-back reason or a kind of failure, bounded by the configured accounts times the five reasons a message is held back and the five kinds of failure, and none of them is derived from a message. Nothing here carries a subject, an address, a folder path, or a UID.

Constructors

MailboxDrainTelemetry(ILogger<MailboxDrainTelemetry>)

Initializes the instruments every drain pass reports through.

Methods

Report(MailAccountId, MailboxDrainReport)

Records what one pass over an account's source did.