• Skip to main content
  • Select language
  • Skip to search
MDN Web Docs
  • Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs / DOM
    • WebExtensions
    • MathML
  • References & Guides
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
B2G OS
  1. MDN
  2. Archive of obsolete content
  3. B2G OS
  4. B2G OS APIs
  5. MozNetworkStatsData

MozNetworkStatsData

In This Article
  1. Summary
  2. Properties
  3. Methods
  4. Specification
  5. See also

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

  • Network Stats API
  • MozNetworkStatsManager

Document Tags and Contributors

Tags: 
  • API
  • B2G
  • Firefox OS
  • Network Stats
  • Non-standard
  • Reference
  • Référence
 Contributors to this page: chrisdavidmills, fscholz, jsx, kscarfone, teoli, Jeremie
 Last updated by: chrisdavidmills, Feb 27, 2017, 2:08:46 AM
See also
  1. Network Stats API
  2. Archive
  3. Related pages for Network Stats API
    1. MozNetworkStats
    2. MozNetworkStatsData
    3. MozNetworkStatsManager