import { bool, f64, i32, Option } from "./_commons"; import { EffectiveConnectionType } from "./EffectiveConnectionType"; /** PageVisitEventNetworkStats stores info about network connection speed from web sessions where it is available */ export interface PageVisitEventNetworkStats { /** Bandwidth estimate in megabits per second, rounded to the nearest multiple of 25 kilobits per seconds. Capped at 10 (mbit). */ downlink?: Option; /** Type of the connection meaning one of 'slow-2g', '2g', '3g', or '4g'. This value is determined using a combination of recently observed round-trip time and downlink values. */ effective_type?: Option; /** * Estimated round-trip time of the current connection, rounded to the nearest multiple of 25 milliseconds. * Renamed to round_trip_time in Metroplex */ rtt?: Option; /** Flag set to true if the user has set a reduced data usage option on the user agent */ save_data?: Option; }