refactor web pagination and add partitioned events, flap/timeout showcase agents

This commit is contained in:
Stanislav Rossovskii
2026-05-27 18:23:31 +04:00
parent d5f312f200
commit a2e88b4e76
46 changed files with 1600 additions and 742 deletions

9
deploy/showcase/checks/flap.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
# Alternates between ok and critical every ~30 seconds to demonstrate flapping.
slot=$(( $(date +%s) / 30 % 2 ))
if [ "$slot" -eq 0 ]; then
echo "critical: flap window down"
exit 2
fi
echo "ok: flap window up"
exit 0

View File

@@ -0,0 +1,5 @@
#!/bin/sh
# Sleeps longer than the configured timeout to demonstrate timeout handling.
sleep 30
echo "should never reach here"
exit 0