HostMemoryStatistics

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

Bases: oci.opsi.models.host_resource_statistics.HostResourceStatistics

Contains memory statistics.

Attributes

RESOURCE_NAME_HOST_CPU_STATISTICS str(object=’’) -> str
RESOURCE_NAME_HOST_MEMORY_STATISTICS str(object=’’) -> str
RESOURCE_NAME_HOST_NETWORK_STATISTICS str(object=’’) -> str
RESOURCE_NAME_HOST_STORAGE_STATISTICS str(object=’’) -> str
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'
RESOURCE_NAME_HOST_MEMORY_STATISTICS = 'HOST_MEMORY_STATISTICS'
RESOURCE_NAME_HOST_NETWORK_STATISTICS = 'HOST_NETWORK_STATISTICS'
RESOURCE_NAME_HOST_STORAGE_STATISTICS = '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”
  • 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.
available_memory

Gets the available_memory of this HostMemoryStatistics.

Returns:The available_memory of this HostMemoryStatistics.
Return type:float
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
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.

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
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
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
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
load

Gets the load of this HostMemoryStatistics.

Returns:The load of this HostMemoryStatistics.
Return type:oci.opsi.models.SummaryStatistics
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”, ‘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
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
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
utilization_percent

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

Returns:The utilization_percent of this HostResourceStatistics.
Return type:float