uranusjr commented on a change in pull request #18784:
URL: https://github.com/apache/airflow/pull/18784#discussion_r723756897
##########
File path: airflow/providers/pagerduty/hooks/pagerduty.py
##########
@@ -26,14 +27,31 @@
class PagerdutyHook(BaseHook):
"""
- Takes both PagerDuty API token directly and connection that has PagerDuty
API token.
+ The PagerdutyHook can be used to interact with both the PagerDuty API and
the PagerDuty Events API.
+ Takes both PagerDuty API token directly and connection that has PagerDuty
API token.
If both supplied, PagerDuty API token will be used.
+ In these cases, the PagerDuty API token refers to an account token:
+
https://support.pagerduty.com/docs/generating-api-keys#generating-a-general-access-rest-api-key
+
https://support.pagerduty.com/docs/generating-api-keys#generating-a-personal-rest-api-key
+
+ In order to send events (with the Pagerduty Events API), you will also
need to specify the
+ routing_key in the `extra` field
Review comment:
```suggestion
routing_key in the ``extra`` field
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]