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

passed int?
total int?

Returns

string

CountAtOrAbove(BowireRollup, BowireRollupSeverity)

Services at or above level.

public static int CountAtOrAbove(BowireRollup rollup, BowireRollupSeverity level)

Parameters

rollup BowireRollup
level BowireRollupSeverity

Returns

int

KindText(BowireReportKind)

Wire spelling of a report kind.

public static string KindText(BowireReportKind kind)

Parameters

kind BowireReportKind

Returns

string

Latency(double?)

Latency formatted for the CLI table.

public static string Latency(double? ms)

Parameters

ms double?

Returns

string

SeverityText(BowireRollupSeverity?)

Wire spelling of a severity; null means nothing reportable.

public static string? SeverityText(BowireRollupSeverity? severity)

Parameters

severity BowireRollupSeverity?

Returns

string

ToWirePayload(BowireRollup)

Project a rollup onto the wire shape.

public static object ToWirePayload(BowireRollup rollup)

Parameters

rollup BowireRollup

Returns

object

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

text string
level BowireRollupSeverity?
error string

Returns

bool