mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-26 05:25:56 +00:00
feat: add error handling option for empty SQL query results in EditMonitor
This commit is contained in:
parent
16f8e4ee80
commit
443cc68a17
1 changed files with 13 additions and 0 deletions
|
@ -539,6 +539,19 @@
|
|||
</div>
|
||||
</template>
|
||||
|
||||
<!-- SQL Server / PostgreSQL / MySQL Error Handling -->
|
||||
<template v-if="monitor.type === 'sqlserver' || monitor.type === 'postgres' || monitor.type === 'mysql'">
|
||||
<div class="my-3 form-check">
|
||||
<input id="sqlErrorHandling" v-model="monitor.databaseQueryHandleEmptyAsFailure" class="form-check-input" type="checkbox">
|
||||
<label class="form-check-label" for="sqlErrorHandling">
|
||||
{{ $t("Handle empty result as error") }}
|
||||
</label>
|
||||
<div class="form-text">
|
||||
{{ $t("handleEmptyResultDescription") }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<!-- MongoDB -->
|
||||
<template v-if="monitor.type === 'mongodb'">
|
||||
<div class="my-3">
|
||||
|
|
Loading…
Add table
Reference in a new issue