mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 09:13:21 +00:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -86,6 +86,8 @@
|
||||
"resendEveryXTimes": "Resend every {0} times",
|
||||
"resendDisabled": "Resend disabled",
|
||||
"retriesDescription": "Maximum retries before the service is marked as down and a notification is sent",
|
||||
"Only retry if status code check fails": "Only retry if status code check fails",
|
||||
"retryOnlyOnStatusCodeFailureDescription": "If enabled, retries will only occur when the HTTP status code check fails (e.g., server is down). If the status code check passes but the JSON query fails, the monitor will be marked as down immediately without retries.",
|
||||
"ignoredTLSError": "TLS/SSL errors have been ignored",
|
||||
"ignoreTLSError": "Ignore TLS/SSL errors for HTTPS websites",
|
||||
"ignoreTLSErrorGeneral": "Ignore TLS/SSL error for connection",
|
||||
|
||||
@@ -1167,6 +1167,24 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Retry only on status code failure: JSON Query only -->
|
||||
<div v-if="monitor.type === 'json-query' && monitor.maxretries > 0" class="my-3">
|
||||
<div class="form-check">
|
||||
<input
|
||||
id="retry-only-on-status-code-failure"
|
||||
v-model="monitor.retryOnlyOnStatusCodeFailure"
|
||||
type="checkbox"
|
||||
class="form-check-input"
|
||||
/>
|
||||
<label for="retry-only-on-status-code-failure" class="form-check-label">
|
||||
{{ $t("Only retry if status code check fails") }}
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-text">
|
||||
{{ $t("retryOnlyOnStatusCodeFailureDescription") }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Timeout: HTTP / JSON query / Keyword / Ping / RabbitMQ / SNMP / Websocket Upgrade only -->
|
||||
<div
|
||||
v-if="
|
||||
@@ -2158,6 +2176,7 @@ const monitorDefaults = {
|
||||
retryInterval: 60,
|
||||
resendInterval: 0,
|
||||
maxretries: 0,
|
||||
retryOnlyOnStatusCodeFailure: false,
|
||||
notificationIDList: {},
|
||||
ignoreTls: false,
|
||||
upsideDown: false,
|
||||
|
||||
Reference in New Issue
Block a user