AptlyStar

PagerDuty

Manage incidents and on-call schedules with PagerDuty

使用说明

Integrate PagerDuty into your workflow to list, create, and update incidents, add notes, list services, and check on-call schedules.

工具

pagerduty_list_incidents

List incidents from PagerDuty with optional filters.

输入

参数类型必填描述
apiKeystring是PagerDuty REST API Key
statusesstring否Comma-separated statuses to filter (triggered, acknowledged, resolved)
serviceIdsstring否Comma-separated service IDs to filter
sincestring否Start date filter (ISO 8601 format)
untilstring否End date filter (ISO 8601 format)
sortBystring否Sort field (e.g., created_at:desc)
limitstring否Maximum number of results (max 100)

输出

参数类型描述
incidentsarrayArray of incidents
↳ idstringIncident ID
↳ incidentNumbernumberIncident number
↳ titlestringIncident title
↳ statusstringIncident status
↳ urgencystringIncident urgency
↳ createdAtstringCreation timestamp
↳ updatedAtstringLast updated timestamp
↳ serviceNamestringService name
↳ serviceIdstringService ID
↳ assigneeNamestringAssignee name
↳ assigneeIdstringAssignee ID
↳ escalationPolicyNamestringEscalation policy name
↳ htmlUrlstringPagerDuty web URL
totalnumberTotal number of matching incidents
morebooleanWhether more results are available

pagerduty_create_incident

Create a new incident in PagerDuty.

输入

参数类型必填描述
apiKeystring是PagerDuty REST API Key
fromEmailstring是Email address of a valid PagerDuty user
titlestring是Incident title/summary
serviceIdstring是ID of the PagerDuty service
urgencystring否Urgency level (high or low)
bodystring否Detailed description of the incident
escalationPolicyIdstring否Escalation policy ID to assign
assigneeIdstring否User ID to assign the incident to

输出

参数类型描述
idstringCreated incident ID
incidentNumbernumberIncident number
titlestringIncident title
statusstringIncident status
urgencystringIncident urgency
createdAtstringCreation timestamp
serviceNamestringService name
serviceIdstringService ID
htmlUrlstringPagerDuty web URL

pagerduty_update_incident

Update an incident in PagerDuty (acknowledge, resolve, change urgency, etc.).

输入

参数类型必填描述
apiKeystring是PagerDuty REST API Key
fromEmailstring是Email address of a valid PagerDuty user
incidentIdstring是ID of the incident to update
statusstring否New status (acknowledged or resolved)
titlestring否New incident title
urgencystring否New urgency (high or low)
escalationLevelstring否Escalation level to escalate to

输出

参数类型描述
idstringIncident ID
incidentNumbernumberIncident number
titlestringIncident title
statusstringUpdated status
urgencystringUpdated urgency
updatedAtstringLast updated timestamp
htmlUrlstringPagerDuty web URL

pagerduty_add_note

Add a note to an existing PagerDuty incident.

输入

参数类型必填描述
apiKeystring是PagerDuty REST API Key
fromEmailstring是Email address of a valid PagerDuty user
incidentIdstring是ID of the incident to add the note to
contentstring是Note content text

输出

参数类型描述
idstringNote ID
contentstringNote content
createdAtstringCreation timestamp
userNamestringName of the user who created the note

pagerduty_list_services

List services from PagerDuty with optional name filter.

输入

参数类型必填描述
apiKeystring是PagerDuty REST API Key
querystring否Filter services by name
limitstring否Maximum number of results (max 100)

输出

参数类型描述
servicesarrayArray of services
↳ idstringService ID
↳ namestringService name
↳ descriptionstringService description
↳ statusstringService status
↳ escalationPolicyNamestringEscalation policy name
↳ escalationPolicyIdstringEscalation policy ID
↳ createdAtstringCreation timestamp
↳ htmlUrlstringPagerDuty web URL
totalnumberTotal number of matching services
morebooleanWhether more results are available

pagerduty_list_oncalls

List current on-call entries from PagerDuty.

输入

参数类型必填描述
apiKeystring是PagerDuty REST API Key
escalationPolicyIdsstring否Comma-separated escalation policy IDs to filter
scheduleIdsstring否Comma-separated schedule IDs to filter
sincestring否Start time filter (ISO 8601 format)
untilstring否End time filter (ISO 8601 format)
limitstring否Maximum number of results (max 100)

输出

参数类型描述
oncallsarrayArray of on-call entries
↳ userNamestringOn-call user name
↳ userIdstringOn-call user ID
↳ escalationLevelnumberEscalation level
↳ escalationPolicyNamestringEscalation policy name
↳ escalationPolicyIdstringEscalation policy ID
↳ scheduleNamestringSchedule name
↳ scheduleIdstringSchedule ID
↳ startstringOn-call start time
↳ endstringOn-call end time
totalnumberTotal number of matching on-call entries
morebooleanWhether more results are available

On this page