update: default ping interval to 10s

This commit is contained in:
nate 2026-03-18 20:59:50 +04:00
parent 5295fcfe79
commit fd821acec2
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ const MonitorBody = t.Object({
request_headers: t.Optional(t.Any({ description: "Request headers as key-value object" })), request_headers: t.Optional(t.Any({ description: "Request headers as key-value object" })),
request_body: t.Optional(t.Nullable(t.String({ maxLength: 65536, description: "Request body for POST/PUT/PATCH (max 64KB)" }))), request_body: t.Optional(t.Nullable(t.String({ maxLength: 65536, description: "Request body for POST/PUT/PATCH (max 64KB)" }))),
timeout_ms: t.Optional(t.Number({ minimum: 1000, maximum: 60000, default: 10000, description: "Request timeout in ms" })), timeout_ms: t.Optional(t.Number({ minimum: 1000, maximum: 60000, default: 10000, description: "Request timeout in ms" })),
interval_s: t.Optional(t.Number({ minimum: 2, default: 60, description: "Check interval in seconds (minimum 2)" })), interval_s: t.Optional(t.Number({ minimum: 2, default: 10, description: "Check interval in seconds (minimum 2)" })),
query: t.Optional(t.Any({ description: "PingQL query — filter conditions for up/down" })), query: t.Optional(t.Any({ description: "PingQL query — filter conditions for up/down" })),
regions: t.Optional(t.Array(t.String(), { description: "Regions to run checks from. Empty array = all regions." })), regions: t.Optional(t.Array(t.String(), { description: "Regions to run checks from. Empty array = all regions." })),
}); });

View File

@ -66,7 +66,7 @@
<select id="<%= prefix %>interval" <select id="<%= prefix %>interval"
class="w-full <%= bg %> border <%= border %> rounded-lg px-4 py-2.5 text-gray-100 focus:outline-none focus:border-blue-500"> class="w-full <%= bg %> border <%= border %> rounded-lg px-4 py-2.5 text-gray-100 focus:outline-none focus:border-blue-500">
<% intervals.forEach(function([val, label]) { %> <% intervals.forEach(function([val, label]) { %>
<option value="<%= val %>" <%= String(monitor.interval_s || '60') === val ? 'selected' : '' %>><%= label %></option> <option value="<%= val %>" <%= String(monitor.interval_s || '10') === val ? 'selected' : '' %>><%= label %></option>
<% }) %> <% }) %>
</select> </select>
</div> </div>