diff --git a/changelog.d/12917.feature b/changelog.d/12917.feature new file mode 100644 index 0000000000000000000000000000000000000000..b24489aaad6ccde69f0f1b61c35c14409fd08143 --- /dev/null +++ b/changelog.d/12917.feature @@ -0,0 +1 @@ +Add storage and module API methods to get monthly active users (and their corresponding appservices) within an optionally specified time range. diff --git a/synapse/module_api/__init__.py b/synapse/module_api/__init__.py index edcf59aa0bc4a845607b92d35811ac49eb6bb11b..6668f64c9028f95fba57f34144dcf935886be1c3 100644 --- a/synapse/module_api/__init__.py +++ b/synapse/module_api/__init__.py @@ -1149,7 +1149,10 @@ class ModuleApi: ) async def sleep(self, seconds: float) -> None: - """Sleeps for the given number of seconds.""" + """Sleeps for the given number of seconds. + + Added in Synapse v1.49.0. + """ await self._clock.sleep(seconds) @@ -1435,6 +1438,8 @@ class ModuleApi: """Generates list of monthly active users and their services. Please see corresponding storage docstring for more details. + Added in Synapse v1.61.0. + Arguments: start_timestamp: If specified, only include users that were first active at or after this point