Types
pingthings.timeseries.types
¶
| CLASS | DESCRIPTION |
|---|---|
Point |
Singular time,value Point representation in the platform |
| ATTRIBUTE | DESCRIPTION |
|---|---|
MergePolicy |
Various policies the platform can perform when points are inserted that contain duplicate timestamps.
|
Attributes¶
MergePolicy
module-attribute
¶
MergePolicy = Literal["never", "equal", "retain", "replace"]
Various policies the platform can perform when points are inserted that contain duplicate timestamps.
How do the merge policies work?
When inserting data into the platform, it is crucial to understand the impact your choice of merge policy will have when dealing with duplicate timestamps and/or duplicate values.
| Policy | Description |
|---|---|
never |
Never merge, there will be multiple points inserted at the same timestamp |
equal |
Merge identical (key, value) pairs, if points are inserted that have the same timestamps, but different values, both will be inserted into the platform |
retain |
When timestamps are equal, keep old value, discard the new one |
replace |
When timestamps are equal, keep new value, discard the old value |