Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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