Skip to content

Instantly share code, notes, and snippets.

@GaNiziolek
Last active September 21, 2023 00:56
Show Gist options
  • Save GaNiziolek/0e1bf18d5fa3d88d16cd37ff7400334b to your computer and use it in GitHub Desktop.
Save GaNiziolek/0e1bf18d5fa3d88d16cd37ff7400334b to your computer and use it in GitHub Desktop.
With this template you can use the webhook function of NewRelic Alerts to be send Discord messages when something occurred.

Put this on webhook template

{
	"content": "**__{{ state }}__: _{{ issueTitle }}_**\n{{ annotations.description.[0] }}\n\n**Priority**: {{ priority}}\n**Duration**: {{ issueDurationText }}\n**Triggered by**: {{ triggerEvent }}\n**Impacted Entities**:\n{{#each entitiesData.entities}} - {{this.name}}\n{{/each}}",
  "embeds": [{
    "title": "IssueId: {{issueId}}",
    "url": {{json issuePageUrl}}
  }]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment