ResourceStatistics

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

Bases: object

Contains resource statistics with usage unit

Methods

__init__(**kwargs) Initializes a new ResourceStatistics object with values from keyword arguments.

Attributes

base_capacity Gets the base_capacity of this ResourceStatistics.
capacity [Required] Gets the capacity of this ResourceStatistics.
instance_metrics Gets the instance_metrics of this ResourceStatistics.
is_auto_scaling_enabled Gets the is_auto_scaling_enabled of this ResourceStatistics.
usage [Required] Gets the usage of this ResourceStatistics.
usage_change_percent [Required] Gets the usage_change_percent of this ResourceStatistics.
utilization_percent [Required] Gets the utilization_percent of this ResourceStatistics.
__init__(**kwargs)

Initializes a new ResourceStatistics object with values from keyword arguments. 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 ResourceStatistics.
  • capacity (float) – The value to assign to the capacity property of this ResourceStatistics.
  • base_capacity (float) – The value to assign to the base_capacity property of this ResourceStatistics.
  • is_auto_scaling_enabled (bool) – The value to assign to the is_auto_scaling_enabled property of this ResourceStatistics.
  • utilization_percent (float) – The value to assign to the utilization_percent property of this ResourceStatistics.
  • usage_change_percent (float) – The value to assign to the usage_change_percent property of this ResourceStatistics.
  • instance_metrics (list[oci.opsi.models.InstanceMetrics]) – The value to assign to the instance_metrics property of this ResourceStatistics.
base_capacity

Gets the base_capacity of this ResourceStatistics. The base allocated amount of the resource metric type (CPU, STORAGE).

Returns:The base_capacity of this ResourceStatistics.
Return type:float
capacity

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

Returns:The capacity of this ResourceStatistics.
Return type:float
instance_metrics

Gets the instance_metrics of this ResourceStatistics. Array of instance metrics

Returns:The instance_metrics of this ResourceStatistics.
Return type:list[oci.opsi.models.InstanceMetrics]
is_auto_scaling_enabled

Gets the is_auto_scaling_enabled of this ResourceStatistics. Indicates if auto scaling feature is enabled or disabled on a database. It will be false for all metrics other than CPU.

Returns:The is_auto_scaling_enabled of this ResourceStatistics.
Return type:bool
usage

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

Returns:The usage of this ResourceStatistics.
Return type:float
usage_change_percent

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

Returns:The usage_change_percent of this ResourceStatistics.
Return type:float
utilization_percent

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

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