ReadonlymaxThe maximum age of stored statistics in milliseconds.
ReadonlyMOBILEConstant for Mobile network type.
ReadonlysampleThe sampling rate for statistics in seconds.
ReadonlyWIFIConstant for Wi-Fi network type.
Adds an alarm for network usage.
The network interface to monitor.
The usage threshold in bytes.
Optionaloptions: NetworkStatsAlarmOptionsOptions for the alarm.
Clears all network statistics.
Clears statistics for a specific network.
The network interface to clear.
Retrieves all configured alarms.
Optionalnetwork: MozNetworkStatsInterfaceOptional network interface to filter by.
Retrieves available network interfaces.
DOMRequest returning an array of MozNetworkStatsInterface.
Retrieves network statistics samples.
The network interface to query.
The start date for the statistics.
The end date for the statistics.
Optionaloptions: NetworkStatsGetOptionsOptions for filtering the statistics.
Removes alarms.
OptionalalarmId: numberThe ID of the alarm to remove. If not specified, removes all? (Check docs if available, but "removeAlarms" implies plural).
Manages network statistics. Requires "networkstats-manage" permission. Requires "dom.mozNetworkStats.enabled" system preference.