Class MailAnsweringSpend
- Namespace
- MailFathom.Infrastructure.Observability
- Assembly
- MailFathom.Infrastructure.dll
What answering has cost so far in the period currently running.
public sealed record MailAnsweringSpend : IEquatable<MailAnsweringSpend>
- Inheritance
-
MailAnsweringSpend
- Implements
- Inherited Members
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.
Constructors
- MailAnsweringSpend(DateTimeOffset, int, long, long)
What answering has cost so far in the period currently running.
Properties
- InputTokens
The tokens the conversations of those runs occupied.
- OutputTokens
The tokens the answers of those runs occupied.
- PeriodStartedAt
When the current period began, so a reader can tell how much of it is left.
- Runs
How many runs the period has admitted.
- Tokens
Gets the tokens the period has consumed, sent and received together.