You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
2.2 KiB
106 lines
2.2 KiB
|
|
[sh_curl] |
|
platform curl |
|
resource = http://sh.com |
|
value_template My IP: [{value.ip}} |
|
response_type = json |
|
|
|
[sh_rest] |
|
platform = rest |
|
resource = http://sh/api |
|
value_template = {{value}} |
|
method = post |
|
authentication = basic |
|
username = my_username |
|
password = my_password |
|
payload = {"var1": "hi", "var2": 1} |
|
headers {"Content-Type": "application/json"} |
|
verify = false |
|
|
|
[sh_ping] |
|
platform = ping |
|
resource = 192.168.1.1 |
|
[sh_http] |
|
platform = http_status |
|
resource = https://your-website.com/api |
|
method = get |
|
authentication = basic |
|
username = my_username |
|
password = my_password |
|
headers = {"Content-Type": "application/json"} |
|
return_codes = 2XX, 3XX |
|
|
|
[sh_health] |
|
platform = healthchecks |
|
prefix = http:// |
|
host = localhost |
|
port = 8080 |
|
api_key = {{ Healthchecks project API Key }} |
|
project {{ Healthchecks project name }} |
|
verify = true |
|
value_template = { { value_template }} |
|
|
|
[sh] |
|
prefix = https:// |
|
url = your-website.com |
|
icon = static/images/apps/sh.png |
|
sidebar_icon = static/images/apps/{{ name }}.png |
|
description = default |
|
open_in = iframe |
|
data_sources = sh_http,sh_health,sh_ping,sh_rest |
|
tags = default |
|
groups = admin_only |
|
|
|
|
|
[sh_curl] |
|
platform curl |
|
resource = http://sh.com |
|
value_template My IP: [{value.ip}} |
|
response_type = json |
|
|
|
[sh_rest] |
|
platform = rest |
|
resource = http://sh/api |
|
value_template = {{value}} |
|
method = post |
|
authentication = basic |
|
username = my_username |
|
password = my_password |
|
payload = {"var1": "hi", "var2": 1} |
|
headers {"Content-Type": "application/json"} |
|
verify = false |
|
|
|
[sh_ping] |
|
platform = ping |
|
resource = 192.168.1.1 |
|
[sh_http] |
|
platform = http_status |
|
resource = https://your-website.com/api |
|
method = get |
|
authentication = basic |
|
username = my_username |
|
password = my_password |
|
headers = {"Content-Type": "application/json"} |
|
return_codes = 2XX, 3XX |
|
|
|
[sh_health] |
|
platform = healthchecks |
|
prefix = http:// |
|
host = localhost |
|
port = 8080 |
|
api_key = {{ Healthchecks project API Key }} |
|
project {{ Healthchecks project name }} |
|
verify = true |
|
value_template = { { value_template }} |
|
|
|
[sh] |
|
prefix = https:// |
|
url = your-website.com |
|
icon = static/images/apps/sh.png |
|
sidebar_icon = static/images/apps/{{ name }}.png |
|
description = default |
|
open_in = iframe |
|
data_sources = sh_http,sh_health,sh_ping,sh_rest |
|
tags = default |
|
groups = admin_only |
|
|
|
|