HostResourceStatistics

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

Bases: object

Contains host resource base statistics.

Attributes

RESOURCE_NAME_HOST_CPU_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.
capacity [Required] Gets the capacity of this HostResourceStatistics.
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 HostResourceStatistics 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_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”

__init__(**kwargs)

Initializes a new HostResourceStatistics object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

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 HostResourceStatistics.
  • capacity (float) – The value to assign to the capacity property of this HostResourceStatistics.
  • utilization_percent (float) – The value to assign to the utilization_percent property of this HostResourceStatistics.
  • usage_change_percent (float) – The value to assign to the usage_change_percent property of this HostResourceStatistics.
  • resource_name (str) – The value to assign to the resource_name property of this HostResourceStatistics. Allowed values for this property are: “HOST_CPU_STATISTICS”, “HOST_MEMORY_STATISTICS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
capacity

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

Returns:The capacity of this HostResourceStatistics.
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.

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”, ‘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