Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add region tags for writing time series #757

Merged
merged 1 commit into from
Jan 12, 2017
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
2 changes: 2 additions & 0 deletions monitoring/api/v3/custom_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def get_custom_data_point():
return length


# [START write_timeseries]
def write_timeseries_value(client, project_resource,
custom_metric_type, instance_id, metric_kind):
"""Write the custom metric obtained by get_custom_data_point at a point in
Expand Down Expand Up @@ -136,6 +137,7 @@ def write_timeseries_value(client, project_resource,
request = client.projects().timeSeries().create(
name=project_resource, body={"timeSeries": [timeseries_data]})
request.execute()
# [END write_timeseries]


def read_timeseries(client, project_resource, custom_metric_type):
Expand Down