linagora / james-project

Mirror of Apache James Project
Apache License 2.0
72 stars 62 forks source link

[MU] Analytics using quota ratio #5229

Closed chibenwa closed 2 months ago

chibenwa commented 2 months ago

Why?

I have been using quta ratio to build data vizualization for Apache James.

image

So far the overall use case is limited: only limited to the ratio.

However we could easily add the following information onto the index:

Also adding a "date" field would allow relying on quota changes to monitor user activities. IE we define active users as those whose quota have been changed over the last one week.

How?

Add the following fields onto the OpenSearch quota ratio index:

Migration strategy: the data within quotaRatio is non-critical hence it would be perfectly acceptable to recreate a new index:

This procedure needs to be documented into upgrade instructions.

CC @guimard

chibenwa commented 2 months ago

CF https://ci.linagora.com/linagora/lgs/twp/gov-mauritius/mail-gov-mauritius/-/issues/32

chibenwa commented 2 months ago

Merged yesterday