mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-26 05:25:56 +00:00
Added Remove minimum interval value #1645
#1645 has been added by changing the minimum value from 20 to 1. A warning has been added that shows when the user enters a value less than 20 to state that performance issues may be enountered. Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
parent
4992b1671f
commit
dcd723b9ac
2 changed files with 9 additions and 2 deletions
|
@ -3,6 +3,7 @@ export default {
|
||||||
checkEverySecond: "Check every {0} seconds",
|
checkEverySecond: "Check every {0} seconds",
|
||||||
retryCheckEverySecond: "Retry every {0} seconds",
|
retryCheckEverySecond: "Retry every {0} seconds",
|
||||||
retriesDescription: "Maximum retries before the service is marked as down and a notification is sent",
|
retriesDescription: "Maximum retries before the service is marked as down and a notification is sent",
|
||||||
|
minimumIntervalWarning: "Warning: Intervals below 20 seconds may result in poor performance.",
|
||||||
ignoreTLSError: "Ignore TLS/SSL error for HTTPS websites",
|
ignoreTLSError: "Ignore TLS/SSL error for HTTPS websites",
|
||||||
upsideDownModeDescription: "Flip the status upside down. If the service is reachable, it is DOWN.",
|
upsideDownModeDescription: "Flip the status upside down. If the service is reachable, it is DOWN.",
|
||||||
maxRedirectDescription: "Maximum number of redirects to follow. Set to 0 to disable redirects.",
|
maxRedirectDescription: "Maximum number of redirects to follow. Set to 0 to disable redirects.",
|
||||||
|
|
|
@ -160,7 +160,10 @@
|
||||||
<!-- Interval -->
|
<!-- Interval -->
|
||||||
<div class="my-3">
|
<div class="my-3">
|
||||||
<label for="interval" class="form-label">{{ $t("Heartbeat Interval") }} ({{ $t("checkEverySecond", [ monitor.interval ]) }})</label>
|
<label for="interval" class="form-label">{{ $t("Heartbeat Interval") }} ({{ $t("checkEverySecond", [ monitor.interval ]) }})</label>
|
||||||
<input id="interval" v-model="monitor.interval" type="number" class="form-control" required min="20" step="1">
|
<input id="interval" v-model="monitor.interval" type="number" class="form-control" required min="1" step="1">
|
||||||
|
<div v-if="monitor.interval < 20" class="form-text">
|
||||||
|
{{ $t("minimumIntervalWarning") }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="my-3">
|
<div class="my-3">
|
||||||
|
@ -176,7 +179,10 @@
|
||||||
{{ $t("Heartbeat Retry Interval") }}
|
{{ $t("Heartbeat Retry Interval") }}
|
||||||
<span>({{ $t("retryCheckEverySecond", [ monitor.retryInterval ]) }})</span>
|
<span>({{ $t("retryCheckEverySecond", [ monitor.retryInterval ]) }})</span>
|
||||||
</label>
|
</label>
|
||||||
<input id="retry-interval" v-model="monitor.retryInterval" type="number" class="form-control" required min="20" step="1">
|
<input id="retry-interval" v-model="monitor.retryInterval" type="number" class="form-control" required min="1" step="1">
|
||||||
|
<div v-if="monitor.retryInterval < 20" class="form-text">
|
||||||
|
{{ $t("minimumIntervalWarning") }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2 v-if="monitor.type !== 'push'" class="mt-5 mb-2">{{ $t("Advanced") }}</h2>
|
<h2 v-if="monitor.type !== 'push'" class="mt-5 mb-2">{{ $t("Advanced") }}</h2>
|
||||||
|
|
Loading…
Add table
Reference in a new issue