Table of Contents

Constructor MailAnsweringSpend

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

MailAnsweringSpend(DateTimeOffset, int, long, long)

What answering has cost so far in the period currently running.

public MailAnsweringSpend(DateTimeOffset PeriodStartedAt, int Runs, long InputTokens, long OutputTokens)

Parameters

PeriodStartedAt DateTimeOffset

When the current period began, so a reader can tell how much of it is left.

Runs int

How many runs the period has admitted.

InputTokens long

The tokens the conversations of those runs occupied.

OutputTokens long

The tokens the answers of those runs occupied.

Remarks

Counts and a moment, and deliberately nothing else. This is what makes a deployment's answering spend observable while it is being spent rather than at the end of a billing period, and it says nothing about what was asked, what was answered, or which mail was read — a size describes the shape of what left without describing any of it.

It sits with the tracker that reports it rather than with the ledger port, because nothing above that boundary acts on the figure: a use case is told whether a question may run and never how close the period is to its ceiling.