samples
turbot/flowpipe-samples/notify-on-call-engineer-with-pagerduty
Get Involved
Version
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_cred | string | Yes | Name for PagerDuty credentials to use. If not provided, the default credentials will be used. | default |
slack_cred | string | Yes | Name for Slack credentials to use. If not provided, the default credentials will be used. | default |
sendgrid_cred | string | Yes | Name for SendGrid credentials to use. If not provided, the default credentials will be used. | 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.