The RecorderDataPoint contains the data for one data point returned by database recorder thru the /api/v1/recordeddata API endpoint. Depending on the datatype of the queries parameter, the RecorderDataPoint contains either the 'textVal' field for non-numeric or the 'min', 'avg', 'max' values.
| Key | Type | Value |
|---|---|---|
| timeStamp | TimeStamp | time stamp of the data point |
| textVal | TEXT | the recorded data if the parameter is non-numeric |
| minVal | Number | the minimum value if the parameter is numeric |
| avgVal | Number | the average value if the parameter is numeric |
| maxVal | Number | the maximum value if the parameter is numeric |
The database divides the queried time range into time slots if 'resolution' (see RecorderQuery above) width. For numeric parameters the min/avg/max values are calculated from the raw tata points in this time slot.
If 'interpolate' was set 'false' with the query, min/avg/max all are 'null' if there are no raw data points in this time slot. With 'interpolate' set 'true', the values are interpolated from the neighbor time slots.