Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0d19fdb

Browse filesBrowse files
committed
Merge pull request GoogleCloudPlatform#226 from GoogleCloudPlatform/metrictype
Fix metric.name
2 parents f97f8f1 + 3fb8c06 commit 0d19fdb
Copy full SHA for 0d19fdb

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎monitoring/api/v3/list_resources.py

Copy file name to clipboardExpand all lines: monitoring/api/v3/list_resources.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def list_metric_descriptors(client, project_resource, metric):
7474
"""
7575
request = client.projects().metricDescriptors().list(
7676
name=project_resource,
77-
filter='metric.name="{}"'.format(metric))
77+
filter='metric.type="{}"'.format(metric))
7878
response = request.execute()
7979
print(
8080
'list_metric_descriptors response:\n{}'.format(
@@ -87,7 +87,7 @@ def list_timeseries(client, project_resource, metric):
8787
"""
8888
request = client.projects().timeSeries().list(
8989
name=project_resource,
90-
filter='metric.name="{}"'.format(metric),
90+
filter='metric.type="{}"'.format(metric),
9191
pageSize=3,
9292
interval_startTime=get_start_time(),
9393
interval_endTime=get_end_time())

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.