mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-09-08 18:38:43 +00:00
20 lines
311 B
JavaScript
20 lines
311 B
JavaScript
class MonitorType {
|
|
|
|
name = undefined;
|
|
|
|
/**
|
|
*
|
|
* @param {Monitor} monitor
|
|
* @param {Heartbeat} heartbeat
|
|
* @returns {Promise<void>}
|
|
*/
|
|
async check(monitor, heartbeat) {
|
|
throw new Error("You need to override check()");
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = {
|
|
MonitorType,
|
|
};
|