- Overview
- ClockEndpoint
ClockEndpoint
Part of Clock diagnostics in the Python API reference.
Related guidance: how-to/check-clock, how-to/troubleshooting.
Runnable examples: check_clock.py.
from picogrid_ecn_client import ClockEndpointConfigured ECN-relative NTP endpoint used for one measurement.
ClockEndpoint(*, host: str, port: int = 123)Fields
Section titled “Fields”| Name | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
| host | str | yes | — | min_length=1, max_length=1024 | NTP host that produced this measurement, from 1 through 1024 characters. The report always names a resolved host; the fallback to the configured ECN host is applied by ECNConfig when ntp_host is unset, not by this model. |
| port | int | no | 123 | ge=1, le=65535 | UDP port of the measured NTP endpoint, from 1 through 65,535. |
Version 0.2.0 · branch main
