DataPoint¶
- class oci.stack_monitoring.models.DataPoint(**kwargs)¶
Bases:
objectmetric data point
Methods:
__init__(**kwargs)Initializes a new DataPoint object with values from keyword arguments.
Attributes:
[Required] Gets the timestamp of this DataPoint.
[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.
- property timestamp¶
[Required] Gets the timestamp of this DataPoint. timestamp of when the metric was collected
- Returns
The timestamp of this DataPoint.
- Return type
datetime
- property value¶
[Required] Gets the value of this DataPoint. value for the metric data point
- Returns
The value of this DataPoint.
- Return type
float