diff --git a/src/routes/(docs)/docs/content/v4/guides/api-custom-eval-examples.md b/src/routes/(docs)/docs/content/v4/guides/api-custom-eval-examples.md index 7908434c..6b5785d1 100644 --- a/src/routes/(docs)/docs/content/v4/guides/api-custom-eval-examples.md +++ b/src/routes/(docs)/docs/content/v4/guides/api-custom-eval-examples.md @@ -81,7 +81,7 @@ SECRET_PARAM=your_real_secret_value ## Cheerio HTML content check {#cheerio-html-check-eval} ```javascript -;(async function (statusCode, responseTime, responseRaw, modules) { +async function (statusCode, responseTime, responseRaw, modules) { if (statusCode !== 200) { return { status: "DOWN", latency: responseTime } } @@ -99,5 +99,5 @@ SECRET_PARAM=your_real_secret_value status: status ? "UP" : "DOWN", latency: responseTime } -}) +} ``` diff --git a/src/routes/(manage)/manage/app/monitors/[tag]/components/MonitorAlerting.svelte b/src/routes/(manage)/manage/app/monitors/[tag]/components/MonitorAlerting.svelte deleted file mode 100644 index 3149f2e7..00000000 --- a/src/routes/(manage)/manage/app/monitors/[tag]/components/MonitorAlerting.svelte +++ /dev/null @@ -1,582 +0,0 @@ - - -
Loading alerts...
-No alerts configured yet
-Create an alert to get notified when your monitor has issues
-- {getAlertText({ - kind: "description", - alert_for: alert.alert_for, - alert_value: alert.alert_value, - failure_threshold: alert.failure_threshold, - success_threshold: alert.success_threshold - })} -
- - {#if alert.alert_description} -{alert.alert_description}
- {/if} - - {#if alert.triggers.length > 0} -{alertValueHelp}
-Consecutive failures before alert
-Consecutive successes to resolve
-Automatically create an incident when this alert triggers
-Select which triggers to notify when this alert fires
-- No notification triggers available. Create a trigger to receive notifications. -
- {/if} -