Skip to content

add call to grab usage summary#155

Merged
FChataigner merged 2 commits intorelease/9.0from
task/public-api-get-global-usage
Jul 26, 2021
Merged

add call to grab usage summary#155
FChataigner merged 2 commits intorelease/9.0from
task/public-api-get-global-usage

Conversation

@FChataigner
Copy link
Contributor

[ch58301]

no helper object, since it wouldn't bring much compared to just accessing fields in the object

@shortcut-integration
Copy link

This pull request has been linked to Clubhouse Story #58301: API to get global usage summary.

"""
Summarize the contents of the instance

:returns: a summary object
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to match the doc of other similar methods, I think we usually say it returns a dict rather than an object.

@FChataigner FChataigner added this to the 9.0.5 milestone Jul 20, 2021
# Monitoring
########################################################

def get_global_usage_summary(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From Marc's comment (https://github.com/dataiku/dip/pull/13032#discussion_r672957865), having an option to request the metrics per project would be cool

@FChataigner FChataigner merged commit 83d26e5 into release/9.0 Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants