PagerDuty mustache タグ
PagerDuty は、mustache タグを介してインシデント テンプレートで使用できるデータを Statuspage に送信します。これによって、PagerDuty からインシデントに追加情報を「引用」できるようになります。
Statuspage 内では、PagerDuty mustache タグのサブセットを使用できます。以下の表に、Statuspage によって承認されているタグを示します。
PagerDuty V1 Webhook API から V3 Webhook API への移行
PagerDuty が V1 Webhook API から V3 Webhook API に移行したため、2021 年 11 月 11 日以前に PagerDuty Webhook を設定した既存の Statuspage のお客様は、次の表の [PagerDuty V3 承認済みタグ] 列に記載されていない mustache タグを使用している可能性があります。これらのタグは非推奨の PagerDuty V1 Webhook API からデータを生成しており、アクティブにサポートされなくなりました (日付と詳細については次をご参照ください)。現在、非推奨の mustache タグを使用している場合は、すべてのインシデント テンプレートを更新し、2021 年 12 月 10 日までに承認済みタグに移行してください。
To help with this migration, we have included a list of V1 tags in the Suggested Equivalent V1 Tag column of the table below that are roughly equivalent to V3 tags. The payload returned by PagerDuty V3 webhooks also includes a number of new fields that were not available in V1, and such tags can be added to your Incident Templates. There are a number of V1 tags that do not appear to directly (or at least very closely) map to any V3 tags. If you are using a V1 tag that is not represented in the table below, there may not be a V3 equivalent available. Please refer to their documentation to see if there is a suitable replacement for your needs.
2021 年 11 月 11 日、Statuspage は [管理] にリンクされたすべての新しい PagerDuty インスタンスに対して V3 Webhook の配布を開始します。これらの新しいインスタンスのインシデント テンプレートは V3 タグのみをサポートします。
2021 年 12 月 10 日、Statuspage は既存の PagerDuty V1 Webhook (2021 年 11 月 11 日以前に配布されたもの) のサポートを終了します。廃止された V1 タグを使用するインシデント テンプレートは Webhook データによって入力されなくなります。
PagerDuty の承認タグ
PagerDuty V3 承認済みタグ | 推奨される同等の V1 タグ |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
タグのリスト
The approved tags pagerduty.event.data.assignees and pagerduty.event.data.teams both return data in the form of a list. Both lists contain objects with the following keys: html_url, id, self, summary, and type. These keys are listed as approved tags, but are only valid within the context of a list returned by pagerduty.event.data.assignees or pagerduty.event.data.teams. To learn more about formatting lists using mustache tags, please see the mustache documentation for html formatting.
PagerDuty mustache タグを持つ有効なテンプレート要素の例:
"Body element: {{#pagerduty.event.data.assignees}} {{html_url}} {{id}} {{self}} {{summary}} {{type}} {{/pagerduty.event.data.assignees}}""Body element: {{#pagerduty.event.data.teams}} {{summary}} {{/pagerduty.event.data.teams}}"PagerDuty mustache タグを持つ無効なテンプレート要素の例:
"Body element: {{html_url}} {{id}} {{self}} {{summary}} {{type}}"To learn more about PagerDuty Webhook Subscriptions, please see PagerDuty's V3 webhook overview.
この内容はお役に立ちましたか?