utkarsharma2 opened a new pull request, #31207:
URL: https://github.com/apache/airflow/pull/31207

   Added notifier pagerduty.
   
   Example usage - 
   ```
   BashOperator(
               task_id="mytask",
               on_failure_callback=[
                   send_pagerduty_notification(
                       summary="DISK at 99%",
                       severity="critical",
                       source="database",
                       dedup_key="srv0555/mysql",
                       custom_details={"free space": "1%", "ping time": 
"1500ms", "load avg": 0.75},
                       group="prod-datapipe",
                       component="database",
                       class_type="disk",
                       images=[
                           {
                               "src": "https://chart.googleapis.com/chart";,
                               "href": "https://google.com";,
                               "alt": "An example link with an image",
                           }
                       ],
                       links=[{"href": "http://pagerduty.example.com";, "text": 
"An example link."}],
                   )
               ],
               bash_command="fail",
           )
   ```


-- 
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]

Reply via email to