You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: monitoring/snippets/README.md
+19-19
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ Before running the samples, make sure you've followed the steps outlined in
51
51
52
52
### Alerts.backup Policies
53
53
54
-
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/master/samples/alerts.backupPolicies.js).
54
+
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/main/samples/alerts.backupPolicies.js).
55
55
56
56
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/alerts.backupPolicies.js,samples/README.md)
57
57
@@ -68,7 +68,7 @@ __Usage:__
68
68
69
69
### Alerts.delete Channels
70
70
71
-
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/master/samples/alerts.deleteChannels.js).
71
+
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/main/samples/alerts.deleteChannels.js).
72
72
73
73
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/alerts.deleteChannels.js,samples/README.md)
74
74
@@ -85,7 +85,7 @@ __Usage:__
85
85
86
86
### Alerts.enable Policies
87
87
88
-
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/master/samples/alerts.enablePolicies.js).
88
+
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/main/samples/alerts.enablePolicies.js).
89
89
90
90
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/alerts.enablePolicies.js,samples/README.md)
91
91
@@ -102,7 +102,7 @@ __Usage:__
102
102
103
103
### Alerts.list Policies
104
104
105
-
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/master/samples/alerts.listPolicies.js).
105
+
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/main/samples/alerts.listPolicies.js).
106
106
107
107
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/alerts.listPolicies.js,samples/README.md)
108
108
@@ -119,7 +119,7 @@ __Usage:__
119
119
120
120
### Alerts.replace Channels
121
121
122
-
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/master/samples/alerts.replaceChannels.js).
122
+
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/main/samples/alerts.replaceChannels.js).
123
123
124
124
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/alerts.replaceChannels.js,samples/README.md)
125
125
@@ -136,7 +136,7 @@ __Usage:__
136
136
137
137
### Alerts.restore Policies
138
138
139
-
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/master/samples/alerts.restorePolicies.js).
139
+
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/main/samples/alerts.restorePolicies.js).
140
140
141
141
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/alerts.restorePolicies.js,samples/README.md)
142
142
@@ -155,7 +155,7 @@ __Usage:__
155
155
156
156
Creates an example 'custom.googleapis.com/stores/daily_sales' custom metric descriptor.
157
157
158
-
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/master/samples/metrics.createDescriptor.js).
158
+
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/main/samples/metrics.createDescriptor.js).
159
159
160
160
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/metrics.createDescriptor.js,samples/README.md)
161
161
@@ -174,7 +174,7 @@ __Usage:__
174
174
175
175
Deletes a custom metric descriptor.
176
176
177
-
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/master/samples/metrics.deleteDescriptor.js).
177
+
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/main/samples/metrics.deleteDescriptor.js).
178
178
179
179
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/metrics.deleteDescriptor.js,samples/README.md)
180
180
@@ -193,7 +193,7 @@ __Usage:__
193
193
194
194
Gets a custom metric descriptor
195
195
196
-
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/master/samples/metrics.getDescriptor.js).
196
+
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/main/samples/metrics.getDescriptor.js).
197
197
198
198
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/metrics.getDescriptor.js,samples/README.md)
199
199
@@ -210,7 +210,7 @@ __Usage:__
210
210
211
211
### Get Monitored Resource Descriptor
212
212
213
-
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/master/samples/metrics.getMonitoredResourceDescriptor.js).
213
+
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/main/samples/metrics.getMonitoredResourceDescriptor.js).
214
214
215
215
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/metrics.getMonitoredResourceDescriptor.js,samples/README.md)
216
216
@@ -227,7 +227,7 @@ __Usage:__
227
227
228
228
### List Metric Descriptors
229
229
230
-
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/master/samples/metrics.listDescriptors.js).
230
+
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/main/samples/metrics.listDescriptors.js).
231
231
232
232
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/metrics.listDescriptors.js,samples/README.md)
233
233
@@ -244,7 +244,7 @@ __Usage:__
244
244
245
245
### List Monitored Resource Descriptors
246
246
247
-
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/master/samples/metrics.listMonitoredResourceDescriptors.js).
247
+
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/main/samples/metrics.listMonitoredResourceDescriptors.js).
248
248
249
249
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/metrics.listMonitoredResourceDescriptors.js,samples/README.md)
250
250
@@ -263,7 +263,7 @@ __Usage:__
263
263
264
264
Aggregates time series data that matches 'compute.googleapis.com/instance/cpu/utilization'.
265
265
266
-
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/master/samples/metrics.readTimeSeriesAggregate.js).
266
+
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/main/samples/metrics.readTimeSeriesAggregate.js).
267
267
268
268
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/metrics.readTimeSeriesAggregate.js,samples/README.md)
269
269
@@ -282,7 +282,7 @@ __Usage:__
282
282
283
283
Reads time series data that matches the given filter.
284
284
285
-
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/master/samples/metrics.readTimeSeriesData.js).
285
+
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/main/samples/metrics.readTimeSeriesData.js).
286
286
287
287
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/metrics.readTimeSeriesData.js,samples/README.md)
288
288
@@ -301,7 +301,7 @@ __Usage:__
301
301
302
302
Reads headers of time series data that matches 'compute.googleapis.com/instance/cpu/utilization'.
303
303
304
-
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/master/samples/metrics.readTimeSeriesFields.js).
304
+
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/main/samples/metrics.readTimeSeriesFields.js).
305
305
306
306
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/metrics.readTimeSeriesFields.js,samples/README.md)
307
307
@@ -320,7 +320,7 @@ __Usage:__
320
320
321
321
Reduces time series data that matches 'compute.googleapis.com/instance/cpu/utilization'.
322
322
323
-
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/master/samples/metrics.readTimeSeriesReduce.js).
323
+
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/main/samples/metrics.readTimeSeriesReduce.js).
324
324
325
325
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/metrics.readTimeSeriesReduce.js,samples/README.md)
326
326
@@ -339,7 +339,7 @@ __Usage:__
339
339
340
340
Writes example time series data to 'custom.googleapis.com/stores/daily_sales'.
341
341
342
-
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/master/samples/metrics.writeTimeSeriesData.js).
342
+
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/main/samples/metrics.writeTimeSeriesData.js).
343
343
344
344
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/metrics.writeTimeSeriesData.js,samples/README.md)
345
345
@@ -356,7 +356,7 @@ __Usage:__
356
356
357
357
### Quickstart
358
358
359
-
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/master/samples/quickstart.js).
359
+
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/main/samples/quickstart.js).
360
360
361
361
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/quickstart.js,samples/README.md)
362
362
@@ -373,7 +373,7 @@ __Usage:__
373
373
374
374
### Uptime
375
375
376
-
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/master/samples/uptime.js).
376
+
View the [source code](https://github.com/googleapis/nodejs-monitoring/blob/main/samples/uptime.js).
377
377
378
378
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-monitoring&page=editor&open_in_editor=samples/uptime.js,samples/README.md)
0 commit comments