Constructor EmbeddingSpendPeriod
- Namespace
- MailFathom.Application.Emails.Embeddings.Limits
- Assembly
- MailFathom.Application.dll
EmbeddingSpendPeriod(DateTimeOffset, DateTimeOffset, long, long?)
What one budget period has spent so far, and what it still admits.
public EmbeddingSpendPeriod(DateTimeOffset StartsAt, DateTimeOffset EndsAt, long ConsumedInputCharacterCount, long? CeilingInputCharacterCount)
Parameters
StartsAtDateTimeOffsetWhen the period began, which is the key its total is counted under.
EndsAtDateTimeOffsetWhen the period rolls over, which is the instant paused work resumes at.
ConsumedInputCharacterCountlongThe characters already sent to a provider inside this period.
CeilingInputCharacterCountlong?The characters the period admits, or null where the deployment declared no ceiling.
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.