I want to get the ping of my monitor in uptimerobot but I don't know what I need to do!
I'm on nodejs and I have do that :
const UptimeRobot = require('@lazydb_community/uptimerobot');
const UptimeRobotClient = new UptimeRobot('my api key');
module.exports = {
name: 'status',
ownerOnly: true,
run: async (client, message, args, container) => {
UptimeRobotClient.getMonitors().then(data => {
console.log(data);
}).catch(error => {
console.log(error);
})
}
}
and I got this :
{
stat: 'ok',
pagination: { offset: 0, limit: 50, total: 3 },
monitors: [
{
id: 791369056,
friendly_name: 'Panel Utility Bot',
url: 'https://panel.utilitybot.ga',
type: 1,
sub_type: '',
keyword_type: null,
keyword_case_type: null,
keyword_value: '',
http_username: '',
http_password: '',
port: '',
interval: 300,
timeout: 30,
status: 2,
create_datetime: 1649546735
}
]
}
But I didn't see the ping of the monitors.