Skip to content

Commit e706ebb

Browse files
waprinjmdobry
authored andcommitted
Add region tags for writing timeseries (#298)
1 parent 4e82315 commit e706ebb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

monitoring/create_custom_metric.js

+2
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)