• /
  • EnglishEspañolFrançais日本語한국어Português
  • 로그인지금 시작하기

사용자의 편의를 위해 제공되는 기계 번역입니다.

영문본과 번역본이 일치하지 않는 경우 영문본이 우선합니다. 보다 자세한 내용은 이 페이지를 방문하시기 바랍니다.

문제 신고

PagerDuty 인시던트 생성

|View as Markdown (English)

전제 조건은 PagerDuty 인시던트 작업을 참조하십시오.

PagerDuty 인시던트 생성

작업 식별자는 pagerduty.incident.create입니다.

지정된 서비스, 제목, 우선순위 및 기타 선택적 속성을 사용하여 PagerDuty에서 새로운 인시던트를 생성합니다.

다음 표는 이 작업에 사용할 수 있는 모든 입력 필드를 설명합니다.

입력

유형

설명

예시

token

문자열

필수 항목입니다.

PagerDuty API 토큰.

${{ :secrets:pagerdutyApiToken }}

type

문자열

필수의.

"incident"

이어야 합니다.

"Incident"

title

문자열

필수 항목입니다.

인시던트 제목.

"Test Incident"

서비스

지도

필수 항목입니다.

id

및

type

필드가 있는 서비스 참조 객체.

{"id": "PV5L94Z", "type": "service_reference"}

에서

문자열

선택 사항.

계정 토큰의 경우 필수이며, 사용자 토큰의 경우 선택 사항입니다. 요청을 하는 사용자의 이메일 주소입니다.

abc@example.com

우선 순위

지도

선택 사항.

우선순위 참조.

{"id": "P53ZZH5", "type": "priority_reference"}

긴급

문자열

선택 사항.

인시던트 긴급도.

"low"

body

지도

선택 사항.

type

및

details

이 포함된 인시던트 본문.

{"type": "incident_body", "details": "Incident details here."}

incidentKey

문자열

선택 사항.

중복 제거 키.

"1234-5678-919123"

과제

목록

선택 사항.

담당자 객체 목록입니다.

[{"assignee": {"id": "P11223", "type": "user_reference"}}]

incidentType

문자열

선택 사항.

인시던트 유형 이름.

{"name": "major_incident"}

escalationPolicy

지도

선택 사항.

에스컬레이션 정책 참조.

{"id": "PT20YPA", "type": "escalation_policy_reference"}

conferenceBridge

지도

선택 사항.

컨퍼런스 브리지 세부 정보.

{"conference_number": "+1 1234567890", "conference_url": "https://someUrl.com"}

selectors

목록

선택 사항.

출력에서 필드를 추출하기 위한 JQ 선택자입니다.

[{"name": "incidentId", "expression": ".responseBody | fromjson.incident.id"}]

다음 표는 이 작업에서 반환된 모든 출력 필드를 설명합니다.

산출

유형

설명

success

부울

true

성공 시, 실패 시

false

입니다.

response

물체

생성된 인시던트 객체. 주요 필드:

id

,

type

,

title

,

status

.

errorMessage

문자열

실패 시 오류 메시지. 성공 시

null

입니다.

다음 예제는 서비스, 긴급도, 본문 및 에스컬레이션 정책을 사용하여 새로운 PagerDuty 인시던트를 생성합니다.

워크플로 예

name: create-pagerduty-incident
description: Create a new PagerDuty incident
steps:
- name: create
type: action
action: pagerduty.incident.create
version: 1
inputs:
token: ${{ :secrets:pagerdutyApiToken }}
type: incident
title: Test incident
service:
id: P123456
type: service_reference
urgency: low
body:
type: incident_body
details: Test Body
incidentKey: a12345-b678910-c111213
escalationPolicy:
id: P54321
type: escalation_policy_reference
selectors:
- name: incidentId
expression: .responseBody | fromjson.incident.id
next: end
Copyright © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.