Skip to content

Commit

Permalink
test: add resource type filter to alerts test (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored and Ace Nassri committed Nov 10, 2022
1 parent 9815f9a commit cba541f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monitoring/snippets/system-test/alerts.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test.before(async () => {
{
displayName: 'Condition 1',
conditionAbsent: {
filter: `metric.type = "cloudfunctions.googleapis.com/function/execution_count"`,
filter: `resource.type = "cloud_function" AND metric.type = "cloudfunctions.googleapis.com/function/execution_count"`,
aggregations: [
{
alignmentPeriod: {
Expand Down Expand Up @@ -75,7 +75,7 @@ test.before(async () => {
{
displayName: 'Condition 2',
conditionAbsent: {
filter: `metric.type = "cloudfunctions.googleapis.com/function/execution_count"`,
filter: `resource.type = "cloud_function" AND metric.type = "cloudfunctions.googleapis.com/function/execution_count"`,
aggregations: [
{
alignmentPeriod: {
Expand Down

0 comments on commit cba541f

Please sign in to comment.