Skip to content

Commit

Permalink
Add region tags for writing timeseries (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
waprin authored and jmdobry committed Jan 13, 2017
1 parent e3e028c commit 2bb1b45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions monitoring/snippets/create_custom_metric.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ CustomMetrics.prototype.createCustomMetric = function (client, callback) {
* @param {Object} authClient The authorized Stackdriver Monitoring API client
* @param {Function} callback Callback Function.
*/
// [START write_timeseries]
CustomMetrics.prototype.writeTimeSeriesForCustomMetric =
function (client, callback) {
var monitoring = google.monitoring('v3');
Expand Down Expand Up @@ -153,6 +154,7 @@ CustomMetrics.prototype.writeTimeSeriesForCustomMetric =
callback(null, timeSeries);
});
};
// [END write_timeseries]

/**
* Lists the time series written for the custom metric. The window
Expand Down

0 comments on commit 2bb1b45

Please sign in to comment.