Class ProbeWindow
- Namespace
- Kuestenlogik.Bowire.Monitoring
- Assembly
- Kuestenlogik.Bowire.Monitoring.dll
A UTC time-of-day window plus a weekday set. A probe only fires inside the window; outside it, the next run is deferred to the next in-window instant.
public sealed class ProbeWindow
- Inheritance
-
ProbeWindow
- Inherited Members
Constructors
ProbeWindow(TimeOnly, TimeOnly, IReadOnlySet<DayOfWeek>)
public ProbeWindow(TimeOnly start, TimeOnly end, IReadOnlySet<DayOfWeek> days)
Parameters
startTimeOnlyendTimeOnlydaysIReadOnlySet<DayOfWeek>
Properties
Days
public IReadOnlySet<DayOfWeek> Days { get; }
Property Value
End
public TimeOnly End { get; }
Property Value
Start
public TimeOnly Start { get; }
Property Value
Methods
Contains(DateTimeOffset)
True when instant (in UTC) falls on an allowed day inside [Start, End).
public bool Contains(DateTimeOffset instant)
Parameters
instantDateTimeOffset
Returns
NextWithin(DateTimeOffset)
The earliest in-window instant at or after from.
Scans up to a week ahead; returns from unchanged if no
allowed day exists (defensive — a window always has ≥ 1 day).
public DateTimeOffset NextWithin(DateTimeOffset from)
Parameters
fromDateTimeOffset