-
Notifications
You must be signed in to change notification settings - Fork 3
/
requests.http
175 lines (145 loc) · 3.1 KB
/
requests.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
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
# List scripts
GET http://localhost:7080/scripts
Cache-Control: no-cache
Content-Type: application/json
###
# List jobs
GET http://localhost:7080/jobs
Cache-Control: no-cache
Content-Type: application/json
###
# Create all-at-once job
POST http://localhost:7080/jobs
Cache-Control: no-cache
Content-Type: application/json
{
"id": "65d53a9b-26f4-4040-8e89-9c7f5906a0e2",
"script": "all_at_once",
"gauges": {
"g001": {},
"g002": {}
},
"cron": "* * * * *"
}
###
# Get all-at-once job
GET http://localhost:7080/jobs/65d53a9b-26f4-4040-8e89-9c7f5906a0e2
Cache-Control: no-cache
Content-Type: application/json
###
# Get all-at-once job gauge statuses
GET http://localhost:7080/jobs/65d53a9b-26f4-4040-8e89-9c7f5906a0e2/gauges
Cache-Control: no-cache
Content-Type: application/json
###
# Get all at one job measurements
GET http://localhost:7080/measurements/all_at_once
Cache-Control: no-cache
Content-Type: application/json
###
# Delete all-at-once job
DELETE http://localhost:7080/jobs/65d53a9b-26f4-4040-8e89-9c7f5906a0e2
Cache-Control: no-cache
Content-Type: application/json
###
# Create one-by-one job
POST http://localhost:7080/jobs
Cache-Control: no-cache
Content-Type: application/json
{
"id": "78a9e166-2a73-4be2-a3fb-71d254eb7868",
"script": "one_by_one",
"gauges": {
"g000": {},
"g001": {},
"g002": {},
"g003": {},
"g004": {},
"g005": {},
"g006": {},
"g007": {},
"g008": {},
"g009": {},
"g010": {},
"g011": {},
"g012": {},
"g013": {},
"g014": {},
"g015": {},
"g016": {},
"g017": {},
"g018": {},
"g019": {},
"g020": {},
"g021": {},
"g022": {},
"g023": {},
"g024": {},
"g025": {},
"g026": {},
"g027": {},
"g028": {},
"g029": {},
"g030": {},
"g031": {},
"g032": {},
"g033": {},
"g034": {},
"g035": {},
"g036": {},
"g037": {},
"g038": {},
"g039": {},
"g040": {},
"g041": {},
"g042": {},
"g043": {},
"g044": {},
"g045": {},
"g046": {},
"g047": {},
"g048": {},
"g049": {},
"g050": {},
"g051": {},
"g052": {},
"g053": {},
"g054": {},
"g055": {},
"g056": {},
"g057": {},
"g058": {},
"g059": {}
}
}
###
# Get one by one job
GET http://localhost:7080/jobs/78a9e166-2a73-4be2-a3fb-71d254eb7868
Cache-Control: no-cache
Content-Type: application/json
###
# Get one by one job gauge statuses
GET http://localhost:7080/jobs/78a9e166-2a73-4be2-a3fb-71d254eb7868/gauges
Cache-Control: no-cache
Content-Type: application/json
###
# Get one by one job measurements
GET http://localhost:7080/measurements/one_by_one
Cache-Control: no-cache
Content-Type: application/json
###
# Delete one by one job
DELETE http://localhost:7080/jobs/78a9e166-2a73-4be2-a3fb-71d254eb7868
Cache-Control: no-cache
Content-Type: application/json
###
# List latest measurements
GET http://localhost:7080/measurements/latest?scripts=all_at_once
Cache-Control: no-cache
Content-Type: application/json
###
# Get version
GET http://localhost:7080/version
Cache-Control: no-cache
Content-Type: application/json
###