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 HourlySuffixResolver(SuffixResolver): (source)
Constructor: HourlySuffixResolver()
Resolve log suffixes for hourly rotation windows.
| Method | __init__ |
Initialize the HourlySuffixResolver. |
| Method | get |
Calculate the next rotation time rounded to the next hour. |
| Method | get |
Generate a suffix string for the given datetime in hourly format. |
| Class Variable | __slots__ |
Declare the instance attribute slots reserved by this class. |
| Instance Variable | tz |
Tz produced by DateTime.getZoneInfo. |
Calculate the next rotation time rounded to the next hour.
| Parameters | |
currentdatetime.datetime | The current instant. Naive values use the resolver timezone. |
| Returns | |
datetime.datetime | The datetime object representing the next rotation time at the start of the next hour. |
Generate a suffix string for the given datetime in hourly format.
| Parameters | |
dt:datetime.datetime or None, optional | The datetime object to generate the suffix for. If None, uses the current local datetime. |
| Returns | |
str | The formatted suffix string in the form 'YYYY-MM-DD_HH'. |