openstack.compute.v2.server_diagnostics¶
The ServerDiagnostics Class¶
The ServerDiagnostics
class inherits from
Resource
.
- class openstack.compute.v2.server_diagnostics.ServerDiagnostics(_synchronized=False, connection=None, **attrs)¶
The base resource
- Parameters
_synchronized (bool) – This is not intended to be used directly. See
new()
andexisting()
.connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of
self._connection
in Resource code should protect itself with a check for None.
- has_config_drive¶
Indicates whether or not a config drive was used for this server.
- state¶
The current state of the VM.
- driver¶
The driver on which the VM is running.
- hypervisor¶
The hypervisor on which the VM is running.
- hypervisor_os¶
The hypervisor OS.
- uptime¶
The amount of time in seconds that the VM has been running.
- num_cpus¶
The number of vCPUs.
- num_disks¶
The number of disks.
- num_nics¶
The number of vNICs.
- memory_details¶
The dictionary with information about VM memory usage.
- cpu_details¶
The list of dictionaries with detailed information about VM CPUs.
- disk_details¶
The list of dictionaries with detailed information about VM disks.
- nic_details¶
The list of dictionaries with detailed information about VM NICs.
- server_id¶
The ID for the server.