Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IDataTrafficController

interface IDataTrafficController
Extends com.amazon.apmf.IStandard Network data traffic control and management. Provides capabilities for controlling network data traffic and accessing traffic statistics.

Methods

getDataTrafficStats()

IDataTrafficStatistics* getDataTrafficStats(string interfaceName)
This API retrieves the transmitted and received data for the specified interface. The data is collected after device boots.

Parameters

interfaceName
string — Required The name of the network interface to get the data traffic statistics. Use empty string for total statistics for all interfaces. Name cannot exceed ‘Contants.NETWORK_INTERFACE_NAME_MAX_LEN’.

Returns

IDataTrafficStatistics* The data traffic statistics for the specified interface.

Throws


Last modified on October 22, 2026