• /
  • 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株式会社。

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