mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-07 13:32:35 +02:00
16 lines
344 B
JavaScript
16 lines
344 B
JavaScript
const { BeanModel } = require("redbean-node/dist/bean-model");
|
|
|
|
class MonitorCheck extends BeanModel {
|
|
/**
|
|
* Return a object that ready to parse to JSON
|
|
*/
|
|
async toJSON() {
|
|
return {
|
|
id: this.id,
|
|
type: this.type,
|
|
value: this.value,
|
|
};
|
|
}
|
|
}
|
|
|
|
module.exports = MonitorCheck;
|