Skip to content

Commit

Permalink
remove event bulking pagerduty
Browse files Browse the repository at this point in the history
  • Loading branch information
tanguyvda committed Oct 7, 2021
1 parent c57efd1 commit 1699ad9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions centreon-certified/pagerduty/pagerduty-events-apiv2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ function EventQueue.new(params)
self.fail = true
end

-- force buffer size to 1 to avoid breaking the communication with pagerduty (can't send more than one event at once)
params.max_buffer_size = 1

-- overriding default parameters for this stream connector if the default values doesn't suit the basic needs
self.sc_params.params.pdy_centreon_url = params.pdy_centreon_url or "http://set.pdy_centreon_url.parameter"
self.sc_params.params.http_server_url = params.http_server_url or "https://events.pagerduty.com/v2/enqueue"
Expand Down

0 comments on commit 1699ad9

Please sign in to comment.