Class BowireBenchmarkScheduleEndpoints
- Namespace
- Kuestenlogik.Bowire.Benchmarking
- Assembly
- Kuestenlogik.Bowire.Benchmarking.dll
The benchmark-schedule HTTP surface.
public static class BowireBenchmarkScheduleEndpoints
- Inheritance
-
BowireBenchmarkScheduleEndpoints
- Inherited Members
Methods
MapBowireBenchmarkScheduleEndpoints(IEndpointRouteBuilder, string)
Map the schedule endpoints under basePath:
list them with their next firing time, and pause / resume one.
Deliberately no "create" endpoint yet: a schedule carries a target URL the server will call unattended, so authoring one belongs on the CLI where the operator is explicit about it, while the workbench reads and pauses. That keeps an unattended outbound call from being two clicks away in a browser.
public static IEndpointRouteBuilder MapBowireBenchmarkScheduleEndpoints(this IEndpointRouteBuilder endpoints, string basePath)
Parameters
endpointsIEndpointRouteBuilderbasePathstring
Returns
ToPayload(BowireBenchmarkSchedule, IReadOnlyList<BowireBenchmarkScheduleRun>, DateTime)
Wire shape for the rail: the schedule, when it fires next, and the last run's headline so the list answers "is this healthy?" without a second request.
public static object ToPayload(BowireBenchmarkSchedule schedule, IReadOnlyList<BowireBenchmarkScheduleRun> runs, DateTime nowUtc)
Parameters
scheduleBowireBenchmarkSchedulerunsIReadOnlyList<BowireBenchmarkScheduleRun>nowUtcDateTime