Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Chardonneaur opened this issue May 25, 2022 · 4 comments
Open

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

Chardonneaur opened this issue May 25, 2022 · 4 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@Chardonneaur
Copy link

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.

@Chardonneaur Chardonneaur added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label May 25, 2022
@bx80
Copy link
Contributor

bx80 commented May 29, 2022

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

@justinvelluppillai justinvelluppillai added this to the For Prioritization milestone May 29, 2022
@sgiehl
Copy link
Member

sgiehl commented May 30, 2022

I guess the reason for those reports being hidden there is, that they are removed from report metadata. See

public function configureReportMetadata(&$availableReports, $info)
{
// DBStats is not supposed to appear in report metadata
}

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

@Chardonneaur
Copy link
Author

@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
Copy link
Member

sgiehl commented Jun 1, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

4 participants