library
turbot/pagerduty
Get Involved
Version
Pipeline: Create Incident
Create an incident.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run pagerduty.pipeline.create_incident \ --arg 'service_id=<string>' \ --arg 'service_type=<string>' \ --arg 'title=<string>' \ --arg 'from=<string>'
Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = pagerduty.pipeline.create_incident args = { service_id = <string> service_type = <string> title = <string> from = <string> }}
Params
Name | Type | Required | Description | Default |
---|---|---|---|---|
conn | connection.pagerduty | Yes | Name of PagerDuty connection to use. If not provided, the default PagerDuty connection will be used. | connection.pagerduty.default |
service_id | string | Yes | The ID of the service. | - |
service_type | string | Yes | The type of the service. | - |
title | string | Yes | A succinct description of the nature, symptoms, cause, or effect of the incident. | - |
from | string | Yes | The email address of a valid user associated with the account making the request. | - |
body | string | No | Additional incident details. | - |
body_type | string | No | The type of the body. | - |
conference_number | string | No | The phone number of the conference call for the conference bridge. | - |
conference_url | string | No | An URL for the conference bridge. This could be a link to a web conference or Slack channel. | - |
escalation_policy_id | string | No | The ID of the escalation policy for the incident. | - |
escalation_policy_type | string | No | The type of the escalation policy for the incident. | - |
incident_key | string | No | A string which identifies the incident. Sending subsequent requests referencing the same service and with the same incident_key will result in those requests being rejected if an open incident matches that incident_key. | - |
priority_id | string | No | The ID of the priority of the incident. | - |
priority_type | string | No | The type of the priority of the incident. | - |
urgency | string | No | The urgency of the incident. Allowed values are 'high' and 'low'. | - |
Outputs
Name | Description |
---|---|
incident | The created incident. |
Tags
recommended = true