• /
  • EnglishEspañolFrançais日本語한국어Português
  • ログイン今すぐ開始

この機械翻訳は、参考として提供されています。

英語版と翻訳版に矛盾がある場合は、英語版が優先されます。詳細については、このページを参照してください。

問題を作成する

PagerDutyを解決する

|View as Markdown (English)

前提条件については、PagerDutyインシデントアクションをご覧ください。

PagerDutyを解決する

アクション識別子はpagerduty.incident.resolveです。

ステータスをresolvedに更新し、任意の解決メモを付けてPagerDutyのインシデントを解決します。

次の表は、このアクションで利用可能なすべての入力フィールドについて説明しています。

入力

タイプ

説明

例

token

弦

必須。

PagerDuty APIトークン。

${{ :secrets:pagerdutyApiToken }}

インシデント ID

弦

必須。

解決するインシデントのIDです。

"1234567"

type

弦

必須。

"incident"

である必要があります。

"incident"

から

弦

オプション。

アカウントトークンでは必須、ユーザートークンでは任意です。リクエストを行うユーザーのメールアドレス。

test@example.com

解決

弦

オプション。

インシデントに解決メモが追加されました。

"System is up and running and incident is resolved"

selectors

リスト

オプション。

出力からフィールドを抽出するためのJQセレクター。

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

次の表は、このアクションによって返されるすべての出力フィールドについて説明しています。

出力

タイプ

説明

success

ブール値

true

成功時は、失敗時は

false

。

response

オブジェクト

status: "resolved"

を伴う解決済みのインシデントオブジェクト。

errorMessage

弦

失敗時のエラーメッセージ。成功した場合は

null

。

次の例では、解決メモを使用して PagerDuty インシデントを解決します。

ワークフローの例

name: resolve-pagerduty-incident
description: Resolve a PagerDuty incident
steps:
- name: pagerduty_incident_resolve_1
type: action
action: pagerduty.incident.resolve
version: 1
inputs:
token: ${{ :secrets:pagerdutyApiToken }}
from: abc@example.com
type: incident
incidentId: Q1234567890
resolution: The incident is resolved and no action is needed
next: end
Copyright © 2026 New Relic株式会社。

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