This repository has been archived by the owner on Jul 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
get-sli.http
68 lines (59 loc) · 2.06 KB
/
get-sli.http
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
# For a quick start check out our HTTP Requests collection (Tools|HTTP Client|Open HTTP Requests Collection) or
# paste cURL into the file and request will be converted to HTTP Request format.
#
# Following HTTP Request Live Templates are available:
# * 'gtrp' and 'gtr' create a GET request with or without query parameters;
# * 'ptr' and 'ptrp' create a POST request with a simple or parameter-like body;
# * 'mptr' and 'fptr' create a POST request to submit a form with a text or file field (multipart/form-data);
POST http://localhost:8080/
Accept: application/json
Cache-Control: no-cache
Content-Type: application/cloudevents+json
{
"contenttype": "application/json",
"data": {
"sliProvider": "prometheus",
"project": "sockshop",
"service": "carts",
"stage": "dev",
"start": "2019-10-20T07:57:27.152330783Z",
"end": "2019-10-22T08:57:27.152330783Z",
"indicators": ["throughput", "error_rate", "request_latency_p50", "request_latency_p90", "request_latency_p95"]
},
"id": "b3c3c357-eb3d-4f90-b26e-9ebfedfb8dbf",
"source": "jmeter-service",
"specversion": "0.2",
"time": "2019-10-14T08:00:09.416Z",
"type": "sh.keptn.internal.event.get-sli",
"shkeptncontext": "71270488-b923-400a-8ac5-7f471b15a181"
}
###
POST http://localhost:8081/
Accept: application/json
Cache-Control: no-cache
Content-Type: application/cloudevents+json
{
"contenttype": "application/json",
"data": {
"sliProvider": "prometheus",
"project": "sockshop",
"service": "carts",
"stage": "dev",
"start": "2019-10-20T07:57:27.152330783Z",
"end": "2019-10-22T08:57:27.152330783Z",
"indicators": ["throughput", "error_rate", "request_latency_p50", "request_latency_p90", "request_latency_p95"],
"customFilters": [
{
"key": "handler",
"value": "=~.+ItemsController"
}
]
},
"id": "b3c3c357-eb3d-4f90-b26e-9ebfedfb8dbf",
"source": "jmeter-service",
"specversion": "0.2",
"time": "2019-10-14T08:00:09.416Z",
"type": "sh.keptn.internal.event.get-sli",
"shkeptncontext": "71270488-b923-400a-8ac5-7f471b15a181"
}
###