get_stats


Description:

public DomainInterfaceStats get_stats () throws Error

This function returns network interface stats.

Individual fields within the stats structure may be returned as -1, which indicates that the hypervisor does not support that particular statistic.

Parameters:

this

the domain interface

Returns:

the stats or null in case of error. The returned object should be unreffed with unref when no longer needed.