Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

MozNetworkStatsData

This article needs a technical review. How you can help.

This API is available on Firefox OS for internal applications only.

Summary

The MozNetworkStatsData objects represent a chunk of data usage statistics.

It provides the total amount of data received and sent during a given amount of time. The exact amount of time is provided by the MozNetworkStatsManager.sampleRate property.

Properties

MozNetworkStatsData.rxBytes Read only
A number representing the number of bytes received at "date" for "sampleRate" seconds.
MozNetworkStatsData.txBytes Read only
A number representing the number of bytes sent at "date" for "sampleRate" seconds.
MozNetworkStatsData.date Read only
A date representing the time when the number of bytes received and sent were stored.

Methods

None.

Specification

Not part of any specification.

See also

Document Tags and Contributors

 Contributors to this page: chrisdavidmills, fscholz, jsx, kscarfone, teoli, Jeremie
 Last updated by: chrisdavidmills,