{"id":22,"date":"2026-10-22T19:03:53","date_gmt":"2026-10-22T17:03:53","guid":{"rendered":"https:\/\/demo.leitvia.com\/docs\/docs\/notifications\/"},"modified":"2026-10-22T19:03:53","modified_gmt":"2026-10-22T17:03:53","slug":"notifications","status":"publish","type":"page","link":"https:\/\/demo.leitvia.com\/docs\/docs\/notifications\/","title":{"rendered":"Notifications"},"content":{"rendered":"<nav class=\"wp-block-leitvia-table-of-contents\" aria-labelledby=\"leitvia-toc-title\"><h2 id=\"leitvia-toc-title\" class=\"wp-block-leitvia-table-of-contents__title\">On this page<\/h2><ol><li><a href=\"#e-mail\">E-mail<\/a><\/li><li><a href=\"#webhook\">Webhook<\/a><\/li><li><a href=\"#quiet-hours\">Quiet hours<\/a><\/li><\/ol><\/nav>\n\n<p class=\"wp-block-paragraph\">Notifications go out when a check changes state: from healthy to failing and back. While a check keeps failing, Lantern repeats the message every <code>repeat<\/code> interval, by default every hour.<\/p>\n\n\n<h2 class=\"wp-block-heading\">E-mail<\/h2>\n\n<div class=\"leitvia-code-copy\">\n<pre class=\"wp-block-code\"><code>notify:\n  - type: email\n    to: ops@example.org\n    smtp:\n      host: mail.example.org\n      port: 587\n      user: lantern\n      # password from LANTERN_SMTP_PASSWORD<\/code><\/pre>\n<div class=\"leitvia-code-copy__bar\"><span class=\"leitvia-code-copy__status\" role=\"status\" data-copied=\"Copied\" data-failed=\"Copy failed, select the code and copy it manually\"><\/span><button type=\"button\" class=\"leitvia-code-copy__button\" hidden>Copy code<\/button><\/div><\/div>\n\n<h2 class=\"wp-block-heading\">Webhook<\/h2>\n\n\n<p class=\"wp-block-paragraph\">Lantern sends a POST request with a JSON body to the URL. Answer with a status code from 200 to 299; anything else is retried three times.<\/p>\n\n<div class=\"leitvia-code-copy\">\n<pre class=\"wp-block-code\"><code>{\n  &quot;check&quot;: &quot;Website&quot;,\n  &quot;state&quot;: &quot;failing&quot;,\n  &quot;since&quot;: &quot;2026-10-19T08:14:03Z&quot;,\n  &quot;reason&quot;: &quot;status 503, expected 200&quot;\n}<\/code><\/pre>\n<div class=\"leitvia-code-copy__bar\"><span class=\"leitvia-code-copy__status\" role=\"status\" data-copied=\"Copied\" data-failed=\"Copy failed, select the code and copy it manually\"><\/span><button type=\"button\" class=\"leitvia-code-copy__button\" hidden>Copy code<\/button><\/div><\/div>\n\n<h2 class=\"wp-block-heading\">Quiet hours<\/h2>\n\n\n<p class=\"wp-block-paragraph\">Messages in quiet hours wait until the end of the window and arrive as one summary. Recoveries during the window are included.<\/p>\n\n<div class=\"leitvia-code-copy\">\n<pre class=\"wp-block-code\"><code>notify:\n  - type: email\n    to: ops@example.org\n    quiet: &quot;22:00-07:00&quot;\n    repeat: 2h<\/code><\/pre>\n<div class=\"leitvia-code-copy__bar\"><span class=\"leitvia-code-copy__status\" role=\"status\" data-copied=\"Copied\" data-failed=\"Copy failed, select the code and copy it manually\"><\/span><button type=\"button\" class=\"leitvia-code-copy__button\" hidden>Copy code<\/button><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>How Lantern reports failures and recoveries by e-mail and webhook, with repeat intervals and quiet hours.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":8,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"page-docs","meta":{"_leitvia_easy_language_of":0,"footnotes":""},"class_list":["post-22","page","type-page","status-publish","hentry"],"leitvia_pattern_status":null,"_links":{"self":[{"href":"https:\/\/demo.leitvia.com\/docs\/wp-json\/wp\/v2\/pages\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.leitvia.com\/docs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/demo.leitvia.com\/docs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/demo.leitvia.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.leitvia.com\/docs\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":1,"href":"https:\/\/demo.leitvia.com\/docs\/wp-json\/wp\/v2\/pages\/22\/revisions"}],"predecessor-version":[{"id":35,"href":"https:\/\/demo.leitvia.com\/docs\/wp-json\/wp\/v2\/pages\/22\/revisions\/35"}],"up":[{"embeddable":true,"href":"https:\/\/demo.leitvia.com\/docs\/wp-json\/wp\/v2\/pages\/8"}],"wp:attachment":[{"href":"https:\/\/demo.leitvia.com\/docs\/wp-json\/wp\/v2\/media?parent=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}