• /
  • EnglishEspañol日本語한국어Português
  • EntrarComeçar agora

Esta tradução de máquina é fornecida para sua comodidade.

Caso haja alguma divergência entre a versão em inglês e a traduzida, a versão em inglês prevalece. Acesse esta página para mais informações.

Criar um problema

Webhook do New Relic para fluxo de trabalho do Microsoft Teams

A Microsoft está descontinuando o serviço Connectors baseado em webhook do Microsoft 365 no Teams até o final de 2025. Para continuar recebendo notificações de alerta da New Relic, você pode criar um fluxo de trabalho no Microsoft Teams usando o aplicativo fluxo de trabalho. Este documento fornece instruções para atualizar seus destinos de alerta e fluxo de trabalho do New Relic para garantir uma transição tranquila e alertas ininterruptos em seus canais do Teams. Para obter mais informações sobre a descontinuação dos serviços do Office 365 Connectors, consulte o blog Microsoft Desenvolvedores.

Pré-requisitos:

Para adicionar um webhook do New Relic ao fluxo de trabalho do Microsoft Teams:

  1. Atualizar destino de webhook existente:

    1. Acesse one.newrelic.com > All capabilities > Alerts > Enrich and Notify > Destinations.
    2. Clique no destino do webhook necessário vinculado ao Microsoft Teams para editar.
    3. Após criar o fluxo de trabalho no Teams, no campo Endpoint URL, substitua a URL existente por uma nova URL. Destinations update page.
    4. Clique em Update destination.
  2. Atualizar fluxo de trabalho do webhook existente:

    1. Acesse one.newrelic.com > All capabilities > Alerts > Enrich and Notify > Workflows.
    2. Para editar a carga de notificação, clique no fluxo de trabalho necessário vinculado ao destino. Workflow update page.
    3. Na tela Edit notification message , no campo Template, copie e cole a seguinte carga útil:
    {
    "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}}
    ]
    }
    ]
    }
    }
    ]
    }
    1. Clique em Save message.
Copyright © 2025 New Relic Inc.

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