Skip to content

Commit

Permalink
fix: update alert policies one at a time because (concurrent updates …
Browse files Browse the repository at this point in the history
…are not supported) (#507)
  • Loading branch information
syedashrafulla authored Dec 22, 2020
1 parent f4c4bdc commit 8fcd083
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/google-cloud-monitoring/samples/quickstart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8fcd083

Please sign in to comment.