Skip to content

Commit

Permalink
fix: update sample for enabling or disabling a policy (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
fhinkel authored and JustinBeckwith committed Oct 3, 2019
1 parent 9439618 commit ce0d48f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions monitoring/snippets/alerts.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2018, Google, Inc.
* Copyright 2018 Google LLC
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand Down Expand Up @@ -244,10 +244,10 @@ async function enablePolicies(projectId, enabled, filter) {
policies
.map(policy => {
return {
updateMask: {paths: ['disabled']},
updateMask: {paths: ['enabled']},
alertPolicy: {
name: policy.name,
disabled: enabled ? false : true,
enabled: {value: enabled},
},
};
})
Expand Down

0 comments on commit ce0d48f

Please sign in to comment.