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

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

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

問題を作成する

Microsoft Teams ワークフロー用の New Relic Webhook

|View as Markdown (English)

Microsoft は、2025 年末までに Teams の Microsoft 365 Webhook ベースのコネクタ サービスを廃止する予定です。 New Relic 一括通知を引き続き受け取るには、ワークフロー アプリを使用して Microsoft Teams 内でワークフローを作成できます。 このドキュメントでは、Teams チャネルでのスムーズな移行と中断のないアラートを確保するために、New Relic 一括宛先とワークフローを更新する手順を説明します。 Office 365 コネクタ サービスの廃止の詳細については、 Microsoft 開発者ブログを参照してください。

前提条件:

Microsoft Teams ワークフローに New Relic Webhook を追加するには:

  1. 既存の Webhook の宛先を更新します。

    1. one.newrelic.com > All capabilities> Alerts > Enrich and Notify > Destinationsに移動します。
    2. 編集するには、Microsoft Teams にリンクされている必要な Webhook の宛先をクリックします。
    3. Teams でワークフローを作成した後、 Endpoint URL [エンドポイント URL]フィールドで既存の URL を新しい URL に置き換えます。 Destinations update page.
    4. Update destination [宛先の更新]をクリックします。
  2. 既存の Webhook ワークフローを更新します。

    1. one.newrelic.com > All capabilities> Alerts > Enrich and Notify > Workflowsに移動します。
    2. 通知ペイロードを編集するには、宛先にリンクされている必要なワークフローをクリックします。 Workflow update page.
    3. Edit notification message画面のTemplate [テンプレート]フィールドに、次のペイロードをコピーして貼り付けます。
      {
      "type": "message",
      "attachments": [
      {
      "contentType": "application/vnd.microsoft.card.adaptive",
      "contentUrl": null,
      "content": {
      "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
      "type": "AdaptiveCard",
      "version": "1.2",
      "msteams": { "width": "full" },
      "body": [
      {
      "type": "ColumnSet",
      "columns": [
      {
      "type": "Column",
      "items": [
      {
      "type": "Image",
      "style": "Person",
      "url": "https://avatars.slack-edge.com/2022-06-02/3611814361970_f6a28959c2e7258660ea_512.png",
      "size": "Small"
      }
      ],
      "width": "auto"
      },
      {
      "type": "Column",
      "items": [
      {
      "type": "TextBlock",
      "size": "large",
      "weight": "bolder",
      "text": "{{ priorityText }} priority issue is {{#if issueClosedAt}}CLOSED{{else}}{{#if issueAcknowledgedAt}}ACKNOWLEDGED{{else}}ACTIVATED{{/if}}{{/if}}"
      },
      {
      "type": "TextBlock",
      "size": "large",
      "wrap": true,
      "maxLines": 2,
      "weight": "bolder",
      "text": "[{{ issueTitle }}]({{ issuePageUrl }})"
      }
      ],
      "width": "stretch"
      }
      ]
      },
      {{#if accumulations.conditionDescription.[0]}}
      {
      "type": "TextBlock",
      "text": {{ json accumulations.conditionDescription.[0] }},
      "wrap": true
      },
      {{/if}}
      {{#eq "Not Available" violationChartUrl}}
      {{else}}
      {
      "type": "Image",
      "url": {{ json violationChartUrl }}
      },
      {{/eq}}
      {
      "type": "FactSet",
      "facts": [
      {
      "title": "*Impacted entities:*",
      "value": "{{#each entitiesData.names}}{{#lt @index 5}}{{this}}{{#unless @last}}, {{/unless}}{{/lt}}{{/each}}"
      },
      {{#if accumulations.policyName}}
      {
      "title": "*Policy:*",
      "value": {{ json accumulations.policyName.[0] }}
      },
      {{/if}}
      {{#if accumulations.conditionName}}
      {
      "title": "*Condition:*",
      "value": {{ json accumulations.conditionName.[0] }}
      },
      {{#eq impactedEntitiesCount 1}}
      {{else}}
      {
      "title": "*Total Incidents:*",
      "value": {{ json impactedEntitiesCount }}
      },
      {{/eq}}
      {{/if}}
      {
      "title": "Workflow Name:",
      "value": {{ json workflowName }}
      }
      ]
      },
      {
      "type": "ActionSet",
      "actions": [
      {
      "type": "Action.OpenUrl",
      "title": "📥 Acknowledge",
      "url": {{ json issueAckUrl }}
      },
      {
      "type": "Action.OpenUrl",
      "title": "✔️ Close",
      "url": {{ json issueCloseUrl }}
      }
      {{#if accumulations.deepLinkUrl}}
      ,{
      "type": "Action.OpenUrl",
      "title": "🔎 View Query",
      "url": {{ json accumulations.deepLinkUrl.[0] }},
      "mode": "secondary"
      }
      {{/if}}
      {{#if accumulations.runbookUrl}}
      ,{
      "type": "Action.OpenUrl",
      "title": "📕 View Runbook",
      "url": {{ json accumulations.runbookUrl.[0] }},
      "mode": "secondary"
      }
      {{/if}}
      ]
      }
      ]
      }
      }
      ]
      }
    4. Save message [メッセージを保存]をクリックします。
Copyright © 2026 New Relic株式会社。

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