8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee774fc commit d0573d7Copy full SHA for d0573d7
monitoring/api/v3/api-client/custom_metric.py
@@ -34,7 +34,7 @@
34
import random
35
import time
36
37
-import list_resources
+import googleapiclient.discovery
38
39
40
def format_rfc3339(datetime_instance=None):
@@ -173,7 +173,7 @@ def main(project_id):
173
METRIC_KIND = "GAUGE"
174
175
project_resource = "projects/{0}".format(project_id)
176
- client = list_resources.get_client()
+ client = googleapiclient.discovery.build('monitoring', 'v3')
177
create_custom_metric(client, project_resource,
178
CUSTOM_METRIC_TYPE, METRIC_KIND)
179
custom_metric = None
0 commit comments