mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 17:23:21 +00:00
Feat: Add http/http keyword timeout option (#2142)
* feat: Add timeoutMs field * chore: Update Languages (incl. ko-KR) * Revert "chore: Update Languages (incl. ko-KR)" This reverts commit 349331a00b6a7b1a59935442df8e9e50176baf17. * chore: Update ko-KR selectively * chore: Update en selectively * Merge manually * Reorder and show only if http related monitors * fix: Update Korean translation * fix: Rename timeoutMs to timeout, rename label, make DOUBLE * fix: Change minimum step to 0.1, matching DOUBLE type * Put the sql patch at the end * Update EditMonitor.vue * Colocate timeout with retry, fix clampTimeout logic, show default on 0 * Update src/pages/EditMonitor.vue to remove a comment Co-authored-by: Frank Elsinga <frank@elsinga.de> * Fix merge issue * Update the timeout value while finished editing the interval value --------- Co-authored-by: Louis Lam <louislam@users.noreply.github.com> Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
co-authored by
Frank Elsinga
Louis Lam
parent
c6e68fac97
commit
439b6517d1
@@ -716,6 +716,7 @@ let needSetup = false;
|
||||
bean.headers = monitor.headers;
|
||||
bean.basic_auth_user = monitor.basic_auth_user;
|
||||
bean.basic_auth_pass = monitor.basic_auth_pass;
|
||||
bean.timeout = monitor.timeout;
|
||||
bean.oauth_client_id = monitor.oauth_client_id,
|
||||
bean.oauth_client_secret = monitor.oauth_client_secret,
|
||||
bean.oauth_auth_method = this.oauth_auth_method,
|
||||
@@ -1372,6 +1373,7 @@ let needSetup = false;
|
||||
|
||||
// Define default values
|
||||
let retryInterval = 0;
|
||||
let timeout = monitorListData[i].timeout || (monitorListData[i].interval * 0.8); // fallback to old value
|
||||
|
||||
/*
|
||||
Only replace the default value with the backup file data for the specific version, where it appears the first time
|
||||
@@ -1397,6 +1399,7 @@ let needSetup = false;
|
||||
basic_auth_pass: monitorListData[i].basic_auth_pass,
|
||||
authWorkstation: monitorListData[i].authWorkstation,
|
||||
authDomain: monitorListData[i].authDomain,
|
||||
timeout,
|
||||
interval: monitorListData[i].interval,
|
||||
retryInterval: retryInterval,
|
||||
resendInterval: monitorListData[i].resendInterval || 0,
|
||||
|
||||
Reference in New Issue
Block a user