Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update new-relic-webhook-for-microsoft-teams-workflow.mdx #19719

Merged
merged 1 commit into from
Jan 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,137 +40,139 @@
/>
3. On the <dnt>Edit notification message</dnt> screen, in the **Template** field, copy and paste the following payload:
```json
{
"type": "message",

Check warning on line 44 in src/content/docs/alerts/get-notified/new-relic-webhook-for-microsoft-teams-workflow.mdx

View workflow job for this annotation

GitHub Actions / vale-linter

[vale] reported by reviewdog 🐶 [Microsoft.SentenceLength] Try to keep sentences short (< 30 words). Raw Output: {"message": "[Microsoft.SentenceLength] Try to keep sentences short (\u003c 30 words).", "location": {"path": "src/content/docs/alerts/get-notified/new-relic-webhook-for-microsoft-teams-workflow.mdx", "range": {"start": {"line": 44, "column": 6}}}, "severity": "INFO"}

Check failure on line 44 in src/content/docs/alerts/get-notified/new-relic-webhook-for-microsoft-teams-workflow.mdx

View workflow job for this annotation

GitHub Actions / vale-linter

[vale] reported by reviewdog 🐶 [Microsoft.Quotes] Punctuation should be inside the quotes. Raw Output: {"message": "[Microsoft.Quotes] Punctuation should be inside the quotes.", "location": {"path": "src/content/docs/alerts/get-notified/new-relic-webhook-for-microsoft-teams-workflow.mdx", "range": {"start": {"line": 44, "column": 13}}}, "severity": "ERROR"}
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",

Check failure on line 47 in src/content/docs/alerts/get-notified/new-relic-webhook-for-microsoft-teams-workflow.mdx

View workflow job for this annotation

GitHub Actions / vale-linter

[vale] reported by reviewdog 🐶 [Microsoft.Quotes] Punctuation should be inside the quotes. Raw Output: {"message": "[Microsoft.Quotes] Punctuation should be inside the quotes.", "location": {"path": "src/content/docs/alerts/get-notified/new-relic-webhook-for-microsoft-teams-workflow.mdx", "range": {"start": {"line": 47, "column": 24}}}, "severity": "ERROR"}
"contentUrl": null,
"content": {
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",

Check failure on line 50 in src/content/docs/alerts/get-notified/new-relic-webhook-for-microsoft-teams-workflow.mdx

View workflow job for this annotation

GitHub Actions / vale-linter

[vale] reported by reviewdog 🐶 [Microsoft.Quotes] Punctuation should be inside the quotes. Raw Output: {"message": "[Microsoft.Quotes] Punctuation should be inside the quotes.", "location": {"path": "src/content/docs/alerts/get-notified/new-relic-webhook-for-microsoft-teams-workflow.mdx", "range": {"start": {"line": 50, "column": 22}}}, "severity": "ERROR"}
"type": "AdaptiveCard",

Check failure on line 51 in src/content/docs/alerts/get-notified/new-relic-webhook-for-microsoft-teams-workflow.mdx

View workflow job for this annotation

GitHub Actions / vale-linter

[vale] reported by reviewdog 🐶 [Microsoft.Quotes] Punctuation should be inside the quotes. Raw Output: {"message": "[Microsoft.Quotes] Punctuation should be inside the quotes.", "location": {"path": "src/content/docs/alerts/get-notified/new-relic-webhook-for-microsoft-teams-workflow.mdx", "range": {"start": {"line": 51, "column": 19}}}, "severity": "ERROR"}
"version": "1.2",

Check failure on line 52 in src/content/docs/alerts/get-notified/new-relic-webhook-for-microsoft-teams-workflow.mdx

View workflow job for this annotation

GitHub Actions / vale-linter

[vale] reported by reviewdog 🐶 [Microsoft.Quotes] Punctuation should be inside the quotes. Raw Output: {"message": "[Microsoft.Quotes] Punctuation should be inside the quotes.", "location": {"path": "src/content/docs/alerts/get-notified/new-relic-webhook-for-microsoft-teams-workflow.mdx", "range": {"start": {"line": 52, "column": 22}}}, "severity": "ERROR"}
"msteams": { "width": "full" },
"body": [
{
"type": "message",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"contentUrl": null,
"content": {
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.2",
"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": "Image",
"style": "Person",
"url": "https://avatars.slack-edge.com/2022-06-02/3611814361970_f6a28959c2e7258660ea_512.png",
"size": "medium"
}
],
"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"
"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]}}
{
},
{{#if accumulations.conditionDescription.[0]}}
{
"type": "TextBlock",
"text": {{ json accumulations.conditionDescription.[0] }},
"wrap": true
},
{{/if}}
{{#eq "Not Available" violationChartUrl}}
{{else}}
{
},
{{/if}}
{{#eq "Not Available" violationChartUrl}}
{{else}}
{
"type": "Image",
"url": {{ json violationChartUrl }}
},
{{/eq}}
{
},
{{/eq}}
{
"type": "FactSet",
"facts": [
{
"title": "*Impacted entities:*",
"value": "{{#each entitiesData.names}}{{#lt @index 5}}{{this}}{{#unless @last}},{{/unless}}{{/lt}}{{/each}}"
"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]}}
"title": "*Policy:*",
"value": {{ json accumulations.policyName.[0]}}
},
{{/if}}
{{#if accumulations.conditionName }}
{
"title": "*Condition:*",
"value": {{ json accumulations.conditionName.[0]}}
"title": "*Condition:*",
"value": {{ json accumulations.conditionName.[0]}}
},
{{#eq impactedEntitiesCount 1}}
{{else}}
{
"title": "*Total Incidents:*",
"value": {{ json impactedEntitiesCount}}
"title": "*Total Incidents:*",
"value": {{ json impactedEntitiesCount}}
},
{{/eq}}
{{/if}}
{
"title": "Workflow Name:",
"value": {{ json workflowName }}
"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}}
]
}
]
}
}
]
{
"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. Click **Save message**.

Loading