Skip to content

Commit 2bb1b45

Browse files
waprinjmdobry
authored andcommitted
Add region tags for writing timeseries (#298)
1 parent e3e028c commit 2bb1b45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

monitoring/snippets/create_custom_metric.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ CustomMetrics.prototype.createCustomMetric = function (client, callback) {
110110
* @param {Object} authClient The authorized Stackdriver Monitoring API client
111111
* @param {Function} callback Callback Function.
112112
*/
113+
// [START write_timeseries]
113114
CustomMetrics.prototype.writeTimeSeriesForCustomMetric =
114115
function (client, callback) {
115116
var monitoring = google.monitoring('v3');
@@ -153,6 +154,7 @@ CustomMetrics.prototype.writeTimeSeriesForCustomMetric =
153154
callback(null, timeSeries);
154155
});
155156
};
157+
// [END write_timeseries]
156158

157159
/**
158160
* Lists the time series written for the custom metric. The window

0 commit comments

Comments
 (0)