feat: add error handling option for empty SQL query results in EditMonitor

pull/5429/head
Antonino Natale 2 weeks ago
parent 16f8e4ee80
commit 443cc68a17

@ -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…
Cancel
Save