backend implement:
* last record for each machine,
backend implement:
* discovery: select last record for each machine,
*