HistoricalDataItem

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

Bases: object

The historical timestamp and the corresponding resource value.

Methods

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

Attributes

end_timestamp [Required] Gets the end_timestamp of this HistoricalDataItem.
usage [Required] Gets the usage of this HistoricalDataItem.
__init__(**kwargs)

Initializes a new HistoricalDataItem 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 HistoricalDataItem.
  • usage (float) – The value to assign to the usage property of this HistoricalDataItem.
end_timestamp

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

Returns:The end_timestamp of this HistoricalDataItem.
Return type:datetime
usage

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

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