Skip to content

Commit

Permalink
Set TriggerMode value for aggreagte alert in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
triceras committed Aug 9, 2024
1 parent 0cf6cee commit 1c1c239
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions controllers/suite/resources/humioresources_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3094,9 +3094,9 @@ var _ = Describe("Humio Resources Controllers", func() {
ManagedClusterName: clusterKey.Name,
Name: "example-aggregate-alert",
ViewName: testRepo.Spec.Name,
QueryString: "#repo = humio | error = true",
QueryString: "#repo = humio | error = true | count()",
QueryTimestampType: "EventTimestamp",
TriggerMode: "all",
TriggerMode: "CompleteMode",
SearchIntervalSeconds: 60,
ThrottleTimeSeconds: 120,
ThrottleField: "@timestamp",
Expand Down
4 changes: 2 additions & 2 deletions examples/humioaggregatealert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
queryTimestampType: "EventTimestamp"
viewName: "humio"
throttleTimeSeconds: 60
triggerMode: "all"
triggerMode: "CompleteMode"
searchIntervalSeconds: 60
throttleField: "@timestamp"
description: "This is an example of an aggregate alert"
Expand All @@ -30,7 +30,7 @@ spec:
queryTimestampType: "EventTimestamp"
viewName: "humio"
throttleTimeSeconds: 60
triggerMode: "all"
triggerMode: "CompleteMode"
searchIntervalSeconds: 60
throttleField: "@timestamp"
description: "This is an example of an aggregate alert"
Expand Down

0 comments on commit 1c1c239

Please sign in to comment.