Skip to content

Instantly share code, notes, and snippets.

@mica-eu
Created December 12, 2025 12:29
Show Gist options
  • Select an option

  • Save mica-eu/72f5aed074bf873bd084c258f35bd056 to your computer and use it in GitHub Desktop.

Select an option

Save mica-eu/72f5aed074bf873bd084c258f35bd056 to your computer and use it in GitHub Desktop.
Newrelic gotify alert template
{
"title": "{{#if (eq state 'ACTIVATED')}}🚨 Falha:{{else}}✅ Resolvido:{{/if}} {{ accumulations.conditionName.[0] }}",
"message": "### {{ annotations.title.[0] }}\n\n**🛑 Status:** {{ state }}\n\n**📊 Prioridade:** {{ priority }}\n\n**🛡️ Política:** {{#each accumulations.policyName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\n\n**🖥️ Entidades:** `{{#each entitiesData.names}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}`\n\n> 📉 **Detalhe:** {{#each accumulations.conditionName}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}\n\n\n[🔗 **Ver Análise no New Relic**]({{ issuePageUrl }})",
"priority": {{#if (eq priority 'CRITICAL')}}8{{else}}5{{/if}},
"extras": {
"client::display": {
"contentType": "text/markdown"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment