HostMemoryStatistics

class oci.opsi.models.HostMemoryStatistics(**kwargs)

Bases: HostResourceStatistics

Contains memory statistics.

Attributes:

RESOURCE_NAME_HOST_CPU_STATISTICS

A constant which can be used with the resource_name property of a HostResourceStatistics.

RESOURCE_NAME_HOST_IO_STATISTICS

A constant which can be used with the resource_name property of a HostResourceStatistics.

RESOURCE_NAME_HOST_MEMORY_STATISTICS

A constant which can be used with the resource_name property of a HostResourceStatistics.

RESOURCE_NAME_HOST_NETWORK_STATISTICS

A constant which can be used with the resource_name property of a HostResourceStatistics.

RESOURCE_NAME_HOST_STORAGE_STATISTICS

A constant which can be used with the resource_name property of a HostResourceStatistics.

available_memory

Gets the available_memory of this HostMemoryStatistics.

capacity

[Required] Gets the capacity of this HostResourceStatistics.

free_memory

Gets the free_memory of this HostMemoryStatistics.

huge_page_size_in_mb

Gets the huge_page_size_in_mb of this HostMemoryStatistics.

huge_pages_free

Gets the huge_pages_free of this HostMemoryStatistics.

huge_pages_reserved

Gets the huge_pages_reserved of this HostMemoryStatistics.

huge_pages_total

Gets the huge_pages_total of this HostMemoryStatistics.

load

Gets the load of this HostMemoryStatistics.

resource_name

[Required] Gets the resource_name of this HostResourceStatistics.

usage

[Required] Gets the usage of this HostResourceStatistics.

usage_change_percent

[Required] Gets the usage_change_percent of this HostResourceStatistics.

utilization_percent

[Required] Gets the utilization_percent of this HostResourceStatistics.

Methods:

__init__(**kwargs)

Initializes a new HostMemoryStatistics object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

RESOURCE_NAME_HOST_CPU_STATISTICS = 'HOST_CPU_STATISTICS'

A constant which can be used with the resource_name property of a HostResourceStatistics. This constant has a value of “HOST_CPU_STATISTICS”

RESOURCE_NAME_HOST_IO_STATISTICS = 'HOST_IO_STATISTICS'

A constant which can be used with the resource_name property of a HostResourceStatistics. This constant has a value of “HOST_IO_STATISTICS”

RESOURCE_NAME_HOST_MEMORY_STATISTICS = 'HOST_MEMORY_STATISTICS'

A constant which can be used with the resource_name property of a HostResourceStatistics. This constant has a value of “HOST_MEMORY_STATISTICS”

RESOURCE_NAME_HOST_NETWORK_STATISTICS = 'HOST_NETWORK_STATISTICS'

A constant which can be used with the resource_name property of a HostResourceStatistics. This constant has a value of “HOST_NETWORK_STATISTICS”

RESOURCE_NAME_HOST_STORAGE_STATISTICS = 'HOST_STORAGE_STATISTICS'

A constant which can be used with the resource_name property of a HostResourceStatistics. This constant has a value of “HOST_STORAGE_STATISTICS”

__init__(**kwargs)

Initializes a new HostMemoryStatistics object with values from keyword arguments. The default value of the resource_name attribute of this class is HOST_MEMORY_STATISTICS and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • usage (float) – The value to assign to the usage property of this HostMemoryStatistics.

  • capacity (float) – The value to assign to the capacity property of this HostMemoryStatistics.

  • utilization_percent (float) – The value to assign to the utilization_percent property of this HostMemoryStatistics.

  • usage_change_percent (float) – The value to assign to the usage_change_percent property of this HostMemoryStatistics.

  • resource_name (str) – The value to assign to the resource_name property of this HostMemoryStatistics. Allowed values for this property are: “HOST_CPU_STATISTICS”, “HOST_MEMORY_STATISTICS”, “HOST_STORAGE_STATISTICS”, “HOST_NETWORK_STATISTICS”, “HOST_IO_STATISTICS”

  • free_memory (float) – The value to assign to the free_memory property of this HostMemoryStatistics.

  • available_memory (float) – The value to assign to the available_memory property of this HostMemoryStatistics.

  • huge_pages_total (int) – The value to assign to the huge_pages_total property of this HostMemoryStatistics.

  • huge_page_size_in_mb (float) – The value to assign to the huge_page_size_in_mb property of this HostMemoryStatistics.

  • huge_pages_free (int) – The value to assign to the huge_pages_free property of this HostMemoryStatistics.

  • huge_pages_reserved (int) – The value to assign to the huge_pages_reserved property of this HostMemoryStatistics.

  • load (oci.opsi.models.SummaryStatistics) – The value to assign to the load property of this HostMemoryStatistics.

property available_memory

Gets the available_memory of this HostMemoryStatistics.

Returns

The available_memory of this HostMemoryStatistics.

Return type

float

property capacity

[Required] Gets the capacity of this HostResourceStatistics. The maximum allocated amount of the resource metric type (CPU, STORAGE) for a set of databases.

Returns

The capacity of this HostResourceStatistics.

Return type

float

property free_memory

Gets the free_memory of this HostMemoryStatistics.

Returns

The free_memory of this HostMemoryStatistics.

Return type

float

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

property huge_page_size_in_mb

Gets the huge_page_size_in_mb of this HostMemoryStatistics. Size of huge pages in megabytes.

Returns

The huge_page_size_in_mb of this HostMemoryStatistics.

Return type

float

property huge_pages_free

Gets the huge_pages_free of this HostMemoryStatistics. Total number of available huge pages.

Returns

The huge_pages_free of this HostMemoryStatistics.

Return type

int

property huge_pages_reserved

Gets the huge_pages_reserved of this HostMemoryStatistics. Total number of huge pages which are used or reserved.

Returns

The huge_pages_reserved of this HostMemoryStatistics.

Return type

int

property huge_pages_total

Gets the huge_pages_total of this HostMemoryStatistics. Total number of huge pages.

Returns

The huge_pages_total of this HostMemoryStatistics.

Return type

int

property load

Gets the load of this HostMemoryStatistics.

Returns

The load of this HostMemoryStatistics.

Return type

oci.opsi.models.SummaryStatistics

property resource_name

[Required] Gets the resource_name of this HostResourceStatistics. Name of resource for host

Allowed values for this property are: “HOST_CPU_STATISTICS”, “HOST_MEMORY_STATISTICS”, “HOST_STORAGE_STATISTICS”, “HOST_NETWORK_STATISTICS”, “HOST_IO_STATISTICS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The resource_name of this HostResourceStatistics.

Return type

str

property usage

[Required] Gets the usage of this HostResourceStatistics. Total amount used of the resource metric type (CPU, STORAGE).

Returns

The usage of this HostResourceStatistics.

Return type

float

property usage_change_percent

[Required] Gets the usage_change_percent of this HostResourceStatistics. Change in resource utilization in percentage

Returns

The usage_change_percent of this HostResourceStatistics.

Return type

float

property utilization_percent

[Required] Gets the utilization_percent of this HostResourceStatistics. Resource utilization in percentage.

Returns

The utilization_percent of this HostResourceStatistics.

Return type

float