Skip to content

Commit 83d26e5

Browse files
authored
Merge pull request #155 from dataiku/task/public-api-get-global-usage
add call to grab usage summary
2 parents d32d73e + 84f272d commit 83d26e5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

dataikuapi/dssclient.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,19 @@ def log_custom_audit(self, custom_type, custom_params=None):
743743
body = custom_params)
744744

745745
########################################################
746+
# Monitoring
747+
########################################################
748+
749+
def get_global_usage_summary(self, with_per_project=False):
750+
"""
751+
Summarize the contents of the instance
752+
753+
:returns: a summary object
754+
"""
755+
return self._perform_json(
756+
"GET", "/admin/monitoring/global-usage-summary", params={'withPerProject':with_per_project})
757+
758+
########################################################
746759
# Variables
747760
########################################################
748761

0 commit comments

Comments
 (0)