Skip to content

Conversation

@utkarsharma2
Copy link
Contributor

send_event() uses pdpyras's send_event() method which is more specific to our cases of sending events to pagerduty than generic pdpyras's post() call.

Since the response of the pdpyras's send_event() is only the dedup_key and not the entire response object, which breaks the interface. Add a new method to host the call to pdpyras's send_event() and add a deprecation warning for the create_event() which calls pdpyras's generic post().

related: #31251

@utkarsharma2
Copy link
Contributor Author

@eladkal Please review.

send_event() methods is suppose to replace PagerdutyEventsHook's create_event() method. Within send_event() we are using PagerdutySDK's send_event() instead of post() which is specific to our requirment. Also added deprecation warning in send_event() method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants