HostMemoryUsage¶
- class oci.opsi.models.HostMemoryUsage(**kwargs)¶
Bases:
HostPerformanceMetricGroupMemory usage metric for the host
Attributes:
A constant which can be used with the metric_name property of a HostPerformanceMetricGroup.
A constant which can be used with the metric_name property of a HostPerformanceMetricGroup.
A constant which can be used with the metric_name property of a HostPerformanceMetricGroup.
A constant which can be used with the metric_name property of a HostPerformanceMetricGroup.
A constant which can be used with the metric_name property of a HostPerformanceMetricGroup.
A constant which can be used with the metric_name property of a HostPerformanceMetricGroup.
A constant which can be used with the metric_name property of a HostPerformanceMetricGroup.
A constant which can be used with the metric_name property of a HostPerformanceMetricGroup.
Gets the anon_huge_pages_in_kb of this HostMemoryUsage.
Gets the free_logical_memory_in_kb of this HostMemoryUsage.
Gets the free_memory_in_kb of this HostMemoryUsage.
Gets the huge_pages_free of this HostMemoryUsage.
Gets the huge_pages_reserved of this HostMemoryUsage.
Gets the huge_pages_surplus of this HostMemoryUsage.
Gets the logical_memory_used_in_gb of this HostMemoryUsage.
Gets the logical_memory_utilization_in_percent of this HostMemoryUsage.
Gets the major_page_faults of this HostMemoryUsage.
Gets the memory_load_in_gb of this HostMemoryUsage.
Gets the memory_used_in_gb of this HostMemoryUsage.
Gets the memory_utilization_in_percent of this HostMemoryUsage.
[Required] Gets the metric_name of this HostPerformanceMetricGroup.
Gets the real_memory_in_kb of this HostMemoryUsage.
Gets the swap_free_in_kb of this HostMemoryUsage.
[Required] Gets the time_collected of this HostPerformanceMetricGroup.
Methods:
__init__(**kwargs)Initializes a new HostMemoryUsage 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.
- METRIC_NAME_HOST_CPU_USAGE = 'HOST_CPU_USAGE'¶
A constant which can be used with the metric_name property of a HostPerformanceMetricGroup. This constant has a value of “HOST_CPU_USAGE”
- METRIC_NAME_HOST_FILESYSTEM_USAGE = 'HOST_FILESYSTEM_USAGE'¶
A constant which can be used with the metric_name property of a HostPerformanceMetricGroup. This constant has a value of “HOST_FILESYSTEM_USAGE”
- METRIC_NAME_HOST_GPU_PROCESSES = 'HOST_GPU_PROCESSES'¶
A constant which can be used with the metric_name property of a HostPerformanceMetricGroup. This constant has a value of “HOST_GPU_PROCESSES”
- METRIC_NAME_HOST_GPU_USAGE = 'HOST_GPU_USAGE'¶
A constant which can be used with the metric_name property of a HostPerformanceMetricGroup. This constant has a value of “HOST_GPU_USAGE”
- METRIC_NAME_HOST_IO_USAGE = 'HOST_IO_USAGE'¶
A constant which can be used with the metric_name property of a HostPerformanceMetricGroup. This constant has a value of “HOST_IO_USAGE”
- METRIC_NAME_HOST_MEMORY_USAGE = 'HOST_MEMORY_USAGE'¶
A constant which can be used with the metric_name property of a HostPerformanceMetricGroup. This constant has a value of “HOST_MEMORY_USAGE”
- METRIC_NAME_HOST_NETWORK_ACTIVITY_SUMMARY = 'HOST_NETWORK_ACTIVITY_SUMMARY'¶
A constant which can be used with the metric_name property of a HostPerformanceMetricGroup. This constant has a value of “HOST_NETWORK_ACTIVITY_SUMMARY”
- METRIC_NAME_HOST_TOP_PROCESSES = 'HOST_TOP_PROCESSES'¶
A constant which can be used with the metric_name property of a HostPerformanceMetricGroup. This constant has a value of “HOST_TOP_PROCESSES”
- __init__(**kwargs)¶
Initializes a new HostMemoryUsage object with values from keyword arguments. The default value of the
metric_nameattribute of this class isHOST_MEMORY_USAGEand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
metric_name (str) – The value to assign to the metric_name property of this HostMemoryUsage. Allowed values for this property are: “HOST_CPU_USAGE”, “HOST_MEMORY_USAGE”, “HOST_NETWORK_ACTIVITY_SUMMARY”, “HOST_TOP_PROCESSES”, “HOST_FILESYSTEM_USAGE”, “HOST_GPU_USAGE”, “HOST_GPU_PROCESSES”, “HOST_IO_USAGE”
time_collected (datetime) – The value to assign to the time_collected property of this HostMemoryUsage.
memory_used_in_gb (float) – The value to assign to the memory_used_in_gb property of this HostMemoryUsage.
memory_utilization_in_percent (float) – The value to assign to the memory_utilization_in_percent property of this HostMemoryUsage.
memory_load_in_gb (float) – The value to assign to the memory_load_in_gb property of this HostMemoryUsage.
real_memory_in_kb (float) – The value to assign to the real_memory_in_kb property of this HostMemoryUsage.
free_memory_in_kb (float) – The value to assign to the free_memory_in_kb property of this HostMemoryUsage.
logical_memory_used_in_gb (float) – The value to assign to the logical_memory_used_in_gb property of this HostMemoryUsage.
logical_memory_utilization_in_percent (float) – The value to assign to the logical_memory_utilization_in_percent property of this HostMemoryUsage.
free_logical_memory_in_kb (float) – The value to assign to the free_logical_memory_in_kb property of this HostMemoryUsage.
major_page_faults (int) – The value to assign to the major_page_faults property of this HostMemoryUsage.
swap_free_in_kb (float) – The value to assign to the swap_free_in_kb property of this HostMemoryUsage.
anon_huge_pages_in_kb (float) – The value to assign to the anon_huge_pages_in_kb property of this HostMemoryUsage.
huge_pages_free (int) – The value to assign to the huge_pages_free property of this HostMemoryUsage.
huge_pages_reserved (int) – The value to assign to the huge_pages_reserved property of this HostMemoryUsage.
huge_pages_surplus (int) – The value to assign to the huge_pages_surplus property of this HostMemoryUsage.
- property anon_huge_pages_in_kb¶
Gets the anon_huge_pages_in_kb of this HostMemoryUsage. Amount of memory used for anon huge pages in kilobytes
- Returns
The anon_huge_pages_in_kb of this HostMemoryUsage.
- Return type
float
- property free_logical_memory_in_kb¶
Gets the free_logical_memory_in_kb of this HostMemoryUsage. Amount of avaiable virtual memory in kilobytes
- Returns
The free_logical_memory_in_kb of this HostMemoryUsage.
- Return type
float
- property free_memory_in_kb¶
Gets the free_memory_in_kb of this HostMemoryUsage. Amount of available physical memory in kilobytes
- Returns
The free_memory_in_kb of this HostMemoryUsage.
- 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_pages_free¶
Gets the huge_pages_free of this HostMemoryUsage. Number of available huge pages
- Returns
The huge_pages_free of this HostMemoryUsage.
- Return type
int
- property huge_pages_reserved¶
Gets the huge_pages_reserved of this HostMemoryUsage. Number of reserved huge pages
- Returns
The huge_pages_reserved of this HostMemoryUsage.
- Return type
int
- property huge_pages_surplus¶
Gets the huge_pages_surplus of this HostMemoryUsage. Number of surplus huge pages
- Returns
The huge_pages_surplus of this HostMemoryUsage.
- Return type
int
- property logical_memory_used_in_gb¶
Gets the logical_memory_used_in_gb of this HostMemoryUsage. Memory used excluding buffers and cache in gigabytes
- Returns
The logical_memory_used_in_gb of this HostMemoryUsage.
- Return type
float
- property logical_memory_utilization_in_percent¶
Gets the logical_memory_utilization_in_percent of this HostMemoryUsage. Amount of logical memory used in percentage
- Returns
The logical_memory_utilization_in_percent of this HostMemoryUsage.
- Return type
float
- property major_page_faults¶
Gets the major_page_faults of this HostMemoryUsage. Number of major page faults
- Returns
The major_page_faults of this HostMemoryUsage.
- Return type
int
- property memory_load_in_gb¶
Gets the memory_load_in_gb of this HostMemoryUsage. Load on memory in gigabytes
- Returns
The memory_load_in_gb of this HostMemoryUsage.
- Return type
float
- property memory_used_in_gb¶
Gets the memory_used_in_gb of this HostMemoryUsage. Amount of physical memory used in gigabytes
- Returns
The memory_used_in_gb of this HostMemoryUsage.
- Return type
float
- property memory_utilization_in_percent¶
Gets the memory_utilization_in_percent of this HostMemoryUsage. Amount of physical memory used in percentage
- Returns
The memory_utilization_in_percent of this HostMemoryUsage.
- Return type
float
- property metric_name¶
[Required] Gets the metric_name of this HostPerformanceMetricGroup. Name of the metric group
Allowed values for this property are: “HOST_CPU_USAGE”, “HOST_MEMORY_USAGE”, “HOST_NETWORK_ACTIVITY_SUMMARY”, “HOST_TOP_PROCESSES”, “HOST_FILESYSTEM_USAGE”, “HOST_GPU_USAGE”, “HOST_GPU_PROCESSES”, “HOST_IO_USAGE”
- Returns
The metric_name of this HostPerformanceMetricGroup.
- Return type
str
- property real_memory_in_kb¶
Gets the real_memory_in_kb of this HostMemoryUsage. Amount of usable physical memory in kilobytes
- Returns
The real_memory_in_kb of this HostMemoryUsage.
- Return type
float
- property swap_free_in_kb¶
Gets the swap_free_in_kb of this HostMemoryUsage. Amount of available swap space in kilobytes
- Returns
The swap_free_in_kb of this HostMemoryUsage.
- Return type
float
- property time_collected¶
[Required] Gets the time_collected of this HostPerformanceMetricGroup. Collection timestamp Example: “2020-05-06T00:00:00.000Z”
- Returns
The time_collected of this HostPerformanceMetricGroup.
- Return type
datetime