diff options
Diffstat (limited to 'gitlab/v4/objects')
| -rw-r--r-- | gitlab/v4/objects/statistics.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gitlab/v4/objects/statistics.py b/gitlab/v4/objects/statistics.py index 1de963e..ce4dc3a 100644 --- a/gitlab/v4/objects/statistics.py +++ b/gitlab/v4/objects/statistics.py @@ -13,6 +13,8 @@ __all__ = [ "IssuesStatisticsManager", "ProjectIssuesStatistics", "ProjectIssuesStatisticsManager", + "ApplicationStatistics", + "ApplicationStatisticsManager", ] @@ -71,3 +73,15 @@ class ProjectIssuesStatisticsManager(GetWithoutIdMixin, RESTManager): def get(self, **kwargs: Any) -> ProjectIssuesStatistics: return cast(ProjectIssuesStatistics, super().get(**kwargs)) + + +class ApplicationStatistics(RESTObject): + _id_attr = None + + +class ApplicationStatisticsManager(GetWithoutIdMixin, RESTManager): + _path = "/application/statistics" + _obj_cls = ApplicationStatistics + + def get(self, **kwargs: Any) -> ApplicationStatistics: + return cast(ApplicationStatistics, super().get(**kwargs)) |
