File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
monitoring/v3/src/main/java Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,7 @@ public MetricDescriptor getCustomMetric() throws IOException {
229
229
*
230
230
* @throws IOException On network error.
231
231
*/
232
+ // [START write_timeseries]
232
233
void writeCustomMetricTimeseriesValue () throws IOException {
233
234
Map <String , String > metricLabel = ImmutableMap .of (
234
235
"environment" , "STAGING"
@@ -264,6 +265,7 @@ void writeCustomMetricTimeseriesValue() throws IOException {
264
265
timeSeriesRequest .setTimeSeries (Lists .<TimeSeries >newArrayList (timeSeries ));
265
266
monitoringService .projects ().timeSeries ().create (projectResource , timeSeriesRequest ).execute ();
266
267
}
268
+ // [END write_timeseries]
267
269
268
270
/**
269
271
* Read the TimeSeries value for the custom metrics created within a window of the
You can’t perform that action at this time.
0 commit comments