-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathplugin.json
90 lines (88 loc) · 2.71 KB
/
plugin.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"name" : "Boundary Http Check Plugin",
"version" : "1.2",
"tags" : "http",
"description" : "Polls a set of URLs and reports back the response time",
"icon" : "icon.png",
"command" : "node index.js",
"postExtract" : "npm install",
"command_lua" : "boundary-meter init.lua",
"postExtract_lua" : "",
"ignore" : "node_modules",
"metrics" : [ "HTTP_RESPONSETIME" ],
"paramArray" : { "itemTitle" : ["source"], "schemaTitle" : "Endpoint"},
"paramSchema" : [
{
"title" : "Source",
"name" : "source",
"description" : "The source to display in the legend for the endpoint. Ex. www.google.com",
"type" : "string",
"required" : true
},
{
"title" : "Poll Time (sec)",
"name" : "pollInterval",
"description" : "The Poll Interval to call your endpoint in seconds. Ex. 5",
"type" : "string",
"default" : 5,
"required" : true
},
{
"title": "Method",
"name": "method",
"description": "The Method of the endpoint",
"type" : { "enum" : [["GET", "GET"], ["POST", "POST"], ["PUT", "PUT"], ["DEL", "DEL"]] },
"required": true
},
{
"title": "Protocol",
"name": "protocol",
"description": "The protocol of the endpoint",
"type" : { "enum" : [["HTTP", "http"], ["HTTPS", "https"]]},
"required": true
},
{
"title": "URL",
"name": "url",
"description": "The URL of the endpoint. For example, www.graphdat.com or www.graphdat.com:8080/some-random-page",
"type": "string",
"required": true
},
{
"title": "Ignore Status Code",
"name": "ignoreStatusCode",
"description": "If any response from the server is considered valid, even an error, enable this.",
"type": "boolean",
"default": false
},
{
"title": "Enable Debug Output",
"name": "debugEnabled",
"description": "If you are having issues with the plugin, you can enable additional debugging output to be shown in the relay console",
"type": "boolean",
"default": false
},
{
"title": "Username",
"name": "username",
"description": "(optional) The username required to access the endpoint",
"type": "string",
"required": false
},
{
"title": "Password",
"name": "password",
"description": "(optional) The password required to access the endpoint",
"type": "password",
"required": false
},
{
"title": "POST data",
"name": "postdata",
"description": "(optional) Additional information to pass along to the endpoint. Key Values pairs, \"key=value\" one per line",
"type": "array",
"items" : { "type" : "string" },
"required": false
}
]
}