|
|
@ -6,7 +6,7 @@ const { log, UP, DOWN, PENDING, MAINTENANCE, flipStatus, TimeLogger, MAX_INTERVA
|
|
|
|
SQL_DATETIME_FORMAT, isDev, sleep, getRandomInt
|
|
|
|
SQL_DATETIME_FORMAT, isDev, sleep, getRandomInt
|
|
|
|
} = require("../../src/util");
|
|
|
|
} = require("../../src/util");
|
|
|
|
const { tcping, ping, dnsResolve, checkCertificate, checkStatusCode, getTotalClientInRoom, setting, mssqlQuery, postgresQuery, mysqlQuery, mqttAsync, setSetting, httpNtlm, radius, grpcQuery,
|
|
|
|
const { tcping, ping, dnsResolve, checkCertificate, checkStatusCode, getTotalClientInRoom, setting, mssqlQuery, postgresQuery, mysqlQuery, mqttAsync, setSetting, httpNtlm, radius, grpcQuery,
|
|
|
|
redisPingAsync, mongodbPing, kafkaProducerAsync, getOidcTokenClientCredentials, rootCertificatesFingerprints
|
|
|
|
redisPingAsync, mongodbPing, kafkaProducerAsync, getOidcTokenClientCredentials, rootCertificatesFingerprints, axiosAbortSignal
|
|
|
|
} = require("../util-server");
|
|
|
|
} = require("../util-server");
|
|
|
|
const { R } = require("redbean-node");
|
|
|
|
const { R } = require("redbean-node");
|
|
|
|
const { BeanModel } = require("redbean-node/dist/bean-model");
|
|
|
|
const { BeanModel } = require("redbean-node/dist/bean-model");
|
|
|
@ -475,6 +475,7 @@ class Monitor extends BeanModel {
|
|
|
|
validateStatus: (status) => {
|
|
|
|
validateStatus: (status) => {
|
|
|
|
return checkStatusCode(status, this.getAcceptedStatuscodes());
|
|
|
|
return checkStatusCode(status, this.getAcceptedStatuscodes());
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
signal: axiosAbortSignal(this.timeout * 1000),
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
if (bodyValue) {
|
|
|
|
if (bodyValue) {
|
|
|
|