sample
turbot/flowpipe-samples/notify-on-call-engineer-with-pagerduty
Get Involved
Version
Pipeline: Notify On-Call Engineer With PagerDuty
Allows anyone to see who is on-call for a particular escalation policy, send them an email, notify a Slack channel.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run notify_on_call_engineer_with_pagerduty.pipeline.notify_on_call_engineer_with_pagerduty \ --arg 'slack_channel=<string>' \ --arg 'email_subject=<string>' \ --arg 'email_text=<string>' \ --arg 'from=<string>'
Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = notify_on_call_engineer_with_pagerduty.pipeline.notify_on_call_engineer_with_pagerduty args = { slack_channel = <string> email_subject = <string> email_text = <string> from = <string> }}
Params
Name | Type | Required | Description | Default |
---|---|---|---|---|
pagerduty_conn | connection.pagerduty | Yes | Name of PagerDuty connection to use. If not provided, the default PagerDuty connection will be used. | connection.pagerduty.default |
slack_conn | connection.slack | Yes | Name of Slack connection to use. If not provided, the default Slack connection will be used. | connection.slack.default |
sendgrid_conn | connection.sendgrid | Yes | Name of SendGrid connection to use. If not provided, the default SendGrid connection will be used. | connection.sendgrid.default |
slack_message | string | Yes | The formatted text of the message to be published. | Notification to the on-call Engineers |
slack_channel | string | Yes | Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name. | - |
email_subject | string | Yes | The global or 'message level' subject of your email. This may be overridden by subject lines set in personalizations. | - |
email_text | string | Yes | The body of the email. | - |
from | string | Yes | The 'From' email address used to deliver the message. This address should be a verified sender in your Twilio SendGrid account. | - |
Outputs
This pipeline has no outputs.
Tags
recommended = true