Skip to content

Instantly share code, notes, and snippets.

@ktkaushik
Created September 12, 2022 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ktkaushik/e772b83fedff69d139baee9e01797185 to your computer and use it in GitHub Desktop.
Save ktkaushik/e772b83fedff69d139baee9e01797185 to your computer and use it in GitHub Desktop.
Checkly <> Spike.sh Integration code
{
{{! Embeds for the SSL expiry notifications}}
{{#eq ALERT_TYPE "ALERT_SSL" }}
"title": "{{ALERT_TITLE}}",
"ssl_days_remaining": "{{SSL_DAYS_REMAINING}}",
"ssl_domain": "{{SSL_CHECK_DOMAIN}}"
{{else}}
{{! Embeds for the standard failure, recovery and degraded notifications}}
"event": "{{ALERT_TITLE}}",
"type": "{{ALERT_TYPE}}",
"link": "{{RESULT_LINK}}",
"id": "{{CHECK_ID}}",
"check_type": "{{CHECK_TYPE}}",
"name": "{{CHECK_NAME}}",
"location": "{{RUN_LOCATION}}",
"tags": [{{#each TAGS}} "{{this}}" {{#unless @last}},{{/unless}} {{/each}}]
{{/eq}}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment