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.
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.
capacity

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

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