Skip to content

Instantly share code, notes, and snippets.

@Theminijohn
Last active February 23, 2022 16:13
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
[
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "We've encountered a *new error*:"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "```{{errorMessage}}```"
}
},
{
"type": "divider"
},
{
"type": "context",
"elements": [
{
"type": "image",
"image_url": "https://cdn-icons-png.flaticon.com/512/1077/1077012.png",
"alt_text": "retool user"
},
{
"type": "mrkdwn",
"text": "*{{userEmail}}* @ {{exactDateTime}}"
}
]
},
{
"type": "divider"
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Operating system:*\n{{os}}"
},
{
"type": "mrkdwn",
"text": "*Browser:*\n{{browserName}}"
}
]
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Source:*\n{{errorSource}}"
},
{
"type": "mrkdwn",
"text": "*Resource type:*\n{{errorResourceType}}"
}
]
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Failed query:*\n`{{triggerQuery}}`"
},
{
"type": "mrkdwn",
"text": "*Failed in:*\n{{errorResourceTimeMs}} (ms)"
}
]
},
{
"type": "divider"
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*{{appName}}* app"
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "Open in Retool",
"emoji": true
},
"value": "open_in_retool",
"url": "{{appUrl}}",
"action_id": "button-action"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment