summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects
diff options
context:
space:
mode:
authorShreya <a.shreya202@gmail.com>2022-10-29 00:54:57 +0530
committerNejc Habjan <nejc.habjan@siemens.com>2022-11-01 09:59:05 +0100
commit6fcf3b68be095e614b969f5922ad8a67978cd4db (patch)
treee567469a20428d43c9e1d5a6f95f5da19ecb6cb3 /gitlab/v4/objects
parentbd82d745c8ea9ff6ff078a4c961a2d6e64a2f63c (diff)
downloadgitlab-6fcf3b68be095e614b969f5922ad8a67978cd4db.tar.gz
feat(api): add application statistics
Diffstat (limited to 'gitlab/v4/objects')
-rw-r--r--gitlab/v4/objects/statistics.py14
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))