HostCpuStatistics

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

Bases: oci.opsi.models.host_resource_statistics.HostResourceStatistics

Contains CPU statistics.

Attributes

RESOURCE_NAME_HOST_CPU_STATISTICS str(object=’’) -> str
RESOURCE_NAME_HOST_IO_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
capacity [Required] Gets the capacity of this HostResourceStatistics.
cpu_baseline Gets the cpu_baseline of this HostCpuStatistics.
load Gets the load of this HostCpuStatistics.
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 HostCpuStatistics 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_IO_STATISTICS = 'HOST_IO_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 HostCpuStatistics object with values from keyword arguments. The default value of the resource_name attribute of this class is HOST_CPU_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 HostCpuStatistics.
  • capacity (float) – The value to assign to the capacity property of this HostCpuStatistics.
  • utilization_percent (float) – The value to assign to the utilization_percent property of this HostCpuStatistics.
  • usage_change_percent (float) – The value to assign to the usage_change_percent property of this HostCpuStatistics.
  • resource_name (str) – The value to assign to the resource_name property of this HostCpuStatistics. Allowed values for this property are: “HOST_CPU_STATISTICS”, “HOST_MEMORY_STATISTICS”, “HOST_STORAGE_STATISTICS”, “HOST_NETWORK_STATISTICS”, “HOST_IO_STATISTICS”
  • cpu_baseline (float) – The value to assign to the cpu_baseline property of this HostCpuStatistics.
  • load (oci.opsi.models.SummaryStatistics) – The value to assign to the load property of this HostCpuStatistics.
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
cpu_baseline

Gets the cpu_baseline of this HostCpuStatistics. The baseline utilization is a fraction of each CPU core expressed in percentages, either 12.5% or 50%. The baseline provides the minimum CPUs that can be used constantly.

Returns:The cpu_baseline of this HostCpuStatistics.
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.

load

Gets the load of this HostCpuStatistics.

Returns:The load of this HostCpuStatistics.
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”, “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
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