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.

is_heat_wave_cluster_attached

Gets the is_heat_wave_cluster_attached of this ResourceStatistics.

is_highly_available

Gets the is_highly_available of this ResourceStatistics.

total_host_capacity

Gets the total_host_capacity 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.

  • total_host_capacity (float) – The value to assign to the total_host_capacity property of this ResourceStatistics.

  • is_heat_wave_cluster_attached (bool) – The value to assign to the is_heat_wave_cluster_attached property of this ResourceStatistics.

  • is_highly_available (bool) – The value to assign to the is_highly_available property of this ResourceStatistics.

property base_capacity

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

Returns

The base_capacity of this ResourceStatistics.

Return type

float

property capacity

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

Returns

The capacity of this ResourceStatistics.

Return type

float

property 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]

property 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

property is_heat_wave_cluster_attached

Gets the is_heat_wave_cluster_attached of this ResourceStatistics. Specifies if MYSQL DB System has heatwave cluster attached.

Returns

The is_heat_wave_cluster_attached of this ResourceStatistics.

Return type

bool

property is_highly_available

Gets the is_highly_available of this ResourceStatistics. Specifies if MYSQL DB System is highly available.

Returns

The is_highly_available of this ResourceStatistics.

Return type

bool

property total_host_capacity

Gets the total_host_capacity of this ResourceStatistics. The maximum host CPUs (cores x threads/core) on the underlying infrastructure. This only applies to CPU and does not not apply for Autonomous Databases.

Returns

The total_host_capacity of this ResourceStatistics.

Return type

float

property 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

property 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

property utilization_percent

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

Returns

The utilization_percent of this ResourceStatistics.

Return type

float