ResourceUsageTrendAggregation

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

Bases: object

Aggregate usage samples

Methods

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

Attributes

capacity [Required] Gets the capacity of this ResourceUsageTrendAggregation.
end_timestamp [Required] Gets the end_timestamp of this ResourceUsageTrendAggregation.
total_host_capacity Gets the total_host_capacity of this ResourceUsageTrendAggregation.
usage [Required] Gets the usage of this ResourceUsageTrendAggregation.
__init__(**kwargs)

Initializes a new ResourceUsageTrendAggregation object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • end_timestamp (datetime) – The value to assign to the end_timestamp property of this ResourceUsageTrendAggregation.
  • usage (float) – The value to assign to the usage property of this ResourceUsageTrendAggregation.
  • capacity (float) – The value to assign to the capacity property of this ResourceUsageTrendAggregation.
  • total_host_capacity (float) – The value to assign to the total_host_capacity property of this ResourceUsageTrendAggregation.
capacity

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

Returns:The capacity of this ResourceUsageTrendAggregation.
Return type:float
end_timestamp

[Required] Gets the end_timestamp of this ResourceUsageTrendAggregation. The timestamp in which the current sampling period ends in RFC 3339 format.

Returns:The end_timestamp of this ResourceUsageTrendAggregation.
Return type:datetime
total_host_capacity

Gets the total_host_capacity of this ResourceUsageTrendAggregation. 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 ResourceUsageTrendAggregation.
Return type:float
usage

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

Returns:The usage of this ResourceUsageTrendAggregation.
Return type:float