-
Notifications
You must be signed in to change notification settings - Fork 3.6k
/
Copy pathnotification_endpoint.json
112 lines (112 loc) · 2.59 KB
/
notification_endpoint.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[
{
"apiVersion": "influxdata.com/v2alpha1",
"kind": "Label",
"metadata": {
"name": "label-1"
}
},
{
"apiVersion": "influxdata.com/v2alpha1",
"kind": "NotificationEndpointSlack",
"metadata": {
"name": "slack-notification-endpoint"
},
"spec":{
"name": "slack name",
"description": "slack desc",
"url": "https://hooks.slack.com/services/bip/piddy/boppidy",
"token": "tokenval",
"status": "active",
"associations": [
{
"kind": "Label",
"name": "label-1"
}
]
}
},
{
"apiVersion": "influxdata.com/v2alpha1",
"kind": "NotificationEndpointHTTP",
"metadata": {
"name": "http-none-auth-notification-endpoint"
},
"spec":{
"description": "http none auth desc",
"method": "GET",
"type": "none",
"url": "https://www.example.com/endpoint/noneauth",
"status": "active",
"associations": [
{
"kind": "Label",
"name": "label-1"
}
]
}
},
{
"apiVersion": "influxdata.com/v2alpha1",
"kind": "NotificationEndpointHTTP",
"metadata": {
"name": "http-basic-auth-notification-endpoint"
},
"spec":{
"name": "basic endpoint name",
"description": "http basic auth desc",
"method": "POST",
"type": "basic",
"url": "https://www.example.com/endpoint/basicauth",
"username": "secret username",
"password": "secret password",
"status": "inactive",
"associations": [
{
"kind": "Label",
"name": "label-1"
}
]
}
},
{
"apiVersion": "influxdata.com/v2alpha1",
"kind": "NotificationEndpointHTTP",
"metadata": {
"name": "http-bearer-auth-notification-endpoint"
},
"spec":{
"description": "http bearer auth desc",
"type": "bearer",
"method": "PUT",
"url": "https://www.example.com/endpoint/bearerauth",
"token": "secret token",
"associations": [
{
"kind": "Label",
"name": "label-1"
}
]
}
},
{
"apiVersion": "influxdata.com/v2alpha1",
"kind": "NotificationEndpointPagerDuty",
"metadata": {
"name": "pager-duty-notification-endpoint"
},
"spec":{
"name": "pager duty name",
"description": "pager duty desc",
"url": "http://localhost:8080/orgs/7167eb6719fa34e5/alert-history",
"routingKey": "secret routing-key",
"status": "active",
"associations": [
{
"kind": "Label",
"name": "label-1"
}
]
}
}
]