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

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_credstringYesName for PagerDuty credentials to use. If not provided, the default credentials will be used.default
slack_credstringYesName for Slack credentials to use. If not provided, the default credentials will be used.default
sendgrid_credstringYesName for SendGrid credentials to use. If not provided, the default credentials will be used.default
slack_messagestringYesThe formatted text of the message to be published.Notification to the on-call Engineers
slack_channelstringYesChannel, private group, or IM channel to send message to. Can be an encoded ID, or a name.-
email_subjectstringYesThe global or 'message level' subject of your email. This may be overridden by subject lines set in personalizations.-
email_textstringYesThe body of the email.-
fromstringYesThe '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.