ManifestFetchEvidence

data class ManifestFetchEvidence(val url: String, val host: String, val outcome: String, val status: Int?, val ms: Long, val hostOk: Int, val hostFail: Int)

What a failed manifest read can say for itself. Twin of ManifestFetchEvidence in packages/core/src/services/ManifestService.ts — see there for why the field set is this small and no smaller.

The short version: "timeout" alone is equally true of a dead backend, a slow edge, and a device on a long network path, and those need opposite responses. hostOk/hostFail are what separate them without a second run.

Constructors

Link copied to clipboard
constructor(url: String, host: String, outcome: String, status: Int?, ms: Long, hostOk: Int, hostFail: Int)

Properties

Link copied to clipboard

Host of url, so failures can be grouped by origin.

Link copied to clipboard

Manifest reads to this host that failed earlier in this session.

Link copied to clipboard
val hostOk: Int

Manifest reads to this host that SUCCEEDED earlier in this session.

Link copied to clipboard
val ms: Long

Wall time spent on this attempt.

Link copied to clipboard

timeout, http or network.

Link copied to clipboard
val status: Int?

HTTP status when a response arrived at all; null otherwise.

Link copied to clipboard
val url: String

The exact URL that was read — the only field that shows a WRONG target.

Functions

Link copied to clipboard

Diagnostic context form. status is omitted rather than sent as null.