Skip to content

Commit

Permalink
fix: fix as_dataframe (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 authored and dandhlee committed Nov 9, 2022
1 parent 6765b35 commit 79607c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions monitoring/snippets/v3/cloud-client/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import time
import uuid

from google.api import metric_pb2 as ga_metric
from google.api import label_pb2 as ga_label
from google.api import metric_pb2 as ga_metric
from google.cloud import monitoring_v3


Expand All @@ -35,13 +35,13 @@ def create_metric_descriptor(project_id):
descriptor.metric_kind = ga_metric.MetricDescriptor.MetricKind.GAUGE
descriptor.value_type = ga_metric.MetricDescriptor.ValueType.DOUBLE
descriptor.description = "This is a simple example of a custom metric."

labels = ga_label.LabelDescriptor()
labels.key = "TestLabel"
labels.value_type = ga_label.LabelDescriptor.ValueType.STRING
labels.description = "This is a test label"
descriptor.labels.append(labels)

descriptor = client.create_metric_descriptor(
name=project_name, metric_descriptor=descriptor
)
Expand Down

0 comments on commit 79607c6

Please sign in to comment.