Skip to content

Commit

Permalink
Fix client instantiation (#1396)
Browse files Browse the repository at this point in the history
  • Loading branch information
campionfellin authored and Jon Wayne Parrott committed Mar 12, 2018
1 parent ee774fc commit d0573d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monitoring/api/v3/api-client/custom_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import random
import time

import list_resources
import googleapiclient.discovery


def format_rfc3339(datetime_instance=None):
Expand Down Expand Up @@ -173,7 +173,7 @@ def main(project_id):
METRIC_KIND = "GAUGE"

project_resource = "projects/{0}".format(project_id)
client = list_resources.get_client()
client = googleapiclient.discovery.build('monitoring', 'v3')
create_custom_metric(client, project_resource,
CUSTOM_METRIC_TYPE, METRIC_KIND)
custom_metric = None
Expand Down

0 comments on commit d0573d7

Please sign in to comment.