Closed Artonus closed 8 months ago
The list of steps we need to take to migrate existing heartbeat data to InfluxDB:
InfluxDB.Client
package to the DataAccess
projectInfluxConfig
class that will hold values for the Address and API Key to the database. InfluxConfig will have 2 properties: Address
and ApiKey
InfluxRepository : IBaseRepository, ITimeSeriesRepository
ITimeSeriesReposiotry
needs additional methods allowing to query for the device/location/robot within a selected time frame: 1. GetByIdBetween(Guid id, DateTime? start, DateTime? end)
DateTime properties being nullable allow to specify only the beginning or the end of the timeframe
GetBetween(DateTime? start, DateTime? end)
get all valuesInfluxRobotStatusRepository
that will use the newly created InfluxRepository
InfluxNetAppStatusRepository
that will use the newly created InfluxRepository
Storing heartbeat in its current form in the Redis is inefficient when storing historical data and retrieving the most up-to-date information. A possible switch to Redis TimeSeries or InfluxDB would be a great improvement to the usability. It would also enable easier development of the features correlated to the Heartbeat.