Skip to content

PreflightCheck

Part of Diagnostics & preflight in the Python API reference.

Related guidance: getting-started/preflight, how-to/troubleshooting.

Runnable examples: preflight.py.

from picogrid_ecn_client import PreflightCheck

Report the outcome and duration of one MQTT preflight check.

PreflightCheck(
*,
name: PreflightCheckName,
status: CheckStatus,
required: bool = True,
duration_ms: float,
detail: str,
)

Source · models/diagnostics.py

NameTypeRequiredDefaultConstraintsDescription
namePreflightCheckNameyesOperation evaluated by this check.
statusCheckStatusyesObserved outcome of the check.
requiredboolnoTrueWhether failure of this check prevents a successful report; defaults to true.
duration_msfloatyesge=0, finiteNon-negative elapsed duration in milliseconds.
detailstryesmin_length=1, max_length=1024Reader-facing outcome detail, from 1 through 1024 characters.

Version 0.2.0 · branch main