mirror of
https://github.com/moan0s/alertbot.git
synced 2024-10-01 06:25:35 -04:00
Add uptime-kuma examples
This commit is contained in:
parent
af62a29266
commit
149ac1624d
3
CHANGELOG.md
Normal file
3
CHANGELOG.md
Normal file
@ -0,0 +1,3 @@
|
||||
# September 2022
|
||||
|
||||
* Add [uptime-kuma](https://github.com/louislam/uptime-kuma) example
|
72
alert_examples/uptime-kuma-503-alert.http
Normal file
72
alert_examples/uptime-kuma-503-alert.http
Normal file
@ -0,0 +1,72 @@
|
||||
### Send POST request with json body
|
||||
POST https://synapse.hyteck.de/_matrix/maubot/plugin/alertbot/webhook/!zOcbWjsWzdREnihgeC:hyteck.de
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"heartbeat": {
|
||||
"monitorID": 5,
|
||||
"status": 0,
|
||||
"time": "2022-09-09 20:46:32.855",
|
||||
"msg": "Request failed with status code 503",
|
||||
"important": true,
|
||||
"duration": 60
|
||||
},
|
||||
"monitor": {
|
||||
"id": 5,
|
||||
"name": "S1",
|
||||
"url": "http://s1.hyteck.de",
|
||||
"method": "GET",
|
||||
"hostname": null,
|
||||
"port": null,
|
||||
"maxretries": 0,
|
||||
"weight": 2000,
|
||||
"active": 1,
|
||||
"type": "http",
|
||||
"interval": 60,
|
||||
"retryInterval": 60,
|
||||
"resendInterval": 0,
|
||||
"keyword": null,
|
||||
"expiryNotification": false,
|
||||
"ignoreTls": false,
|
||||
"upsideDown": false,
|
||||
"maxredirects": 10,
|
||||
"accepted_statuscodes": [
|
||||
"200-299"
|
||||
],
|
||||
"dns_resolve_type": "A",
|
||||
"dns_resolve_server": "1.1.1.1",
|
||||
"dns_last_result": null,
|
||||
"pushToken": null,
|
||||
"docker_container": "",
|
||||
"docker_host": null,
|
||||
"proxyId": null,
|
||||
"notificationIDList": {
|
||||
"1": true
|
||||
},
|
||||
"tags": [
|
||||
{
|
||||
"id": 4,
|
||||
"monitor_id": 5,
|
||||
"tag_id": 2,
|
||||
"value": "",
|
||||
"name": "Hyteck",
|
||||
"color": "#2563EB"
|
||||
}
|
||||
],
|
||||
"mqttUsername": "",
|
||||
"mqttPassword": "",
|
||||
"mqttTopic": "",
|
||||
"mqttSuccessMessage": "",
|
||||
"databaseConnectionString": null,
|
||||
"databaseQuery": null,
|
||||
"authMethod": null,
|
||||
"authWorkstation": null,
|
||||
"authDomain": null,
|
||||
"radiusUsername": null,
|
||||
"radiusPassword": null,
|
||||
"radiusCalledStationId": null,
|
||||
"radiusCallingStationId": null,
|
||||
"radiusSecret": null
|
||||
},
|
||||
"msg": "[S1] [🔴 Down] Request failed with status code 503"
|
||||
}
|
68
alert_examples/uptime-kuma-503-alert.json
Normal file
68
alert_examples/uptime-kuma-503-alert.json
Normal file
@ -0,0 +1,68 @@
|
||||
{
|
||||
"heartbeat": {
|
||||
"monitorID": 5,
|
||||
"status": 0,
|
||||
"time": "2022-09-09 20:46:32.855",
|
||||
"msg": "Request failed with status code 503",
|
||||
"important": true,
|
||||
"duration": 60
|
||||
},
|
||||
"monitor": {
|
||||
"id": 5,
|
||||
"name": "S1",
|
||||
"url": "http://s1.hyteck.de",
|
||||
"method": "GET",
|
||||
"hostname": null,
|
||||
"port": null,
|
||||
"maxretries": 0,
|
||||
"weight": 2000,
|
||||
"active": 1,
|
||||
"type": "http",
|
||||
"interval": 60,
|
||||
"retryInterval": 60,
|
||||
"resendInterval": 0,
|
||||
"keyword": null,
|
||||
"expiryNotification": false,
|
||||
"ignoreTls": false,
|
||||
"upsideDown": false,
|
||||
"maxredirects": 10,
|
||||
"accepted_statuscodes": [
|
||||
"200-299"
|
||||
],
|
||||
"dns_resolve_type": "A",
|
||||
"dns_resolve_server": "1.1.1.1",
|
||||
"dns_last_result": null,
|
||||
"pushToken": null,
|
||||
"docker_container": "",
|
||||
"docker_host": null,
|
||||
"proxyId": null,
|
||||
"notificationIDList": {
|
||||
"1": true
|
||||
},
|
||||
"tags": [
|
||||
{
|
||||
"id": 4,
|
||||
"monitor_id": 5,
|
||||
"tag_id": 2,
|
||||
"value": "",
|
||||
"name": "Hyteck",
|
||||
"color": "#2563EB"
|
||||
}
|
||||
],
|
||||
"mqttUsername": "",
|
||||
"mqttPassword": "",
|
||||
"mqttTopic": "",
|
||||
"mqttSuccessMessage": "",
|
||||
"databaseConnectionString": null,
|
||||
"databaseQuery": null,
|
||||
"authMethod": null,
|
||||
"authWorkstation": null,
|
||||
"authDomain": null,
|
||||
"radiusUsername": null,
|
||||
"radiusPassword": null,
|
||||
"radiusCalledStationId": null,
|
||||
"radiusCallingStationId": null,
|
||||
"radiusSecret": null
|
||||
},
|
||||
"msg": "[S1] [🔴 Down] Request failed with status code 503"
|
||||
}
|
73
alert_examples/uptime-kuma-503-resolved.http
Normal file
73
alert_examples/uptime-kuma-503-resolved.http
Normal file
@ -0,0 +1,73 @@
|
||||
### Send POST request with json body
|
||||
POST https://synapse.hyteck.de/_matrix/maubot/plugin/alertbot/webhook/!zOcbWjsWzdREnihgeC:hyteck.de
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"heartbeat": {
|
||||
"monitorID": 5,
|
||||
"status": 1,
|
||||
"time": "2022-09-09 20:59:33.156",
|
||||
"msg": "200 - OK",
|
||||
"ping": 4,
|
||||
"important": true,
|
||||
"duration": 60
|
||||
},
|
||||
"monitor": {
|
||||
"id": 5,
|
||||
"name": "S1",
|
||||
"url": "http://s1.hyteck.de",
|
||||
"method": "GET",
|
||||
"hostname": null,
|
||||
"port": null,
|
||||
"maxretries": 0,
|
||||
"weight": 2000,
|
||||
"active": 1,
|
||||
"type": "http",
|
||||
"interval": 60,
|
||||
"retryInterval": 60,
|
||||
"resendInterval": 0,
|
||||
"keyword": null,
|
||||
"expiryNotification": false,
|
||||
"ignoreTls": false,
|
||||
"upsideDown": false,
|
||||
"maxredirects": 10,
|
||||
"accepted_statuscodes": [
|
||||
"200-299"
|
||||
],
|
||||
"dns_resolve_type": "A",
|
||||
"dns_resolve_server": "1.1.1.1",
|
||||
"dns_last_result": null,
|
||||
"pushToken": null,
|
||||
"docker_container": "",
|
||||
"docker_host": null,
|
||||
"proxyId": null,
|
||||
"notificationIDList": {
|
||||
"1": true
|
||||
},
|
||||
"tags": [
|
||||
{
|
||||
"id": 4,
|
||||
"monitor_id": 5,
|
||||
"tag_id": 2,
|
||||
"value": "",
|
||||
"name": "Hyteck",
|
||||
"color": "#2563EB"
|
||||
}
|
||||
],
|
||||
"mqttUsername": "",
|
||||
"mqttPassword": "",
|
||||
"mqttTopic": "",
|
||||
"mqttSuccessMessage": "",
|
||||
"databaseConnectionString": null,
|
||||
"databaseQuery": null,
|
||||
"authMethod": null,
|
||||
"authWorkstation": null,
|
||||
"authDomain": null,
|
||||
"radiusUsername": null,
|
||||
"radiusPassword": null,
|
||||
"radiusCalledStationId": null,
|
||||
"radiusCallingStationId": null,
|
||||
"radiusSecret": null
|
||||
},
|
||||
"msg": "[S1] [✅ Up] 200 - OK"
|
||||
}
|
Loading…
Reference in New Issue
Block a user