Class EmbeddingSpendPeriod
- Namespace
- MailFathom.Application.Emails.Embeddings.Limits
- Assembly
- MailFathom.Application.dll
What one budget period has spent so far, and what it still admits.
public sealed record EmbeddingSpendPeriod : IEquatable<EmbeddingSpendPeriod>
- Inheritance
-
EmbeddingSpendPeriod
- Implements
- Inherited Members
Remarks
This is the value the whole ceiling is readable through: a worker asks it whether to start, a paused one asks it when to wake, and an activation asks it whether the estimate it is about to confirm fits in what is left. Counts and instants only — no message, passage, or vector is describable from it.
A ceiling of null is a deployment that declared none, which is a supported state rather than an unbounded one by omission: it is what an operator writing a ceiling of zero asked for, and the documentation says what it costs.
Constructors
- EmbeddingSpendPeriod(DateTimeOffset, DateTimeOffset, long, long?)
What one budget period has spent so far, and what it still admits.
Properties
- AdmitsRequest
Gets whether a request may be sent under this period.
- CeilingInputCharacterCount
The characters the period admits, or null where the deployment declared no ceiling.
- ConsumedInputCharacterCount
The characters already sent to a provider inside this period.
- EndsAt
When the period rolls over, which is the instant paused work resumes at.
- IsExhausted
Gets whether this period has reached its ceiling and admits no further request.
- RemainingInputCharacterCount
Gets the characters this period still admits, or null where nothing is being counted against.
- StartsAt
When the period began, which is the key its total is counted under.