When user asks about monitoring profile of a device the application is able to display only the real data received. This behavior is very limited. Why?
The quality of data is not the same in each device
Some devices have not data related with monitoring but only coverage data
The consequence of these limitations is that we are only able to display data and charts of devices with enough monitoring data
Device with good quality monitoring data
Similar device with bad quality monitoring data
Expected behavior:
The system should be able to display data / charts of any device even if not have enough monitoring data. How?
Using real monitoring data of similar devices and its historical monitoring data (TBD in this task)
Creating new monitoring data based on expected behavior based on Schedulers and historical real monitoring data (TBD in through other tasks)
FUNCTION TO BE DEVELOPED
The function to be developed should a method of a new model with almost the following signature. The signature of course can be modified / adapted
monitoring_profile get_monitoring_profile(id, start_date, end_date, type, N, T_sampling) where
id: communication_id or logical_device_id
start_date: It is clear. Can be a future date
end_date: It is clear. end_date >= start_date
type: enum that indicates what is the source of data.
0: Only real data (current behaviour)
1: Real data + similar device data
2: Ideal data
3: Other
N: Minimum number of real measurements
T_sampling: The calculated date should provide one measurement each T_sampling
...
monitoring profile: List of hashes containing time, voltage, current, power and dimming
INTRODUCTION
Current behavior:
When user asks about monitoring profile of a device the application is able to display only the real data received. This behavior is very limited. Why?
The consequence of these limitations is that we are only able to display data and charts of devices with enough monitoring data
Device with good quality monitoring data
Similar device with bad quality monitoring data
Expected behavior:
The system should be able to display data / charts of any device even if not have enough monitoring data. How?
FUNCTION TO BE DEVELOPED
The function to be developed should a method of a new model with almost the following signature. The signature of course can be modified / adapted
monitoring_profile get_monitoring_profile(id, start_date, end_date, type, N, T_sampling)
whereid: communication_id or logical_device_id start_date: It is clear. Can be a future date end_date: It is clear. end_date >= start_date type: enum that indicates what is the source of data. 0: Only real data (current behaviour) 1: Real data + similar device data 2: Ideal data 3: Other N: Minimum number of real measurements T_sampling: The calculated date should provide one measurement each T_sampling ...
monitoring profile: List of hashes containing time, voltage, current, power and dimming
This task focus on types 0 and 1
DATA MODEL TO BE USED
ER for get_monitoring_profile for types 0 and 1
Example of monitoring data
IDs of the different monitoring data