{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "field_replay.tcp_throughput.v2",
  "description": "v2: canonical field naming. Renamed from v1: rtt_ms_p50 -> rtt_p50_ms (<metric>_<stat>_<unit>).",
  "type": "object",
  "required": ["schema", "up_mbps", "down_mbps", "rtt_p50_ms", "rtt_samples", "up_bytes", "down_bytes", "duration_sec", "interval_ms", "up_series_mbps", "down_series_mbps"],
  "properties": {
    "schema": {"const": "field_replay.tcp_throughput.v2"},
    "up_mbps": {"type": "number"},
    "down_mbps": {"type": "number"},
    "rtt_p50_ms": {"type": "number"},
    "rtt_samples": {"type": "integer"},
    "up_bytes": {"type": "integer"},
    "down_bytes": {"type": "integer"},
    "duration_sec": {"type": "integer"},
    "interval_ms": {"type": "integer"},
    "up_series_mbps": {"type": "array", "items": {"type": "number"}},
    "down_series_mbps": {"type": "array", "items": {"type": "number"}}
  }
}
