matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.89k stars 2.65k forks source link

DBStats plugin: make the reports available for custom alerts #19266

Open Chardonneaur opened 2 years ago

Chardonneaur commented 2 years ago

Would it be possible to make the report tables from DB Stats plugin available for the custom alerts plugin. The idea would be to get a notification when the database is reaching a specific threshold.

bx80 commented 2 years ago

Hi @Chardonneaur That sounds like useful feature :+1: Our product team will evaluate the possibility of including it in a future release.

sgiehl commented 2 years ago

I guess the reason for those reports being hidden there is, that they are removed from report metadata. See https://github.com/matomo-org/matomo/blob/115527353a9e75e01aa4d263408956ae45403bea/plugins/DBStats/Reports/Base.php#L26-L29

Removing that, should make them available everywhere (e.g. in custom alerts, dashboard widgets, ...)

Chardonneaur commented 2 years ago

@sgiehl ok I did it but then Matomo starts to be buggy, in fact the reports have confusing names and it is breaking the UI drop down menu as there is no title assigned to it.

sgiehl commented 2 years ago

Ok. Didn't check if the reports have all required properties defined correctly.