Components
PagerDuty
With PagerDuty, you can get real-time alerts, manage on-call schedules, and automate parts of your incident response process.
Categories: Project Management
Type: pagerDuty/v1
Connections
Version: 1
custom
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
api_key | API Key | STRING | Enter your API Key. Can be found in Integrations -> API Access Keys. | true |
Actions
Create Incident
Name: createIncident
Create an incident synchronously without a corresponding event from a monitoring service.
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
From | From | STRING | The email address of a valid user associated with the account making the request. | true |
title | Title | STRING | A short description of the nature, symptoms, cause, or effect of the incident. | true |
service | Service | STRING | The incident will be created on this service. | true |
priority | Priority | STRING | Priority of the incident. Priorities must be enabled in your PagerDuty account in order to use them. | false |
urgency | Urgency | STRING Optionshigh, low | The urgency level of this incident. | false |
details | Details | STRING | Details about the incident. | false |
assignments | Assignments | ARRAY Items[STRING($assignee)] | Assign the incident to these assignees. | false |
incident_key | Incident Key | STRING | A string which identifies the incident. | false |
incident_type | Incident Type | STRING | Incident type. | false |
escalation_policy | Escalation Policy | STRING | Delegate this incident to the specified escalation policy. Cannot be specified if an assignee is given. | false |
Example JSON Structure
{
"label" : "Create Incident",
"name" : "createIncident",
"parameters" : {
"From" : "",
"title" : "",
"service" : "",
"priority" : "",
"urgency" : "",
"details" : "",
"assignments" : [ "" ],
"incident_key" : "",
"incident_type" : "",
"escalation_policy" : ""
},
"type" : "pagerDuty/v1/createIncident"
}
Output
Type: OBJECT
Properties
Name | Type | Description |
---|---|---|
incident | OBJECT Properties{INTEGER(incident_number), STRING(title), STRING(description), STRING(created_at), STRING(updated_at), STRING(status), STRING(incident_key), {STRING(id), STRING(type), STRING(summary), STRING(self), STRING(html_url)}(service), [{STRING(at), {STRING(id), STRING(type), STRING(summary), STRING(self), STRING(html_url)}(assignee)}](assignments), STRING(assigned_via), STRING(last_status_change_at), STRING(resolved_at), {STRING(id), STRING(type), STRING(summary), STRING(self), STRING(html_url)}(first_trigger_log_entry), {INTEGER(all), INTEGER(triggered), INTEGER(resolved)}(alert_counts), BOOLEAN(is_mergeable), {STRING(name)}(incident_type), {STRING(id), STRING(type), STRING(summary), STRING(self), STRING(html_url)}(escalation_policy), [](teams), [{STRING(id), STRING(type), STRING(summary), STRING(self), STRING(html_url)}($service)](impacted_services), [](pending_actions), [](acknowledgements), STRING(basic_alert_grouping), STRING(alert_grouping), {STRING(id), STRING(type), STRING(summary), STRING(self), STRING(html_url)}(last_status_changed_by), {STRING(id), STRING(type), STRING(summary), STRING(self), STRING(html_url), STRING(account_id), STRING(color), STRING(created_at), STRING(description), STRING(name), INTEGER(order), INTEGER(schema_version), STRING(updated_at)}(priority), [](incidents_responders), [](responder_requests), [](subscriber_requests), STRING(urgency), STRING(id), STRING(type), STRING(summary), STRING(self), STRING(html_url)} |
Output Example
{
"incident" : {
"incident_number" : 1,
"title" : "",
"description" : "",
"created_at" : "",
"updated_at" : "",
"status" : "",
"incident_key" : "",
"service" : {
"id" : "",
"type" : "",
"summary" : "",
"self" : "",
"html_url" : ""
},
"assignments" : [ {
"at" : "",
"assignee" : {
"id" : "",
"type" : "",
"summary" : "",
"self" : "",
"html_url" : ""
}
} ],
"assigned_via" : "",
"last_status_change_at" : "",
"resolved_at" : "",
"first_trigger_log_entry" : {
"id" : "",
"type" : "",
"summary" : "",
"self" : "",
"html_url" : ""
},
"alert_counts" : {
"all" : 1,
"triggered" : 1,
"resolved" : 1
},
"is_mergeable" : false,
"incident_type" : {
"name" : ""
},
"escalation_policy" : {
"id" : "",
"type" : "",
"summary" : "",
"self" : "",
"html_url" : ""
},
"teams" : [ ],
"impacted_services" : [ {
"id" : "",
"type" : "",
"summary" : "",
"self" : "",
"html_url" : ""
} ],
"pending_actions" : [ ],
"acknowledgements" : [ ],
"basic_alert_grouping" : "",
"alert_grouping" : "",
"last_status_changed_by" : {
"id" : "",
"type" : "",
"summary" : "",
"self" : "",
"html_url" : ""
},
"priority" : {
"id" : "",
"type" : "",
"summary" : "",
"self" : "",
"html_url" : "",
"account_id" : "",
"color" : "",
"created_at" : "",
"description" : "",
"name" : "",
"order" : 1,
"schema_version" : 1,
"updated_at" : ""
},
"incidents_responders" : [ ],
"responder_requests" : [ ],
"subscriber_requests" : [ ],
"urgency" : "",
"id" : "",
"type" : "",
"summary" : "",
"self" : "",
"html_url" : ""
}
}
Create Incident Note
Name: createIncidentNote
Create a new note for the specified incident.
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
From | From | STRING | The email address of a valid user associated with the account making the request. | true |
incidentId | Incident ID | STRING | ID of the incident to which the note will be added. | true |
content | Content | STRING | Content of the incident note. | true |
Example JSON Structure
{
"label" : "Create Incident Note",
"name" : "createIncidentNote",
"parameters" : {
"From" : "",
"incidentId" : "",
"content" : ""
},
"type" : "pagerDuty/v1/createIncidentNote"
}
Output
Type: OBJECT
Properties
Name | Type | Description |
---|---|---|
note | OBJECT Properties{STRING(id), {STRING(type), STRING(id), STRING(summary), STRING(self), STRING(html_url)}(user), {STRING(type), STRING(id), STRING(summary), STRING(self), STRING(html_url)}(channel), STRING(content), STRING(created_at)} |
Output Example
{
"note" : {
"id" : "",
"user" : {
"type" : "",
"id" : "",
"summary" : "",
"self" : "",
"html_url" : ""
},
"channel" : {
"type" : "",
"id" : "",
"summary" : "",
"self" : "",
"html_url" : ""
},
"content" : "",
"created_at" : ""
}
}
Update Incident
Name: updateIncident
Update selected incident.
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
From | From | STRING | The email address of a valid user associated with the account making the request. | true |
incidentId | Incident ID | STRING | ID of the incident to which the note will be added. | true |
incident_type | Incident Type | STRING | Incident type. | true |
status | Status | STRING Optionsresolved, acknowledged | The new status of the incident. | false |
assignments | Assignments | ARRAY Items[STRING($assignee)] | Assign the incident to these assignees. | false |
resolution | Resolution | STRING | The resolution for this incident. | false |
title | Title | STRING | A short description of the nature, symptoms, cause, or effect of the incident. | false |
priority | Priority | STRING | Priority of the incident. Priorities must be enabled in your PagerDuty account in order to use them. | false |
urgency | Urgency | STRING Optionshigh, low | The urgency level of this incident. | false |
escalation_policy | Escalation Policy | STRING | Delegate this incident to the specified escalation policy. Cannot be specified if an assignee is given. | false |
Example JSON Structure
{
"label" : "Update Incident",
"name" : "updateIncident",
"parameters" : {
"From" : "",
"incidentId" : "",
"incident_type" : "",
"status" : "",
"assignments" : [ "" ],
"resolution" : "",
"title" : "",
"priority" : "",
"urgency" : "",
"escalation_policy" : ""
},
"type" : "pagerDuty/v1/updateIncident"
}
Output
Type: OBJECT
Properties
Name | Type | Description |
---|---|---|
incident | OBJECT Properties{INTEGER(incident_number), STRING(title), STRING(description), STRING(created_at), STRING(updated_at), STRING(status), STRING(incident_key), {STRING(id), STRING(type), STRING(summary), STRING(self), STRING(html_url)}(service), [{STRING(at), {STRING(id), STRING(type), STRING(summary), STRING(self), STRING(html_url)}(assignee)}](assignments), STRING(assigned_via), STRING(last_status_change_at), STRING(resolved_at), {STRING(id), STRING(type), STRING(summary), STRING(self), STRING(html_url)}(first_trigger_log_entry), {INTEGER(all), INTEGER(triggered), INTEGER(resolved)}(alert_counts), BOOLEAN(is_mergeable), {STRING(name)}(incident_type), {STRING(id), STRING(type), STRING(summary), STRING(self), STRING(html_url)}(escalation_policy), [](teams), [{STRING(id), STRING(type), STRING(summary), STRING(self), STRING(html_url)}($service)](impacted_services), [](pending_actions), [](acknowledgements), STRING(basic_alert_grouping), STRING(alert_grouping), {STRING(id), STRING(type), STRING(summary), STRING(self), STRING(html_url)}(last_status_changed_by), {STRING(id), STRING(type), STRING(summary), STRING(self), STRING(html_url), STRING(account_id), STRING(color), STRING(created_at), STRING(description), STRING(name), INTEGER(order), INTEGER(schema_version), STRING(updated_at)}(priority), [](incidents_responders), [](responder_requests), [](subscriber_requests), STRING(urgency), STRING(id), STRING(type), STRING(summary), STRING(self), STRING(html_url)} |
Output Example
{
"incident" : {
"incident_number" : 1,
"title" : "",
"description" : "",
"created_at" : "",
"updated_at" : "",
"status" : "",
"incident_key" : "",
"service" : {
"id" : "",
"type" : "",
"summary" : "",
"self" : "",
"html_url" : ""
},
"assignments" : [ {
"at" : "",
"assignee" : {
"id" : "",
"type" : "",
"summary" : "",
"self" : "",
"html_url" : ""
}
} ],
"assigned_via" : "",
"last_status_change_at" : "",
"resolved_at" : "",
"first_trigger_log_entry" : {
"id" : "",
"type" : "",
"summary" : "",
"self" : "",
"html_url" : ""
},
"alert_counts" : {
"all" : 1,
"triggered" : 1,
"resolved" : 1
},
"is_mergeable" : false,
"incident_type" : {
"name" : ""
},
"escalation_policy" : {
"id" : "",
"type" : "",
"summary" : "",
"self" : "",
"html_url" : ""
},
"teams" : [ ],
"impacted_services" : [ {
"id" : "",
"type" : "",
"summary" : "",
"self" : "",
"html_url" : ""
} ],
"pending_actions" : [ ],
"acknowledgements" : [ ],
"basic_alert_grouping" : "",
"alert_grouping" : "",
"last_status_changed_by" : {
"id" : "",
"type" : "",
"summary" : "",
"self" : "",
"html_url" : ""
},
"priority" : {
"id" : "",
"type" : "",
"summary" : "",
"self" : "",
"html_url" : "",
"account_id" : "",
"color" : "",
"created_at" : "",
"description" : "",
"name" : "",
"order" : 1,
"schema_version" : 1,
"updated_at" : ""
},
"incidents_responders" : [ ],
"responder_requests" : [ ],
"subscriber_requests" : [ ],
"urgency" : "",
"id" : "",
"type" : "",
"summary" : "",
"self" : "",
"html_url" : ""
}
}
Triggers
New or Updated Incident Trigger
Name: newOrUpdatedIncident
Triggers incident is created or updated.
Type: DYNAMIC_WEBHOOK
Properties
Name | Label | Type | Description | Required |
---|---|---|---|---|
service | Service | STRING | The service that will be watched for the trigger event. | true |
Output
Type: OBJECT
Properties
Name | Type | Description |
---|---|---|
id | STRING | ID of the incident that triggered the trigger. |
event_type | STRING | Type of the event that triggered the trigger. |
resource_type | STRING | Type of the resource that triggered the trigger. |
occurred_at | STRING | When did the event occurred. |
agent | OBJECT Properties{STRING(type), STRING(id), STRING(summary), STRING(self), STRING(html_url)} | Agent that triggered the event. |
client | OBJECT Properties{} | Client on which event occurred. |
data | OBJECT Properties{STRING(id), STRING(type), STRING(self), STRING(html_url), STRING(number), STRING(status), STRING(incident_key), STRING(created_at), STRING(title), {STRING(id), STRING(type), STRING(summary), STRING(self), STRING(html_url)}(service), [{STRING(at), {STRING(id), STRING(type), STRING(summary), STRING(self), STRING(html_url)}(assignee)}](assignees), {STRING(id), STRING(type), STRING(summary), STRING(self), STRING(html_url)}(escalation_policy), [](teams), STRING(priority), STRING(urgency), STRING(conference_bridge), STRING(resolve_reason), {STRING(name)}(incident_type)} | Data of the object that triggered the trigger. |
JSON Example
{
"label" : "New or Updated Incident Trigger",
"name" : "newOrUpdatedIncident",
"parameters" : {
"service" : ""
},
"type" : "pagerDuty/v1/newOrUpdatedIncident"
}