glpi-plugin
glpi-plugin copied to clipboard
WIP New devices stats report
Changes description
Add a new graph to show the last contacted date and time for agents
Checklist
Please check if your PR fulfills the following specifications:
- [ ] Tests for the changes have been added
- [ ] Docs have been added/updated
References
Closes flyve-mdm/glpi-plugin#34
@DIOHz0r
if we have hundreds or thousands of agents, I think the graph will be unreadable. I think it would be more interesting to count the number of devices online per hour of a day for example. But again, this would be useful only for the current day, or the few last ones.
Moreover the current query tracks the is_online changes, not their status at some point of the timeline.
As is, I'm not convinced the admin will get useful information from this graph. I think it would be more interesting to get the online ratio per hour for the last few days (week for example ?)
Also the logs table may be deleted by a plugin for GLPI X days we have a limited ability to look in the past.
Also you should filter by search option 11, not 8. 11 is the flag is_online, and it is t imestamped in the logs.
I'm conscious about having a lot of data on the report. The query is incomplete and the idea is show only a range of days maybe 5 days by default. Let's try first to show the data and then create the default range of info to show
What about the other points I talked about. Do you plan to show every agent ? Do you plan to show dots for is_online changes ?