MozNetworkStatsManager.getAllAlarms()

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

JavaScript
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

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/moznetworkstatsmanager/getallalarms

API B2G Firefox OS Method Network Stats Non-standard Reference Référence