feat: Add option to retry only on status code failure for JSON Query monitors (#5693) (#6687)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
SID
2026-01-12 16:49:43 +01:00
committed by GitHub
co-authored by autofix-ci[bot]
parent 2b2941cd83
commit c7a8b7affd
5 changed files with 64 additions and 5 deletions
@@ -0,0 +1,12 @@
exports.up = function (knex) {
// Add new column to table monitor for json-query retry behavior
return knex.schema.alterTable("monitor", function (table) {
table.boolean("retry_only_on_status_code_failure").defaultTo(false).notNullable();
});
};
exports.down = function (knex) {
return knex.schema.alterTable("monitor", function (table) {
table.dropColumn("retry_only_on_status_code_failure");
});
};