Skip to content

fix(observers): rename telemetry airtime fields to seconds - #136

Merged
MrAlders0n merged 1 commit into
devfrom
telemetry-airtime-secs
Sep 10, 2026
Merged

MrAlders0n merged 1 commit into
devfrom
telemetry-airtime-secs

Conversation

@MrAlders0n

Copy link
Copy Markdown
Member

Summary

airtime_tx_pct / airtime_rx_pct on observer_telemetry, and the airtimeTxPct / airtimeRxPct fields on /observers/{id}/telemetry, have always carried the observer's tx_air_secs / rx_air_secs counters in seconds. Nothing ever divided by wall-clock time. This renames them to say what they are.

  • Migration 033: ALTER TABLE ... RENAME COLUMN for both columns. Metadata only, no rewrite.
  • Queries, sqlc output, store and ObserverTelemetryPoint renamed to airtimeTxSecs / airtimeRxSecs. Values unchanged: cumulative since boot on interval=1h, per-bucket delta on 6h/24h.
  • Swagger regenerated.

Response shape change

The frontend field rename is already on beacon-web dev, and beacon-docs api_contract.md documents the new names and semantics. Deploy the server before or together with the web build; a web build that reads *Secs against a server still sending *Pct shows an empty airtime chart.

airtime_tx_pct/airtime_rx_pct always held the observer's tx_air_secs /
rx_air_secs counters, never a percentage. Rename the columns and the
airtimeTxPct/airtimeRxPct response fields to *Secs. Values are unchanged:
cumulative since boot on 1h points, per-bucket delta on 6h/24h.
@MrAlders0n
MrAlders0n requested a review from 446564 as a code owner September 10, 2026 11:12
@MrAlders0n
MrAlders0n merged commit d202205 into dev Sep 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant