Method RecordScheduledDelay
- Namespace
- MailFathom.Infrastructure.Observability
- Assembly
- MailFathom.Infrastructure.dll
RecordScheduledDelay(MailAccountId, TimeSpan, int)
Publishes the wait an account's next run is scheduled behind, and the failure count that produced it.
public void RecordScheduledDelay(MailAccountId accountId, TimeSpan delayBeforeNextRun, int consecutiveFailureCount)
Parameters
accountIdMailAccountIdThe account the wait belongs to.
delayBeforeNextRunTimeSpanWhat the run backoff decided, which is the configured interval while nothing is failing.
consecutiveFailureCountintHow many of the account's runs have failed in a row.
Remarks
Both are published because neither is readable alone: a wait says nothing about health without the interval it is being compared against, and a failure count says nothing about when the server will next be approached.