Datapoint¶
-
class
oci.monitoring.models.
Datapoint
(**kwargs)¶ Bases:
object
Metric value for a specific timestamp.
Methods
__init__
(**kwargs)Initializes a new Datapoint object with values from keyword arguments. Attributes
count
Gets the count of this Datapoint. timestamp
[Required] Gets the timestamp of this Datapoint. value
[Required] Gets the value of this Datapoint. -
__init__
(**kwargs)¶ Initializes a new Datapoint object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - 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.
-
count
¶ 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
-
timestamp
¶ [Required] Gets the timestamp of this Datapoint. Timestamp for this metric value. Format defined by RFC3339. For a data point to be posted, its timestamp must be near current time (less than two hours in the past and less than 10 minutes in the future).
Example: 2023-02-01T01:02:29.600Z
Returns: The timestamp of this Datapoint. Return type: datetime
-
value
¶ [Required] Gets the value of this Datapoint. Numeric value of the metric.
Example: 10.23
Returns: The value of this Datapoint. Return type: float
-