THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
class MonthlySuffixResolver(SuffixResolver): (source)
Constructor: MonthlySuffixResolver(at_time)
Resolve log suffixes for monthly rotation windows.
| Method | __init__ |
Initialize the resolver with an optional rotation time. |
| Method | get |
Compute the next rotation datetime after the current time. |
| Method | get |
Return the suffix string for the given datetime. |
| Class Variable | __slots__ |
Declare the instance attribute slots reserved by this class. |
| Instance Variable | at |
The time of day when rotation should occur. Defaults to midnight. |
| Instance Variable | tz |
Tz produced by DateTime.getZoneInfo. |
Initialize the resolver with an optional rotation time.
| Parameters | |
atdatetime.time or None, optional | The time of day when rotation should occur. Defaults to midnight. |
| Returns | |
None | This method does not return a value. |
Compute the next rotation datetime after the current time.
| Parameters | |
currentdatetime.datetime | The current instant. Naive values use the resolver timezone. |
| Returns | |
datetime.datetime | The datetime when the next rotation should occur. |
Return the suffix string for the given datetime.
| Parameters | |
dt:datetime.datetime or None, optional | The datetime to generate the suffix for. If None, uses current local datetime. |
| Returns | |
str | The suffix in the format 'YYYY-MM'. |