LibvirtGObject.DomainInterface

g GObject.Object GObject.Object LibvirtGObject.DomainDevice LibvirtGObject.DomainDevice GObject.Object->LibvirtGObject.DomainDevice LibvirtGObject.DomainInterface LibvirtGObject.DomainInterface LibvirtGObject.DomainDevice->LibvirtGObject.DomainInterface

Subclasses:

None

Methods

Inherited:

LibvirtGObject.DomainDevice (2), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_stats ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

LibvirtGObject.DomainDevice (2)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

LibvirtGObject.DomainDevice

r

Class Details

class LibvirtGObject.DomainInterface(**kwargs)
Bases:

LibvirtGObject.DomainDevice

Abstract:

No

Structure:

LibvirtGObject.DomainInterfaceClass

get_stats()
Raises:

GLib.Error

Returns:

the stats or None in case of error. The returned object should be unreffed with GObject.Object.unref() when no longer needed.

Return type:

LibvirtGObject.DomainInterfaceStats

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.