DiagnosticCheckInterface
in
Extension point for package- and host-level checks in the boot report.
A package attaches its own checks to its PackageProbe
beyond the built-in autoload, kernel and version checks: a required table
exists, a scheduled hook is queued, or, with CheckScope::Render, an
admin page still comes out with <!DOCTYPE, <head>, <body> and the core
script bundles. The report runs every check lazily, when it is collected,
and turns an exception thrown by run() into a failed result, so a
check never has to catch its own errors.
A check must be cheap and read-only: the report is a health gate run by pipelines, not a repair tool.
Table of Contents
Methods
- name() : string
- Short, stable label shown in the report (for example `schema`).
- run() : CheckResult
- Run the check now and describe the outcome.
- scope() : CheckScope
- The layer this check proves.
Methods
name()
Short, stable label shown in the report (for example `schema`).
public
name() : string
Return values
stringrun()
Run the check now and describe the outcome.
public
run() : CheckResult
Return values
CheckResultscope()
The layer this check proves.
public
scope() : CheckScope