mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-09-09 02:42:07 +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,
|
||
|
};
|