How to trigger Slack notifications as an Action in Great Expectations

To Nha Notes | Aug. 23, 2022, 10:04 p.m.

Webhook config

action_list:
    #--------------------------------
    # here is what you will be adding
    #--------------------------------
    - name: send_slack_notification_on_validation_result # name can be set to any value
      action:
        class_name: SlackNotificationAction
        # put the actual webhook URL in the uncommitted/config_variables.yml file
        slack_webhook: ${validation_notification_slack_webhook}
        notify_on: all # possible values: "all", "failure", "success"
        notify_with: # optional list containing the DataDocs sites to include in the notification. Defaults to including links to all configured sites.
        renderer:
          module_name: great_expectations.render.renderer.slack_renderer
          class_name: SlackRenderer

 

References

https://docs.greatexpectations.io/docs/guides/validation/validation_actions/how_to_trigger_slack_notifications_as_a_validation_action/

https://great-expectations.readthedocs.io/en/0.13.13/guides/how_to_guides/validation/how_to_trigger_slack_notifications_as_a_validation_action.html

https://great-expectations.readthedocs.io/en/0.13.12/autoapi/great_expectations/checkpoint/actions/index.html