Skip to content

Commit

Permalink
Merge pull request #226 from GoogleCloudPlatform/metrictype
Browse files Browse the repository at this point in the history
Fix metric.name
  • Loading branch information
waprin committed Mar 17, 2016
2 parents f97f8f1 + 3fb8c06 commit 0d19fdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monitoring/api/v3/list_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def list_metric_descriptors(client, project_resource, metric):
"""
request = client.projects().metricDescriptors().list(
name=project_resource,
filter='metric.name="{}"'.format(metric))
filter='metric.type="{}"'.format(metric))
response = request.execute()
print(
'list_metric_descriptors response:\n{}'.format(
Expand All @@ -87,7 +87,7 @@ def list_timeseries(client, project_resource, metric):
"""
request = client.projects().timeSeries().list(
name=project_resource,
filter='metric.name="{}"'.format(metric),
filter='metric.type="{}"'.format(metric),
pageSize=3,
interval_startTime=get_start_time(),
interval_endTime=get_end_time())
Expand Down

0 comments on commit 0d19fdb

Please sign in to comment.