sample
turbot/flowpipe-samples/notify-on-call-engineer-with-pagerduty
OverviewPipelines
0
Triggers
0
Variables
GitHub

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

NameTypeRequiredDescriptionDefault
pagerduty_conn
connection.pagerduty
YesName of PagerDuty connection to use. If not provided, the default PagerDuty connection will be used.connection.pagerduty.default
slack_conn
connection.slack
YesName of Slack connection to use. If not provided, the default Slack connection will be used.connection.slack.default
sendgrid_conn
connection.sendgrid
YesName of SendGrid connection to use. If not provided, the default SendGrid connection will be used.connection.sendgrid.default
slack_message
string
YesThe formatted text of the message to be published.Notification to the on-call Engineers
slack_channel
string
YesChannel, private group, or IM channel to send message to. Can be an encoded ID, or a name.-
email_subject
string
YesThe global or 'message level' subject of your email. This may be overridden by subject lines set in personalizations.-
email_text
string
YesThe body of the email.-
from
string
YesThe '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