Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow convenient filtering of metric descriptors by type prefix. #1751

Merged
merged 1 commit into from
Apr 25, 2016
Merged

Allow convenient filtering of metric descriptors by type prefix. #1751

merged 1 commit into from
Apr 25, 2016

Conversation

rimey
Copy link
Contributor

@rimey rimey commented Apr 25, 2016

@supriyagarg Could you please also take a look at this?

@rimey rimey added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. api: monitoring Issues related to the Cloud Monitoring API. labels Apr 25, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 25, 2016
@supriyagarg
Copy link
Contributor

This PR looks good to me.

PREFIX = 'compute.googleapis.com/'
descriptors = client.list_metric_descriptors(type_prefix=PREFIX)

# There are currently 18 types with this prefix, but that may change.

This comment was marked as spam.

@dhermes
Copy link
Contributor

dhermes commented Apr 25, 2016

LGTM. @rimey Am I good to merge this for you?

@rimey
Copy link
Contributor Author

rimey commented Apr 25, 2016

@dhermes Yes, it's good to go.

@dhermes dhermes merged commit bd96bdc into googleapis:master Apr 25, 2016
@rimey rimey deleted the type-prefix branch April 25, 2016 17:33
@tseaver tseaver mentioned this pull request May 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: monitoring Issues related to the Cloud Monitoring API. cla: yes This human has signed the Contributor License Agreement. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants