mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-01 19:16:23 -04:00
Show push example under the detail page (#3739)
This commit is contained in:
parent
bef6a7911f
commit
98b93c887a
18 changed files with 249 additions and 23 deletions
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
# Filename: index.sh
|
||||
PUSH_URL="https://example.com/api/push/key?status=up&msg=OK&ping="
|
||||
INTERVAL=60
|
||||
|
||||
|
|
1
extra/push-examples/docker/index.sh
Normal file
1
extra/push-examples/docker/index.sh
Normal file
|
@ -0,0 +1 @@
|
|||
docker run -d --restart=always --name uptime-kuma-push louislam/uptime-kuma:push "https://example.com/api/push/key?status=up&msg=OK&ping=" 60
|
|
@ -1,3 +1,4 @@
|
|||
// Supports: Node.js >= 18, Deno, Bun
|
||||
const pushURL = "https://example.com/api/push/key?status=up&msg=OK&ping=";
|
||||
const interval = 60;
|
||||
|
||||
|
|
|
@ -11,4 +11,3 @@ while (true) {
|
|||
echo "Pushed!\n";
|
||||
sleep(interval);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# Filename: index.ps1
|
||||
$pushURL = "https://example.com/api/push/key?status=up&msg=OK&ping="
|
||||
$interval = 60
|
||||
|
||||
|
|
|
@ -8,4 +8,3 @@ while True:
|
|||
urllib.request.urlopen(push_url)
|
||||
print("Pushed!\n")
|
||||
time.sleep(interval)
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Supports: Deno, Bun, Node.js >= 18 (ts-node)
|
||||
const pushURL : string = "https://example.com/api/push/key?status=up&msg=OK&ping=";
|
||||
const interval : number = 60;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue