|
|
|
@ -2,7 +2,7 @@ const https = require("https");
|
|
|
|
|
const dayjs = require("dayjs");
|
|
|
|
|
const axios = require("axios");
|
|
|
|
|
const { Prometheus } = require("../prometheus");
|
|
|
|
|
const { log, UP, DOWN, PENDING, MAINTENANCE, flipStatus, TimeLogger, MAX_INTERVAL_SECOND, MIN_INTERVAL_SECOND,
|
|
|
|
|
const { log, UP, DOWN, PENDING, MAINTENANCE, flipStatus, MAX_INTERVAL_SECOND, MIN_INTERVAL_SECOND,
|
|
|
|
|
SQL_DATETIME_FORMAT
|
|
|
|
|
} = require("../../src/util");
|
|
|
|
|
const { tcping, ping, checkCertificate, checkStatusCode, getTotalClientInRoom, setting, mssqlQuery, postgresQuery, mysqlQuery, mqttAsync, setSetting, httpNtlm, radius, grpcQuery,
|
|
|
|
@ -1067,7 +1067,7 @@ class Monitor extends BeanModel {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Example: http: or https:
|
|
|
|
|
* @returns {(null|string)}
|
|
|
|
|
* @returns {(null|string)} URL's protocol
|
|
|
|
|
*/
|
|
|
|
|
getURLProtocol() {
|
|
|
|
|
const url = this.getUrl();
|
|
|
|
|