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

start TimeOnly
end TimeOnly
days IReadOnlySet<DayOfWeek>

Properties

Days

public IReadOnlySet<DayOfWeek> Days { get; }

Property Value

IReadOnlySet<DayOfWeek>

End

public TimeOnly End { get; }

Property Value

TimeOnly

Start

public TimeOnly Start { get; }

Property Value

TimeOnly

Methods

Contains(DateTimeOffset)

True when instant (in UTC) falls on an allowed day inside [Start, End).

public bool Contains(DateTimeOffset instant)

Parameters

instant DateTimeOffset

Returns

bool

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

from DateTimeOffset

Returns

DateTimeOffset