Add uptime-kuma examples

This commit is contained in:
Julian-Samuel Gebühr 2022-09-10 01:00:36 +02:00
parent af62a29266
commit 149ac1624d
4 changed files with 216 additions and 0 deletions

3
CHANGELOG.md Normal file
View File

@ -0,0 +1,3 @@
# September 2022
* Add [uptime-kuma](https://github.com/louislam/uptime-kuma) example

View 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"
}

View 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"
}

View 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"
}