uptimekuma-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

UptimeKuma-api

Supports UptimeKuma versions from 1.13.1 to 1.21.0

Installation

npm install uptimekuma-api

Usage

Start pushing

let kuma = new UptimeKuma("https://kuma.url/");

kuma.startPushing("push code",60);

Stop pushing

kuma.cancelPushing();

Get statuses

for (let x of (await kuma.status())) {
    for (let monitor of x.monitors) {
        console.log(monitor.name + " " + monitor.heartbeats[1].status+ " - " + (monitor.uptime*100) + "%");
    }
}

Readme

Keywords

Package Sidebar

Install

npm i uptimekuma-api

Weekly Downloads

3

Version

1.0.6

License

MIT

Unpacked Size

4.53 kB

Total Files

4

Last publish

Collaborators

  • redguys