• 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. MozNetworkStatsManager
  6. MozNetworkStatsManager.getAllAlarms()

MozNetworkStatsManager.getAllAlarms()

In This Article
  1. Summary
  2. Syntax
  3. Parameters
  4. Return
  5. Exceptions
  6. Specifications
  7. See also

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

Summary

The getAllAlarms method obtains all alarms for those networks returned by MozNetworkStatsManager.getAvailableNetworks. If a network is provided, it only retrieves the alarms for that network.

Syntax

var alarms = getAllAlarms(network);

Parameters

network Optional
The origin of the data. It can specify wifi, mobile, or null. If null, data measurement from both origins are merged. To know in advance which kind of origin is available, the MozNetworkStatsManager.getAvailableNetworks method returns an Array of interfaces.

Return

An Alarm object with the same fields as that in the system message: alarmId, network, threshold, and data.

Exceptions

InvalidNetwork
The network must be in the return of MozNetworkStatsManager.getAvailableNetworks.

Specifications

Not part of any specification.

See also

  • MozNetworkStatsManager
  • Network Stats API

Document Tags and Contributors

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