This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
keptn-notifications.postman_collection.json
233 lines (233 loc) · 10.1 KB
/
keptn-notifications.postman_collection.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
{
"info": {
"_postman_id": "2bb7aba7-e7de-4c39-9956-e666b0c0cbd6",
"name": "keptn-notifications",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "configuration-changed - Image 100",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"sh.keptn.event.configuration.change\",\n \"specversion\": \"0.2\",\n \"source\": \"https://github.com/keptn/keptn/cli\",\n \"id\": \"49ac0dec-a83b-4bc1-9dc0-1f050c7e781b\",\n \"time\": \"2019-06-07T07:02:15.64489Z\",\n \"contenttype\": \"application/json\",\n \"shkeptncontext\":\"49ac0dec-a83b-4bc1-9dc0-1f050c7e789b\",\n \"data\": {\n \"project\": \"sockshop\",\n \"stage\": \"staging\",\n \"service\": \"carts\",\n \"valuesCanary\": {\n \t\"image\": \"docker.io/keptnexamples/carts:0.9.3\"\n\t\t},\n \"canary\": {\n \t\t\"action\": \"set\",\n \t\t\"value\": 100\n\t\t},\n\t\t\"channelInfo\": {\n\t\t\t\"channelID\": \"3b85f5f2-6c50-4bb1-b198-e6a9d0a97d50\",\n\t\t\t\"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MDE1NjU4ODN9.y1_01upjhdKCrcy3QK6zaH_wC8AqzCtsyWkokqGSgGY\"\n\t\t}\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080"
}
},
"response": []
},
{
"name": "configuration-changed - New Image Copy",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"sh.keptn.event.configuration.change\",\n \"specversion\": \"0.2\",\n \"source\": \"https://github.com/keptn/keptn/cli\",\n \"id\": \"49ac0dec-a83b-4bc1-9dc0-1f050c7e781b\",\n \"time\": \"2019-06-07T07:02:15.64489Z\",\n \"contenttype\": \"application/json\",\n \"shkeptncontext\":\"49ac0dec-a83b-4bc1-9dc0-1f050c7e789b\",\n \"data\": {\n \"project\": \"sockshop\",\n \"stage\": \"staging\",\n \"service\": \"carts\",\n \"valuesCanary\": {\n \t\"image\": \"docker.io/keptnexamples/carts:0.9.3\"\n\t\t},\n \"canary\": {\n \t\t\"action\": \"promote\"\n\t\t},\n\t\t\"channelInfo\": {\n\t\t\t\"channelID\": \"3b85f5f2-6c50-4bb1-b198-e6a9d0a97d50\",\n\t\t\t\"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MDE1NjU4ODN9.y1_01upjhdKCrcy3QK6zaH_wC8AqzCtsyWkokqGSgGY\"\n\t\t}\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080"
}
},
"response": []
},
{
"name": "configuration-changed (placeholder)",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"sh.keptn.event.configuration.change\",\n \"specversion\": \"0.2\",\n \"source\": \"https://github.com/keptn/keptn/cli\",\n \"id\": \"49ac0dec-a83b-4bc1-9dc0-1f050c7e781b\",\n \"time\": \"2019-06-07T07:02:15.64489Z\",\n \"contenttype\": \"application/json\",\n \"shkeptncontext\":\"49ac0dec-a83b-4bc1-9dc0-1f050c7e789b\",\n \"data\": {\n \"project\": \"sockshop\",\n \"stage\": \"staging\",\n \"service\": \"carts\",\n \"valuesCanary\": [\n\t\t\t{\n\t\t\t\t\"Key\": \"image\",\n\t\t\t\t\"Value\": \"docker.io/keptnexamples/carts:0.9.3\"\n\t\t\t}\n\t\t],\n \"canary\": [\n\t\t\t{\n\t\t\t\t\"Key\": \"action\",\n\t\t\t\t\"Value\": \"set\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"Key\": \"value\",\n\t\t\t\t\"Value\": 100\n\t\t\t}\n\t\t],\n\t\t\"channelInfo\": [\n\t\t\t{\n\t\t\t\t\"Key\": \"channelID\",\n\t\t\t\t\"Value\": \"3b85f5f2-6c50-4bb1-b198-e6a9d0a97d50\"\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"Key\": \"token\",\n\t\t\t\t\"Value\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MDE1NjU4ODN9.y1_01upjhdKCrcy3QK6zaH_wC8AqzCtsyWkokqGSgGY\"\n\t\t\t}\n\t\t]\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080"
}
},
"response": []
},
{
"name": "deployment-finished",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"sh.keptn.events.deployment-finished\",\n \"specversion\": \"0.2\",\n \"source\": \"https://github.com/keptn/keptn/helm-service\",\n \"id\": \"49ac0dec-a83b-4bc1-9dc0-1f050c7e781b\",\n \"time\": \"2019-06-07T07:02:15.64489Z\",\n \"contenttype\": \"application/json\",\n \"shkeptncontext\":\"49ac0dec-a83b-4bc1-9dc0-1f050c7e789b\",\n \"data\": {\n \"project\": \"sockshop\",\n \"stage\": \"staging\",\n \"service\": \"carts\",\n \"teststrategy\": \"performance\",\n \"deploymentstrategy\": \"direct\"\n }\n}\n",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080"
}
},
"response": []
},
{
"name": "tests-finished",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"sh.keptn.events.tests-finished\",\n \"specversion\": \"0.2\",\n \"source\": \"https://github.com/keptn/keptn/jmeter-service\",\n \"id\": \"49ac0dec-a83b-4bc1-9dc0-1f050c7e781b\",\n \"time\": \"2019-06-07T07:02:15.64489Z\",\n \"contenttype\": \"application/json\",\n \"shkeptncontext\":\"49ac0dec-a83b-4bc1-9dc0-1f050c7e789b\",\n \"data\": {\n \"project\": \"sockshop\",\n \"stage\": \"staging\",\n \"service\": \"carts\",\n \"teststrategy\": \"performance\",\n \"deploymentstrategy\": \"direct\",\n \"startedat\": \"2019-09-01 12:03\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080"
}
},
"response": []
},
{
"name": "evaluation-done",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"sh.keptn.events.evaluation-done\",\n \"specversion\": \"0.2\",\n \"source\": \"https://github.com/keptn/keptn/pitometer-service\",\n \"id\": \"49ac0dec-a83b-4bc1-9dc0-1f050c7e781b\",\n \"time\": \"2019-06-07T07:02:15.64489Z\",\n \"contenttype\": \"application/json\",\n \"shkeptncontext\":\"49ac0dec-a83b-4bc1-9dc0-1f050c7e789b\",\n \"data\":{ \n \"project\":\"sockshop\",\n \"service\":\"carts\",\n \"image\":\"keptnexamples/carts\",\n \"tag\":\"0.7.1\",\n \"stage\":\"dev\",\n \"teststrategy\":\"functional\",\n \"deploymentstrategy\":\"direct\",\n \"evaluationpassed\":\"false\",\n \"evaluationdetails\": {\n \"options\": {\n \"timeStart\": 1558428643,\n \"timeEnd\": 1558429200\n },\n \"totalScore\": 50,\n \"objectives\": {\n \"pass\": 90,\n \"warning\": 75\n },\n \"indicatorResults\": [\n {\n \"id\": \"ResponseTime_Service\",\n \"violations\": [],\n \"score\": 50\n },\n {\n \"id\": \"FailureRate_Service\",\n \"violations\": [\n {\n \"value\": 12.55862428348098,\n \"key\": \"SERVICE-34E5F883CB9DF269\",\n \"breach\": \"upperSevere\",\n \"threshold\": 10\n }\n ],\n \"score\": 0\n }\n ],\n \"result\": \"fail\"\n }\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080"
}
},
"response": []
},
{
"name": "problem",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"type\": \"sh.keptn.events.problem\",\n \"specversion\": \"0.2\",\n \"source\": \"dynatrace\",\n \"id\": \"49ac0dec-a83b-4bc1-9dc0-1f050c7e781b\",\n \"time\": \"2019-06-07T07:02:15.64489Z\",\n \"contenttype\": \"application/json\",\n \"shkeptncontext\":\"49ac0dec-a83b-4bc1-9dc0-1f050c7e789b\",\n \"data\": {\n \"State\": \"open\",\n \"ProblemID\": \"12345\",\n\t\"PID\": \"9999\",\n \"ProblemTitle\": \"problem title\",\n \"ProblemDetails\": {\n\t\t\t\"ProblemDetailsJSON\": \"ProblemDetailsJSON\"\n\t\t},\n\t\"ImpactedEntity\": \"MyHost1, MyService1\",\n \"ImpactedEntities\": {\n\t\t\t\"ImpactedEntities\": [{\n\t\t\t\t\"type \": \"HOST \",\n\t\t\t\t\"name\": \"MyHost1 \",\n\t\t\t\t\"entity\": \"HOST - XXXXXXXXXXXXX\"\n\t\t\t}, {\n\t\t\t\t\"type\": \"SERVICE \",\n\t\t\t\t\"name\": \"MyService1\",\n\t\t\t\t\"entity\": \"SERVICE - XXXXXXXXXXXXX\"\n\t\t\t}]\n\t\t}\n }\n}\n\n\n",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080"
}
},
"response": []
}
]
}