From 8fcd083da2e03e7cec8fd322835ff3e49df1eaee Mon Sep 17 00:00:00 2001 From: Syed Ashrafulla Date: Mon, 21 Dec 2020 19:21:33 -0500 Subject: [PATCH] fix: update alert policies one at a time because (concurrent updates are not supported) (#507) --- packages/google-cloud-monitoring/samples/quickstart.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/google-cloud-monitoring/samples/quickstart.js b/packages/google-cloud-monitoring/samples/quickstart.js index 1be7d2e1822..b7194768692 100644 --- a/packages/google-cloud-monitoring/samples/quickstart.js +++ b/packages/google-cloud-monitoring/samples/quickstart.js @@ -20,7 +20,10 @@ const monitoring = require('@google-cloud/monitoring'); async function quickstart() { // Your Google Cloud Platform project ID - const projectId = process.env.GCLOUD_PROJECT || 'YOUR_PROJECT_ID'; + const projectId = + process.env.GCLOUD_PROJECT || + process.env.GOOGLE_CLOUD_PROJECT || + 'YOUR_PROJECT_ID'; // Creates a client const client = new monitoring.MetricServiceClient();