Class BowireRollupPayload
- Namespace
- Kuestenlogik.Bowire.Reporting
- Assembly
- Kuestenlogik.Bowire.dll
The canonical JSON shape of a rollup, shared by every surface that emits
one (#587): GET /api/report/rollup, bowire report rollup --json
and the bowire.report.rollup MCP tool.
It exists for the same reason #364 grew one: serialising the model directly let the CLI emit an enum ordinal where the endpoint emitted a string, so a script could not treat the surfaces alike. One projection, no drift.
public static class BowireRollupPayload
- Inheritance
-
BowireRollupPayload
- Inherited Members
Methods
Cell(int?, int?)
Compact cell text used by the CLI table (and handy in tests).
public static string Cell(int? passed, int? total)
Parameters
Returns
CountAtOrAbove(BowireRollup, BowireRollupSeverity)
Services at or above level.
public static int CountAtOrAbove(BowireRollup rollup, BowireRollupSeverity level)
Parameters
rollupBowireRolluplevelBowireRollupSeverity
Returns
KindText(BowireReportKind)
Wire spelling of a report kind.
public static string KindText(BowireReportKind kind)
Parameters
kindBowireReportKind
Returns
Latency(double?)
Latency formatted for the CLI table.
public static string Latency(double? ms)
Parameters
msdouble?
Returns
SeverityText(BowireRollupSeverity?)
Wire spelling of a severity; null means nothing reportable.
public static string? SeverityText(BowireRollupSeverity? severity)
Parameters
severityBowireRollupSeverity?
Returns
ToWirePayload(BowireRollup)
Project a rollup onto the wire shape.
public static object ToWirePayload(BowireRollup rollup)
Parameters
rollupBowireRollup
Returns
TryParseGate(string?, out BowireRollupSeverity?, out string?)
Parse a --fail-on level. Returns null for "none" (the default,
meaning never gate) and reports a typo rather than silently accepting
it — a gate that quietly does nothing is worse than no gate.
public static bool TryParseGate(string? text, out BowireRollupSeverity? level, out string? error)
Parameters
textstringlevelBowireRollupSeverity?errorstring