From 6fcf3b68be095e614b969f5922ad8a67978cd4db Mon Sep 17 00:00:00 2001 From: Shreya Date: Sat, 29 Oct 2022 00:54:57 +0530 Subject: feat(api): add application statistics --- gitlab/v4/objects/statistics.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'gitlab/v4/objects') 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)) -- cgit v1.2.1