python/docs/python_API_interface.md
The Interface class provides information about a network interface.
__init__(self, ntopng_obj, ifid)Constructs a new Interface object.
ntopng_obj: The ntopng handle (Ntopng instance).ifid: The interface ID (integer).get_data(self)Returns information about a network interface.
get_broadcast_domains(self)Returns information about broadcast domains on an interface.
get_address(self)Returns the interface IP address(es).
get_l7_stats(self, max_num_results)Returns statistics about Layer 7 protocols seen on an interface.
max_num_results: The maximum number of results to limit the output (integer).get_dscp_stats(self)Returns statistics about DSCP (Differentiated Services Code Point).
get_host(self, ip, vlan=None)Returns a Host instance.
ip: The host IP address (string).vlan (optional): The host VLAN ID (integer, if applicable).ntopng.Host).get_active_hosts(self)Retrieves the list of active hosts for the specified interface.
get_active_hosts_paginated(self, currentPage, perPage)Retrieves the paginated list of active hosts for the specified interface.
currentPage: The current page (integer).perPage: The number of results per page (integer).get_top_local_talkers(self)Returns the top local hosts generating more traffic on the interface.
get_top_remote_talkers(self)Returns the top remote hosts generating more traffic on the interface.
get_active_flows_paginated(self, currentPage, perPage)Retrieves the paginated list of active flows for the specified interface.
currentPage: The current page (integer).perPage: The number of results per page (integer).get_active_l4_proto_flow_counters(self)Returns statistics about active flows per Layer 4 protocol on the interface.
get_active_l7_proto_flow_counters(self)Returns statistics about active flows per Layer 7 protocol on the interface.
get_historical(self)Returns a Historical handle for the interface.
ntopng.Historical).