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 {
229229 *
230230 * @throws IOException On network error.
231231 */
232+ // [START write_timeseries]
232233 void writeCustomMetricTimeseriesValue () throws IOException {
233234 Map <String , String > metricLabel = ImmutableMap .of (
234235 "environment" , "STAGING"
@@ -264,6 +265,7 @@ void writeCustomMetricTimeseriesValue() throws IOException {
264265 timeSeriesRequest .setTimeSeries (Lists .<TimeSeries >newArrayList (timeSeries ));
265266 monitoringService .projects ().timeSeries ().create (projectResource , timeSeriesRequest ).execute ();
266267 }
268+ // [END write_timeseries]
267269
268270 /**
269271 * 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