Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
Fix client instantiation [(#1396)](GoogleCloudPlatform/python-docs-sa…
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 389bba1 commit a737469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/snippets/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 a737469

Please sign in to comment.