You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
468 B
20 lines
468 B
class MonitorType {
|
|
name = undefined;
|
|
|
|
/**
|
|
* Run the monitoring check on the given monitor
|
|
* @param {Monitor} monitor Monitor to check
|
|
* @param {Heartbeat} heartbeat Monitor heartbeat to update
|
|
* @param {UptimeKumaServer} server Uptime Kuma server
|
|
* @returns {Promise<void>}
|
|
*/
|
|
async check(monitor, heartbeat, server) {
|
|
throw new Error("You need to override check()");
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = {
|
|
MonitorType,
|
|
};
|