The Usage
class inherits from Resource
.
The base resource
_synchronized (bool) – This is not intended to be used directly. See
new()
and
existing()
.
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.
Singular form of key for resource.
Plural form of key for resource.
The base part of the URI for this resource.
Allow create operation for this resource.
Allow get operation for this resource.
Allow delete operation for this resource.
Allow list operation for this resource.
Allow update operation for this resource.
The UUID of the project in a multi-tenancy cloud.
A list of the server usage objects.
Multiplying the server disk size (in GiB) by hours the server exists, and then adding that all together for each server.
Multiplying the number of virtual CPUs of the server by hours the server exists, and then adding that all together for each server.
Multiplying the server memory size (in MiB) by hours the server exists, and then adding that all together for each server.
The total duration that servers exist (in hours).
The beginning time to calculate usage statistics on compute and storage resources.
The ending time to calculate usage statistics on compute and storage resources.
The ServerUsage
class inherits from Resource
.
The base resource
_synchronized (bool) – This is not intended to be used directly. See
new()
and
existing()
.
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.
Singular form of key for resource.
Plural form of key for resource.
Allow create operation for this resource.
Allow get operation for this resource.
Allow delete operation for this resource.
Allow list operation for this resource.
Allow update operation for this resource.
The duration that the server exists (in hours).
The display name of a flavor.
The UUID of the server.
The server name.
The UUID of the project in a multi-tenancy cloud.
The memory size of the server (in MiB).
The sum of the root disk size of the server and the ephemeral disk size of it (in GiB).
The number of virtual CPUs that the server uses.
The date and time when the server was launched.
The date and time when the server was deleted.
The VM state.
The uptime of the server.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.