class oci.monitoring.models.Datapoint(**kwargs)

Bases: object

Metric value for a specific timestamp.


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

  • timestamp (datetime) -- The value to assign to the timestamp property of this Datapoint.
  • value (float) -- The value to assign to the value property of this Datapoint.
  • count (int) -- The value to assign to the count property of this Datapoint.

Gets the count of this Datapoint. The number of occurrences of the associated value in the set of data.

Default is 1. Value must be greater than zero.

Returns:The count of this Datapoint.
Return type:int

[Required] Gets the timestamp of this Datapoint. Timestamp for this metric value. Format defined by RFC3339.

Example: 2019-02-01T01:02:29.600Z

Returns:The timestamp of this Datapoint.
Return type:datetime

[Required] Gets the value of this Datapoint. Numeric value of the metric.

Example: 10.23

Returns:The value of this Datapoint.
Return type:float