1.0.6 • Published 9 months ago

uptimekuma-api v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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) + "%");
    }
}
1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago