-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.json
72 lines (72 loc) · 2.18 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
{
"name": "PostHog ilert plugin",
"url": "https://github.com/iLert/posthog-ilert-plugin",
"description": "This plugin retrieves a trends graph every minute and send an alert to ilert if it exceeds a predetermined threshold.",
"main": "index.js",
"posthogVersion": ">=1.26.0",
"config": [
{
"key": "posthogApiKey",
"hint": "Your Personal API key. It is not the same as the Project API key",
"name": "PostHog API Key",
"type": "string",
"secret": true,
"default": "",
"required": true
},
{
"key": "posthogProjectId",
"name": "PostHog Project ID",
"type": "string",
"required": true
},
{
"key": "posthogTrendUrl",
"name": "PostHog Trend URL",
"type": "string",
"required": true
},
{
"key": "operator",
"name": "Comparison operation",
"type": "choice",
"default": "≤ Less than or equal",
"hint": "Plugin alerts if $last_datapoint ≤ threshold, otherwise if $last_datapoint ≥ threshold",
"choices": [
"≤ Less than or equal",
"≥ Greater than or equal"
],
"required": true
},
{
"key": "threshold",
"name": "Threshold",
"type": "string",
"default": "0",
"required": true
},
{
"key": "ilertApiKey",
"hint": "Your personal ilert alertsource API key",
"name": "ilert API Key",
"type": "string",
"secret": true,
"default": "",
"required": true
},
{
"key": "ilertAlertSummary",
"name": "ilert alert Summary",
"type": "string",
"default": "Alert summary",
"required": true
},
{
"key": "ilertAlertDetails",
"name": "ilert alert Details",
"type": "string",
"default": "Alert details",
"required": true
}
]
}