a compiling proof of concept
- abstract type - http, tcp, icmp & dns monitor types - unmarshal from json into any monitor type
This commit is contained in:
@@ -1,21 +1,20 @@
|
||||
{
|
||||
"api_url": "https://demo.cachethq.io/api/v1",
|
||||
"api_token": "9yMHsdioQosnyVK4iCVR",
|
||||
"insecure_api": true,
|
||||
"api": {
|
||||
"url": "https://demo.cachethq.io/api/v1",
|
||||
"token": "9yMHsdioQosnyVK4iCVR",
|
||||
"insecure": true
|
||||
},
|
||||
"monitors": [
|
||||
{
|
||||
"name": "google",
|
||||
"url": "https://google.com",
|
||||
"url": "https://google.com",
|
||||
"threshold": 80,
|
||||
"component_id": 1,
|
||||
"interval": 10,
|
||||
"timeout": 5,
|
||||
"headers": [
|
||||
{
|
||||
"header": "Authorization",
|
||||
"value": "Basic <hash>"
|
||||
}
|
||||
],
|
||||
"headers": {
|
||||
"Authorization": "Basic <hash>"
|
||||
},
|
||||
"expected_status_code": 200,
|
||||
"strict_tls": true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user