hawkular-client 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +1 -0
- data/.gitignore +2 -1
- data/.rubocop.yml +19 -6
- data/CHANGES.rdoc +13 -3
- data/README.rdoc +9 -3
- data/hawkularclient.gemspec +8 -4
- data/lib/alerts/alerts_api.rb +202 -32
- data/lib/hawkular.rb +35 -67
- data/lib/hawkular_all.rb +2 -0
- data/lib/inventory/inventory_api.rb +459 -130
- data/lib/metrics/metric_api.rb +14 -9
- data/lib/operations/operations_api.rb +247 -0
- data/lib/tokens/tokens_api.rb +33 -0
- data/lib/version.rb +1 -1
- data/spec/integration/alerts_spec.rb +272 -20
- data/spec/integration/hello-world-definitions.json +46 -0
- data/spec/integration/inventory_spec.rb +253 -89
- data/spec/integration/metric_spec.rb +36 -0
- data/spec/integration/operations_spec.rb +420 -0
- data/spec/integration/tokens_spec.rb +45 -0
- data/spec/resources/driver.jar +0 -0
- data/spec/resources/sample.war +0 -0
- data/spec/spec_helper.rb +30 -6
- data/spec/unit/base_spec.rb +22 -1
- data/spec/unit/canonical_path_spec.rb +92 -0
- data/spec/vcr/vcr_setup.rb +3 -4
- data/spec/vcr_cassettes/Alert/EndToEnd/Should_create_and_fire_a_trigger.yml +1187 -0
- data/spec/vcr_cassettes/Alert/Events/Should_list_events.yml +101 -0
- data/spec/vcr_cassettes/Alert/Events/Should_list_events_using_criteria.yml +79 -0
- data/spec/vcr_cassettes/Alert/Events/Should_not_list_events_using_criteria.yml +49 -0
- data/spec/vcr_cassettes/Alert/Triggers/Should_bulk_load_triggers.yml +225 -0
- data/spec/vcr_cassettes/Alert/Triggers/Should_create_a_basic_trigger_with_action.yml +355 -0
- data/spec/vcr_cassettes/Alert/Triggers/Should_create_an_action.yml +134 -0
- data/spec/vcr_cassettes/Alert/Triggers/Should_create_an_action_for_webhooks.yml +220 -0
- data/spec/vcr_cassettes/Alert/Triggers/Should_get_the_action_definitions.yml +218 -0
- data/spec/vcr_cassettes/Alert/Triggers/Should_not_create_an_action_for_unknown_plugin.yml +46 -0
- data/spec/vcr_cassettes/Alert/Triggers/Should_not_create_an_action_for_unknown_properties.yml +134 -0
- data/spec/vcr_cassettes/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +270 -0
- data/spec/vcr_cassettes/Inventory/Client_should_listen_on_various_inventory_events.json +47 -0
- data/spec/vcr_cassettes/Inventory/Client_should_listen_on_various_inventory_events.yml +191 -0
- data/spec/vcr_cassettes/Inventory/Helpers/generate_some_events_for_websocket.yml +507 -0
- data/spec/vcr_cassettes/Inventory/Should_List_datasources_with_no_props.yml +74 -69
- data/spec/vcr_cassettes/Inventory/{Should_list_types_without_feed.yml → Should_create_a_feed.yml} +29 -32
- data/spec/vcr_cassettes/Inventory/Should_create_a_feed_again.yml +211 -0
- data/spec/vcr_cassettes/Inventory/Should_create_a_resource_.yml +355 -0
- data/spec/vcr_cassettes/Inventory/Should_create_a_resource_with_metric.yml +786 -0
- data/spec/vcr_cassettes/Inventory/Should_create_a_resourcetype.yml +205 -0
- data/spec/vcr_cassettes/Inventory/Should_create_and_delete_feed.yml +201 -0
- data/spec/vcr_cassettes/Inventory/Should_create_and_get_a_resource.yml +419 -0
- data/spec/vcr_cassettes/Inventory/Should_list_URLs.yml +39 -27
- data/spec/vcr_cassettes/Inventory/Should_list_WildFlys.yml +37 -29
- data/spec/vcr_cassettes/Inventory/Should_list_WildFlys_with_props.yml +53 -45
- data/spec/vcr_cassettes/Inventory/Should_list_all_the_resource_types.yml +177 -0
- data/spec/vcr_cassettes/Inventory/Should_list_children_of_WildFly.yml +230 -56
- data/spec/vcr_cassettes/Inventory/Should_list_feeds.yml +27 -24
- data/spec/vcr_cassettes/Inventory/Should_list_heap_metrics_for_WildFlys.yml +586 -119
- data/spec/vcr_cassettes/Inventory/Should_list_metrics_for_WildFlys.yml +220 -59
- data/spec/vcr_cassettes/Inventory/Should_list_metrics_of_given_metric_type.yml +613 -0
- data/spec/vcr_cassettes/Inventory/Should_list_metrics_of_given_resource_type.yml +333 -0
- data/spec/vcr_cassettes/Inventory/Should_list_recursive_children_of_WildFly.yml +2064 -0
- data/spec/vcr_cassettes/Inventory/Should_list_relationships_of_WildFly.yml +460 -0
- data/spec/vcr_cassettes/Inventory/Should_list_types_with_bad_feed.yml +26 -25
- data/spec/vcr_cassettes/Inventory/Should_list_types_with_feed.yml +102 -36
- data/spec/vcr_cassettes/Inventory/Should_not_find_an_unknown_resource.yml +54 -0
- data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Explicit_Credentials.yml +50 -0
- data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Implicit_Credentials.yml +50 -0
- data/spec/vcr_cassettes/Operation/Helpers/get_tenant.yml +50 -0
- data/spec/vcr_cassettes/Operation/Operation/Add_JDBC_driver_should_add_the_driver.json +26 -0
- data/spec/vcr_cassettes/Operation/Operation/Add_datasource_should_be_doable.json +26 -0
- data/spec/vcr_cassettes/Operation/Operation/Add_deployment_should_be_doable.json +26 -0
- data/spec/vcr_cassettes/Operation/Operation/Redeploy_can_be_run_multiple_times_in_parallel.json +40 -0
- data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_be_performed_and_eventually_respond_with_success.json +26 -0
- data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_not_be_performed_if_resource_path_is_wrong.json +26 -0
- data/spec/vcr_cassettes/Operation/Operation/Remove_JDBC_driver_should_be_performed_and_eventually_respond_with_success.json +26 -0
- data/spec/vcr_cassettes/Operation/Operation/Remove_datasource_should_be_performed_and_eventually_respond_with_success.json +26 -0
- data/spec/vcr_cassettes/Operation/Operation/Remove_deployment_should_be_performed_and_eventually_respond_with_success.json +26 -0
- data/spec/vcr_cassettes/Operation/Operation/Undeploy_should_be_performed_and_eventually_respond_with_success.json +26 -0
- data/spec/vcr_cassettes/Operation/Operation/should_not_be_possible_to_perform_on_closed_client.json +12 -0
- data/spec/vcr_cassettes/Operation/Websocket_connection/should_be_established.json +9 -0
- data/spec/vcr_cassettes/Tokens/Should_be_able_to_create_a_new_token_for_an_actual_user.yml +57 -0
- data/spec/vcr_cassettes/Tokens/Should_be_able_to_list_the_available_tokens.yml +49 -0
- data/spec/vcr_cassettes/Tokens/Should_get_a_401_when_attempting_to_create_a_token_with_a_wrong_password.yml +56 -0
- data/spec/vcr_cassettes/Tokens/Should_get_a_401_when_attempting_to_create_a_token_without_a_password.yml +55 -0
- metadata +175 -11
- data/lib/metrics/version.rb +0 -7
@@ -0,0 +1,355 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"properties":{},"id":"feed_may_exist","name":null,"outgoing":{},"incoming":{}}'
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Content-Length:
|
17
|
+
- '79'
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 409
|
23
|
+
message: Conflict
|
24
|
+
headers:
|
25
|
+
Content-Encoding:
|
26
|
+
- gzip
|
27
|
+
Expires:
|
28
|
+
- '0'
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache, no-store, must-revalidate
|
31
|
+
X-Powered-By:
|
32
|
+
- Undertow/1
|
33
|
+
Server:
|
34
|
+
- WildFly/10
|
35
|
+
Pragma:
|
36
|
+
- no-cache
|
37
|
+
Date:
|
38
|
+
- Fri, 19 Feb 2016 10:41:32 GMT
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
Content-Type:
|
42
|
+
- application/json
|
43
|
+
Content-Length:
|
44
|
+
- '370'
|
45
|
+
body:
|
46
|
+
encoding: ASCII-8BIT
|
47
|
+
string: !binary |-
|
48
|
+
H4sIAAAAAAAAAJWQzW7CMBCE7zzFKpdcktAmKY1AnCoqcWgrUXqKImTwhlhN
|
49
|
+
4sh2SyPEu9d2+BG0qqh88do7szvftgfgoBBcPMm1A0NwHhEpbJgqgFFwTZU2
|
50
|
+
RBVjt69GYXITDpbRwE9yjP04ikI/iVeJfxfGeHsfkUGyzPv5KNeiRUXaBX4x
|
51
|
+
qdzMhYJIWCLWQEqBhLYgcK2/UCANYFIrptrTzAv5UWNLCUSB5BUCz0EVCA2X
|
52
|
+
TDFeyyGk6bxtUKZzrEmtMg+mVKbX7KxbZ1gSpbN6erVy7K54rQirpatrXuL4
|
53
|
+
9eVt9jDRfd0Eg2Xvf75tlmWOZ5hS1PpSGqRbXRvKNuaUWsrnKivRLQa0laT6
|
54
|
+
dDL9qszI7tXhYh0UZPP+URIRsPpTm3LRBqRhQcUplkGX3YHMqnfeyYbRg8k1
|
55
|
+
SH5zEIaRQV2w5plUaJMcSO0zHIPONDbb0KFzfrj9K5YB/neoC6KHXsjsbdfb
|
56
|
+
fQOfEN7S6wIAAA==
|
57
|
+
http_version:
|
58
|
+
recorded_at: Fri, 19 Feb 2016 10:41:32 GMT
|
59
|
+
- request:
|
60
|
+
method: get
|
61
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist
|
62
|
+
body:
|
63
|
+
encoding: US-ASCII
|
64
|
+
string: ''
|
65
|
+
headers:
|
66
|
+
Accept:
|
67
|
+
- application/json
|
68
|
+
Accept-Encoding:
|
69
|
+
- gzip, deflate
|
70
|
+
Content-Type:
|
71
|
+
- application/json
|
72
|
+
User-Agent:
|
73
|
+
- Ruby
|
74
|
+
response:
|
75
|
+
status:
|
76
|
+
code: 200
|
77
|
+
message: OK
|
78
|
+
headers:
|
79
|
+
Content-Encoding:
|
80
|
+
- gzip
|
81
|
+
Expires:
|
82
|
+
- '0'
|
83
|
+
Cache-Control:
|
84
|
+
- no-cache, no-store, must-revalidate
|
85
|
+
X-Powered-By:
|
86
|
+
- Undertow/1
|
87
|
+
Server:
|
88
|
+
- WildFly/10
|
89
|
+
Pragma:
|
90
|
+
- no-cache
|
91
|
+
Date:
|
92
|
+
- Fri, 19 Feb 2016 10:41:32 GMT
|
93
|
+
Connection:
|
94
|
+
- keep-alive
|
95
|
+
Content-Type:
|
96
|
+
- application/json
|
97
|
+
Content-Length:
|
98
|
+
- '102'
|
99
|
+
body:
|
100
|
+
encoding: ASCII-8BIT
|
101
|
+
string: !binary |-
|
102
|
+
H4sIAAAAAAAAAKvmUlBQKkgsyVBSsFJQ0i+xNrIwMDJLMjbTtUhLNdE1MTY2
|
103
|
+
0rUwSbbQNTUySTU0N040s0hK00+zTktNTYnPTayMT63ILC5R0gEZk5kCNgRN
|
104
|
+
iqsWADiVKMdkAAAA
|
105
|
+
http_version:
|
106
|
+
recorded_at: Fri, 19 Feb 2016 10:41:32 GMT
|
107
|
+
- request:
|
108
|
+
method: post
|
109
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resourceTypes
|
110
|
+
body:
|
111
|
+
encoding: UTF-8
|
112
|
+
string: '{"properties":{},"id":"rt-123","name":"ResourceType","outgoing":{},"incoming":{}}'
|
113
|
+
headers:
|
114
|
+
Accept:
|
115
|
+
- application/json
|
116
|
+
Accept-Encoding:
|
117
|
+
- gzip, deflate
|
118
|
+
Content-Type:
|
119
|
+
- application/json
|
120
|
+
Content-Length:
|
121
|
+
- '81'
|
122
|
+
User-Agent:
|
123
|
+
- Ruby
|
124
|
+
response:
|
125
|
+
status:
|
126
|
+
code: 409
|
127
|
+
message: Conflict
|
128
|
+
headers:
|
129
|
+
Content-Encoding:
|
130
|
+
- gzip
|
131
|
+
Expires:
|
132
|
+
- '0'
|
133
|
+
Cache-Control:
|
134
|
+
- no-cache, no-store, must-revalidate
|
135
|
+
X-Powered-By:
|
136
|
+
- Undertow/1
|
137
|
+
Server:
|
138
|
+
- WildFly/10
|
139
|
+
Pragma:
|
140
|
+
- no-cache
|
141
|
+
Date:
|
142
|
+
- Fri, 19 Feb 2016 10:41:32 GMT
|
143
|
+
Connection:
|
144
|
+
- keep-alive
|
145
|
+
Content-Type:
|
146
|
+
- application/json
|
147
|
+
Content-Length:
|
148
|
+
- '109'
|
149
|
+
body:
|
150
|
+
encoding: ASCII-8BIT
|
151
|
+
string: !binary |-
|
152
|
+
H4sIAAAAAAAAABXMMQqAMAwF0L2n+HTp4gncHT1EodEGaiNNRIt4d+n+eK8D
|
153
|
+
PLUmbdXdY4ZfqrF13GwZnBDqVUpALI1i6qCH1RTRoHIQZINlwinKxlJ1xuB+
|
154
|
+
Gmsii1x0pC8+9/2FU7bnawAAAA==
|
155
|
+
http_version:
|
156
|
+
recorded_at: Fri, 19 Feb 2016 10:41:32 GMT
|
157
|
+
- request:
|
158
|
+
method: get
|
159
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resourceTypes/rt-123
|
160
|
+
body:
|
161
|
+
encoding: US-ASCII
|
162
|
+
string: ''
|
163
|
+
headers:
|
164
|
+
Accept:
|
165
|
+
- application/json
|
166
|
+
Accept-Encoding:
|
167
|
+
- gzip, deflate
|
168
|
+
Content-Type:
|
169
|
+
- application/json
|
170
|
+
User-Agent:
|
171
|
+
- Ruby
|
172
|
+
response:
|
173
|
+
status:
|
174
|
+
code: 200
|
175
|
+
message: OK
|
176
|
+
headers:
|
177
|
+
Content-Encoding:
|
178
|
+
- gzip
|
179
|
+
Expires:
|
180
|
+
- '0'
|
181
|
+
Cache-Control:
|
182
|
+
- no-cache, no-store, must-revalidate
|
183
|
+
X-Powered-By:
|
184
|
+
- Undertow/1
|
185
|
+
Server:
|
186
|
+
- WildFly/10
|
187
|
+
Pragma:
|
188
|
+
- no-cache
|
189
|
+
Date:
|
190
|
+
- Fri, 19 Feb 2016 10:41:33 GMT
|
191
|
+
Connection:
|
192
|
+
- keep-alive
|
193
|
+
Content-Type:
|
194
|
+
- application/json
|
195
|
+
Content-Length:
|
196
|
+
- '130'
|
197
|
+
body:
|
198
|
+
encoding: ASCII-8BIT
|
199
|
+
string: !binary |-
|
200
|
+
H4sIAAAAAAAAAC3MQQ6CMBBA0T2naLp2UpmpdWJvYdyTAtPIAiVlTCTGuxPQ
|
201
|
+
9fv5n8oYOyW9W3Mx1mlEPmJoKQBn8eCJENh3DCf0Up8pBW6zyzGL9M2Ylkbe
|
202
|
+
w6yuaCwKNZI9bMNHGmUfXmV+vkont2WSHw39Dv+6+q5ugH8sgQAAAA==
|
203
|
+
http_version:
|
204
|
+
recorded_at: Fri, 19 Feb 2016 10:41:33 GMT
|
205
|
+
- request:
|
206
|
+
method: post
|
207
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources
|
208
|
+
body:
|
209
|
+
encoding: UTF-8
|
210
|
+
string: '{"properties":{"version":1.0},"id":"r123","name":"My Resource","outgoing":{},"incoming":{},"resourceTypePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/rt;rt-123"}'
|
211
|
+
headers:
|
212
|
+
Accept:
|
213
|
+
- application/json
|
214
|
+
Accept-Encoding:
|
215
|
+
- gzip, deflate
|
216
|
+
Content-Type:
|
217
|
+
- application/json
|
218
|
+
Content-Length:
|
219
|
+
- '179'
|
220
|
+
User-Agent:
|
221
|
+
- Ruby
|
222
|
+
response:
|
223
|
+
status:
|
224
|
+
code: 409
|
225
|
+
message: Conflict
|
226
|
+
headers:
|
227
|
+
Content-Encoding:
|
228
|
+
- gzip
|
229
|
+
Expires:
|
230
|
+
- '0'
|
231
|
+
Cache-Control:
|
232
|
+
- no-cache, no-store, must-revalidate
|
233
|
+
X-Powered-By:
|
234
|
+
- Undertow/1
|
235
|
+
Server:
|
236
|
+
- WildFly/10
|
237
|
+
Pragma:
|
238
|
+
- no-cache
|
239
|
+
Date:
|
240
|
+
- Fri, 19 Feb 2016 10:41:33 GMT
|
241
|
+
Connection:
|
242
|
+
- keep-alive
|
243
|
+
Content-Type:
|
244
|
+
- application/json
|
245
|
+
Content-Length:
|
246
|
+
- '109'
|
247
|
+
body:
|
248
|
+
encoding: ASCII-8BIT
|
249
|
+
string: !binary |-
|
250
|
+
H4sIAAAAAAAAABXMMQqAMAwF0L2n+HTp4gncHT1EodEGaiNNRIt4d+n+eK8D
|
251
|
+
PLUmbdXdY4ZfqrF13GwZnBDqVUpALI1i6qCH1RTRoHIQZINlwinKxlJ1xuB+
|
252
|
+
Gmsii1x0pC8+9/2FU7bnawAAAA==
|
253
|
+
http_version:
|
254
|
+
recorded_at: Fri, 19 Feb 2016 10:41:33 GMT
|
255
|
+
- request:
|
256
|
+
method: get
|
257
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/r123
|
258
|
+
body:
|
259
|
+
encoding: US-ASCII
|
260
|
+
string: ''
|
261
|
+
headers:
|
262
|
+
Accept:
|
263
|
+
- application/json
|
264
|
+
Accept-Encoding:
|
265
|
+
- gzip, deflate
|
266
|
+
Content-Type:
|
267
|
+
- application/json
|
268
|
+
User-Agent:
|
269
|
+
- Ruby
|
270
|
+
response:
|
271
|
+
status:
|
272
|
+
code: 200
|
273
|
+
message: OK
|
274
|
+
headers:
|
275
|
+
Content-Encoding:
|
276
|
+
- gzip
|
277
|
+
Expires:
|
278
|
+
- '0'
|
279
|
+
Cache-Control:
|
280
|
+
- no-cache, no-store, must-revalidate
|
281
|
+
X-Powered-By:
|
282
|
+
- Undertow/1
|
283
|
+
Server:
|
284
|
+
- WildFly/10
|
285
|
+
Pragma:
|
286
|
+
- no-cache
|
287
|
+
Date:
|
288
|
+
- Fri, 19 Feb 2016 10:41:33 GMT
|
289
|
+
Connection:
|
290
|
+
- keep-alive
|
291
|
+
Content-Type:
|
292
|
+
- application/json
|
293
|
+
Content-Length:
|
294
|
+
- '185'
|
295
|
+
body:
|
296
|
+
encoding: ASCII-8BIT
|
297
|
+
string: !binary |-
|
298
|
+
H4sIAAAAAAAAAK2PQQ7CIBBF956CsBbbAlYiZ3Bj3De0DpFFWwJobJre3YJt
|
299
|
+
4wFczv8z7/8Zdwhhq8IDozPCWZBU5LSsWUmEBk44Y5QI3ghypByKE1OlqHWm
|
300
|
+
pQa4V60aKngbHzInXUEZ3kdaGCxE2jgP/4EH6QJZ+TOyU21KwFfw/dM1cIuR
|
301
|
+
i2nuyVouZm1KrazrLbhgwP90e4Hzpu+iUhzybXfjXwa0Rnx/W+EJPX0A9wC4
|
302
|
+
kz0BAAA=
|
303
|
+
http_version:
|
304
|
+
recorded_at: Fri, 19 Feb 2016 10:41:33 GMT
|
305
|
+
- request:
|
306
|
+
method: get
|
307
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/r123
|
308
|
+
body:
|
309
|
+
encoding: US-ASCII
|
310
|
+
string: ''
|
311
|
+
headers:
|
312
|
+
Accept:
|
313
|
+
- application/json
|
314
|
+
Accept-Encoding:
|
315
|
+
- gzip, deflate
|
316
|
+
Content-Type:
|
317
|
+
- application/json
|
318
|
+
User-Agent:
|
319
|
+
- Ruby
|
320
|
+
response:
|
321
|
+
status:
|
322
|
+
code: 200
|
323
|
+
message: OK
|
324
|
+
headers:
|
325
|
+
Content-Encoding:
|
326
|
+
- gzip
|
327
|
+
Expires:
|
328
|
+
- '0'
|
329
|
+
Cache-Control:
|
330
|
+
- no-cache, no-store, must-revalidate
|
331
|
+
X-Powered-By:
|
332
|
+
- Undertow/1
|
333
|
+
Server:
|
334
|
+
- WildFly/10
|
335
|
+
Pragma:
|
336
|
+
- no-cache
|
337
|
+
Date:
|
338
|
+
- Fri, 19 Feb 2016 10:41:33 GMT
|
339
|
+
Connection:
|
340
|
+
- keep-alive
|
341
|
+
Content-Type:
|
342
|
+
- application/json
|
343
|
+
Content-Length:
|
344
|
+
- '185'
|
345
|
+
body:
|
346
|
+
encoding: ASCII-8BIT
|
347
|
+
string: !binary |-
|
348
|
+
H4sIAAAAAAAAAK2PQQ7CIBBF956CsBbbAlYiZ3Bj3De0DpFFWwJobJre3YJt
|
349
|
+
4wFczv8z7/8Zdwhhq8IDozPCWZBU5LSsWUmEBk44Y5QI3ghypByKE1OlqHWm
|
350
|
+
pQa4V60aKngbHzInXUEZ3kdaGCxE2jgP/4EH6QJZ+TOyU21KwFfw/dM1cIuR
|
351
|
+
i2nuyVouZm1KrazrLbhgwP90e4Hzpu+iUhzybXfjXwa0Rnx/W+EJPX0A9wC4
|
352
|
+
kz0BAAA=
|
353
|
+
http_version:
|
354
|
+
recorded_at: Fri, 19 Feb 2016 10:41:33 GMT
|
355
|
+
recorded_with: VCR 3.0.0
|
@@ -0,0 +1,786 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"properties":{},"id":"feed_may_exist","name":null,"outgoing":{},"incoming":{}}'
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Content-Length:
|
17
|
+
- '79'
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 409
|
23
|
+
message: Conflict
|
24
|
+
headers:
|
25
|
+
Expires:
|
26
|
+
- '0'
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache, no-store, must-revalidate
|
29
|
+
X-Powered-By:
|
30
|
+
- Undertow/1
|
31
|
+
Server:
|
32
|
+
- WildFly/10
|
33
|
+
Pragma:
|
34
|
+
- no-cache
|
35
|
+
Date:
|
36
|
+
- Mon, 29 Feb 2016 11:18:11 GMT
|
37
|
+
Connection:
|
38
|
+
- keep-alive
|
39
|
+
Content-Type:
|
40
|
+
- application/json
|
41
|
+
Content-Length:
|
42
|
+
- '747'
|
43
|
+
body:
|
44
|
+
encoding: ASCII-8BIT
|
45
|
+
string: |-
|
46
|
+
{
|
47
|
+
"errorMsg" : "Feed with id 'Feed[path='/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist']' has been already registered. Entity with id 'feed_may_exist' already exists at some of the positions: [[Types[Tenant], Ids[28026b36-8fe4-4332-84c8-524e173a68bf], Related[, rel='contains', role=SOURCE], Types[Feed], Ids[feed_may_exist]]]",
|
48
|
+
"details" : {
|
49
|
+
"entityId" : "feed_may_exist",
|
50
|
+
"paths" : [ [ {
|
51
|
+
"types" : [ "org.hawkular.inventory.api.model.Tenant" ]
|
52
|
+
}, {
|
53
|
+
"ids" : [ "28026b36-8fe4-4332-84c8-524e173a68bf" ]
|
54
|
+
}, {
|
55
|
+
"relationshipName" : "contains",
|
56
|
+
"entityRole" : "SOURCE"
|
57
|
+
}, {
|
58
|
+
"types" : [ "org.hawkular.inventory.api.model.Feed" ]
|
59
|
+
}, {
|
60
|
+
"ids" : [ "feed_may_exist" ]
|
61
|
+
} ] ]
|
62
|
+
}
|
63
|
+
}
|
64
|
+
http_version:
|
65
|
+
recorded_at: Mon, 29 Feb 2016 11:18:11 GMT
|
66
|
+
- request:
|
67
|
+
method: get
|
68
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist
|
69
|
+
body:
|
70
|
+
encoding: US-ASCII
|
71
|
+
string: ''
|
72
|
+
headers:
|
73
|
+
Accept:
|
74
|
+
- application/json
|
75
|
+
Accept-Encoding:
|
76
|
+
- gzip, deflate
|
77
|
+
Content-Type:
|
78
|
+
- application/json
|
79
|
+
User-Agent:
|
80
|
+
- Ruby
|
81
|
+
response:
|
82
|
+
status:
|
83
|
+
code: 200
|
84
|
+
message: OK
|
85
|
+
headers:
|
86
|
+
Expires:
|
87
|
+
- '0'
|
88
|
+
Cache-Control:
|
89
|
+
- no-cache, no-store, must-revalidate
|
90
|
+
X-Powered-By:
|
91
|
+
- Undertow/1
|
92
|
+
Server:
|
93
|
+
- WildFly/10
|
94
|
+
Pragma:
|
95
|
+
- no-cache
|
96
|
+
Date:
|
97
|
+
- Mon, 29 Feb 2016 11:18:11 GMT
|
98
|
+
Connection:
|
99
|
+
- keep-alive
|
100
|
+
Content-Type:
|
101
|
+
- application/json
|
102
|
+
Content-Length:
|
103
|
+
- '100'
|
104
|
+
body:
|
105
|
+
encoding: ASCII-8BIT
|
106
|
+
string: |-
|
107
|
+
{
|
108
|
+
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist",
|
109
|
+
"id" : "feed_may_exist"
|
110
|
+
}
|
111
|
+
http_version:
|
112
|
+
recorded_at: Mon, 29 Feb 2016 11:18:11 GMT
|
113
|
+
- request:
|
114
|
+
method: post
|
115
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resourceTypes
|
116
|
+
body:
|
117
|
+
encoding: UTF-8
|
118
|
+
string: '{"properties":{},"id":"rt-123","name":"ResourceType","outgoing":{},"incoming":{}}'
|
119
|
+
headers:
|
120
|
+
Accept:
|
121
|
+
- application/json
|
122
|
+
Accept-Encoding:
|
123
|
+
- gzip, deflate
|
124
|
+
Content-Type:
|
125
|
+
- application/json
|
126
|
+
Content-Length:
|
127
|
+
- '81'
|
128
|
+
User-Agent:
|
129
|
+
- Ruby
|
130
|
+
response:
|
131
|
+
status:
|
132
|
+
code: 409
|
133
|
+
message: Conflict
|
134
|
+
headers:
|
135
|
+
Expires:
|
136
|
+
- '0'
|
137
|
+
Cache-Control:
|
138
|
+
- no-cache, no-store, must-revalidate
|
139
|
+
X-Powered-By:
|
140
|
+
- Undertow/1
|
141
|
+
Server:
|
142
|
+
- WildFly/10
|
143
|
+
Pragma:
|
144
|
+
- no-cache
|
145
|
+
Date:
|
146
|
+
- Mon, 29 Feb 2016 11:18:11 GMT
|
147
|
+
Connection:
|
148
|
+
- keep-alive
|
149
|
+
Content-Type:
|
150
|
+
- application/json
|
151
|
+
Content-Length:
|
152
|
+
- '107'
|
153
|
+
body:
|
154
|
+
encoding: ASCII-8BIT
|
155
|
+
string: |-
|
156
|
+
{
|
157
|
+
"errorMsg" : "Entity with id 'null' already exists at some of the positions: null",
|
158
|
+
"details" : { }
|
159
|
+
}
|
160
|
+
http_version:
|
161
|
+
recorded_at: Mon, 29 Feb 2016 11:18:11 GMT
|
162
|
+
- request:
|
163
|
+
method: get
|
164
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resourceTypes/rt-123
|
165
|
+
body:
|
166
|
+
encoding: US-ASCII
|
167
|
+
string: ''
|
168
|
+
headers:
|
169
|
+
Accept:
|
170
|
+
- application/json
|
171
|
+
Accept-Encoding:
|
172
|
+
- gzip, deflate
|
173
|
+
Content-Type:
|
174
|
+
- application/json
|
175
|
+
User-Agent:
|
176
|
+
- Ruby
|
177
|
+
response:
|
178
|
+
status:
|
179
|
+
code: 200
|
180
|
+
message: OK
|
181
|
+
headers:
|
182
|
+
Expires:
|
183
|
+
- '0'
|
184
|
+
Cache-Control:
|
185
|
+
- no-cache, no-store, must-revalidate
|
186
|
+
X-Powered-By:
|
187
|
+
- Undertow/1
|
188
|
+
Server:
|
189
|
+
- WildFly/10
|
190
|
+
Pragma:
|
191
|
+
- no-cache
|
192
|
+
Date:
|
193
|
+
- Mon, 29 Feb 2016 11:18:11 GMT
|
194
|
+
Connection:
|
195
|
+
- keep-alive
|
196
|
+
Content-Type:
|
197
|
+
- application/json
|
198
|
+
Content-Length:
|
199
|
+
- '129'
|
200
|
+
body:
|
201
|
+
encoding: ASCII-8BIT
|
202
|
+
string: |-
|
203
|
+
{
|
204
|
+
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/rt;rt-123",
|
205
|
+
"name" : "ResourceType",
|
206
|
+
"id" : "rt-123"
|
207
|
+
}
|
208
|
+
http_version:
|
209
|
+
recorded_at: Mon, 29 Feb 2016 11:18:11 GMT
|
210
|
+
- request:
|
211
|
+
method: post
|
212
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources
|
213
|
+
body:
|
214
|
+
encoding: UTF-8
|
215
|
+
string: '{"properties":{"version":1.0},"id":"r124","name":"My Resource","outgoing":{},"incoming":{},"resourceTypePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/rt;rt-123"}'
|
216
|
+
headers:
|
217
|
+
Accept:
|
218
|
+
- application/json
|
219
|
+
Accept-Encoding:
|
220
|
+
- gzip, deflate
|
221
|
+
Content-Type:
|
222
|
+
- application/json
|
223
|
+
Content-Length:
|
224
|
+
- '179'
|
225
|
+
User-Agent:
|
226
|
+
- Ruby
|
227
|
+
response:
|
228
|
+
status:
|
229
|
+
code: 409
|
230
|
+
message: Conflict
|
231
|
+
headers:
|
232
|
+
Expires:
|
233
|
+
- '0'
|
234
|
+
Cache-Control:
|
235
|
+
- no-cache, no-store, must-revalidate
|
236
|
+
X-Powered-By:
|
237
|
+
- Undertow/1
|
238
|
+
Server:
|
239
|
+
- WildFly/10
|
240
|
+
Pragma:
|
241
|
+
- no-cache
|
242
|
+
Date:
|
243
|
+
- Mon, 29 Feb 2016 11:18:11 GMT
|
244
|
+
Connection:
|
245
|
+
- keep-alive
|
246
|
+
Content-Type:
|
247
|
+
- application/json
|
248
|
+
Content-Length:
|
249
|
+
- '107'
|
250
|
+
body:
|
251
|
+
encoding: ASCII-8BIT
|
252
|
+
string: |-
|
253
|
+
{
|
254
|
+
"errorMsg" : "Entity with id 'null' already exists at some of the positions: null",
|
255
|
+
"details" : { }
|
256
|
+
}
|
257
|
+
http_version:
|
258
|
+
recorded_at: Mon, 29 Feb 2016 11:18:11 GMT
|
259
|
+
- request:
|
260
|
+
method: get
|
261
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/r124
|
262
|
+
body:
|
263
|
+
encoding: US-ASCII
|
264
|
+
string: ''
|
265
|
+
headers:
|
266
|
+
Accept:
|
267
|
+
- application/json
|
268
|
+
Accept-Encoding:
|
269
|
+
- gzip, deflate
|
270
|
+
Content-Type:
|
271
|
+
- application/json
|
272
|
+
User-Agent:
|
273
|
+
- Ruby
|
274
|
+
response:
|
275
|
+
status:
|
276
|
+
code: 200
|
277
|
+
message: OK
|
278
|
+
headers:
|
279
|
+
Expires:
|
280
|
+
- '0'
|
281
|
+
Cache-Control:
|
282
|
+
- no-cache, no-store, must-revalidate
|
283
|
+
X-Powered-By:
|
284
|
+
- Undertow/1
|
285
|
+
Server:
|
286
|
+
- WildFly/10
|
287
|
+
Pragma:
|
288
|
+
- no-cache
|
289
|
+
Date:
|
290
|
+
- Mon, 29 Feb 2016 11:18:11 GMT
|
291
|
+
Connection:
|
292
|
+
- keep-alive
|
293
|
+
Content-Type:
|
294
|
+
- application/json
|
295
|
+
Content-Length:
|
296
|
+
- '317'
|
297
|
+
body:
|
298
|
+
encoding: ASCII-8BIT
|
299
|
+
string: |-
|
300
|
+
{
|
301
|
+
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/r;r124",
|
302
|
+
"type" : {
|
303
|
+
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/rt;rt-123",
|
304
|
+
"name" : "ResourceType",
|
305
|
+
"id" : "rt-123"
|
306
|
+
},
|
307
|
+
"properties" : {
|
308
|
+
"version" : 1.0
|
309
|
+
},
|
310
|
+
"name" : "My Resource",
|
311
|
+
"id" : "r124"
|
312
|
+
}
|
313
|
+
http_version:
|
314
|
+
recorded_at: Mon, 29 Feb 2016 11:18:11 GMT
|
315
|
+
- request:
|
316
|
+
method: get
|
317
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/r124
|
318
|
+
body:
|
319
|
+
encoding: US-ASCII
|
320
|
+
string: ''
|
321
|
+
headers:
|
322
|
+
Accept:
|
323
|
+
- application/json
|
324
|
+
Accept-Encoding:
|
325
|
+
- gzip, deflate
|
326
|
+
Content-Type:
|
327
|
+
- application/json
|
328
|
+
User-Agent:
|
329
|
+
- Ruby
|
330
|
+
response:
|
331
|
+
status:
|
332
|
+
code: 200
|
333
|
+
message: OK
|
334
|
+
headers:
|
335
|
+
Expires:
|
336
|
+
- '0'
|
337
|
+
Cache-Control:
|
338
|
+
- no-cache, no-store, must-revalidate
|
339
|
+
X-Powered-By:
|
340
|
+
- Undertow/1
|
341
|
+
Server:
|
342
|
+
- WildFly/10
|
343
|
+
Pragma:
|
344
|
+
- no-cache
|
345
|
+
Date:
|
346
|
+
- Mon, 29 Feb 2016 11:18:11 GMT
|
347
|
+
Connection:
|
348
|
+
- keep-alive
|
349
|
+
Content-Type:
|
350
|
+
- application/json
|
351
|
+
Content-Length:
|
352
|
+
- '317'
|
353
|
+
body:
|
354
|
+
encoding: ASCII-8BIT
|
355
|
+
string: |-
|
356
|
+
{
|
357
|
+
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/r;r124",
|
358
|
+
"type" : {
|
359
|
+
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/rt;rt-123",
|
360
|
+
"name" : "ResourceType",
|
361
|
+
"id" : "rt-123"
|
362
|
+
},
|
363
|
+
"properties" : {
|
364
|
+
"version" : 1.0
|
365
|
+
},
|
366
|
+
"name" : "My Resource",
|
367
|
+
"id" : "r124"
|
368
|
+
}
|
369
|
+
http_version:
|
370
|
+
recorded_at: Mon, 29 Feb 2016 11:18:11 GMT
|
371
|
+
- request:
|
372
|
+
method: post
|
373
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/metricTypes
|
374
|
+
body:
|
375
|
+
encoding: UTF-8
|
376
|
+
string: '{"id":"mt-124","type":"GAUGE","unit":"NONE","collectionInterval":60}'
|
377
|
+
headers:
|
378
|
+
Accept:
|
379
|
+
- application/json
|
380
|
+
Accept-Encoding:
|
381
|
+
- gzip, deflate
|
382
|
+
Content-Type:
|
383
|
+
- application/json
|
384
|
+
Content-Length:
|
385
|
+
- '68'
|
386
|
+
User-Agent:
|
387
|
+
- Ruby
|
388
|
+
response:
|
389
|
+
status:
|
390
|
+
code: 409
|
391
|
+
message: Conflict
|
392
|
+
headers:
|
393
|
+
Expires:
|
394
|
+
- '0'
|
395
|
+
Cache-Control:
|
396
|
+
- no-cache, no-store, must-revalidate
|
397
|
+
X-Powered-By:
|
398
|
+
- Undertow/1
|
399
|
+
Server:
|
400
|
+
- WildFly/10
|
401
|
+
Pragma:
|
402
|
+
- no-cache
|
403
|
+
Date:
|
404
|
+
- Mon, 29 Feb 2016 11:18:11 GMT
|
405
|
+
Connection:
|
406
|
+
- keep-alive
|
407
|
+
Content-Type:
|
408
|
+
- application/json
|
409
|
+
Content-Length:
|
410
|
+
- '107'
|
411
|
+
body:
|
412
|
+
encoding: ASCII-8BIT
|
413
|
+
string: |-
|
414
|
+
{
|
415
|
+
"errorMsg" : "Entity with id 'null' already exists at some of the positions: null",
|
416
|
+
"details" : { }
|
417
|
+
}
|
418
|
+
http_version:
|
419
|
+
recorded_at: Mon, 29 Feb 2016 11:18:11 GMT
|
420
|
+
- request:
|
421
|
+
method: get
|
422
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/metricTypes/mt-124
|
423
|
+
body:
|
424
|
+
encoding: US-ASCII
|
425
|
+
string: ''
|
426
|
+
headers:
|
427
|
+
Accept:
|
428
|
+
- application/json
|
429
|
+
Accept-Encoding:
|
430
|
+
- gzip, deflate
|
431
|
+
Content-Type:
|
432
|
+
- application/json
|
433
|
+
User-Agent:
|
434
|
+
- Ruby
|
435
|
+
response:
|
436
|
+
status:
|
437
|
+
code: 200
|
438
|
+
message: OK
|
439
|
+
headers:
|
440
|
+
Expires:
|
441
|
+
- '0'
|
442
|
+
Cache-Control:
|
443
|
+
- no-cache, no-store, must-revalidate
|
444
|
+
X-Powered-By:
|
445
|
+
- Undertow/1
|
446
|
+
Server:
|
447
|
+
- WildFly/10
|
448
|
+
Pragma:
|
449
|
+
- no-cache
|
450
|
+
Date:
|
451
|
+
- Mon, 29 Feb 2016 11:18:11 GMT
|
452
|
+
Connection:
|
453
|
+
- keep-alive
|
454
|
+
Content-Type:
|
455
|
+
- application/json
|
456
|
+
Content-Length:
|
457
|
+
- '170'
|
458
|
+
body:
|
459
|
+
encoding: ASCII-8BIT
|
460
|
+
string: |-
|
461
|
+
{
|
462
|
+
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/mt;mt-124",
|
463
|
+
"unit" : "NONE",
|
464
|
+
"type" : "GAUGE",
|
465
|
+
"collectionInterval" : 60,
|
466
|
+
"id" : "mt-124"
|
467
|
+
}
|
468
|
+
http_version:
|
469
|
+
recorded_at: Mon, 29 Feb 2016 11:18:11 GMT
|
470
|
+
- request:
|
471
|
+
method: post
|
472
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/metrics
|
473
|
+
body:
|
474
|
+
encoding: UTF-8
|
475
|
+
string: '{"id":"m-124","name":"m-124","metricTypePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/mt;mt-124"}'
|
476
|
+
headers:
|
477
|
+
Accept:
|
478
|
+
- application/json
|
479
|
+
Accept-Encoding:
|
480
|
+
- gzip, deflate
|
481
|
+
Content-Type:
|
482
|
+
- application/json
|
483
|
+
Content-Length:
|
484
|
+
- '115'
|
485
|
+
User-Agent:
|
486
|
+
- Ruby
|
487
|
+
response:
|
488
|
+
status:
|
489
|
+
code: 409
|
490
|
+
message: Conflict
|
491
|
+
headers:
|
492
|
+
Expires:
|
493
|
+
- '0'
|
494
|
+
Cache-Control:
|
495
|
+
- no-cache, no-store, must-revalidate
|
496
|
+
X-Powered-By:
|
497
|
+
- Undertow/1
|
498
|
+
Server:
|
499
|
+
- WildFly/10
|
500
|
+
Pragma:
|
501
|
+
- no-cache
|
502
|
+
Date:
|
503
|
+
- Mon, 29 Feb 2016 11:18:11 GMT
|
504
|
+
Connection:
|
505
|
+
- keep-alive
|
506
|
+
Content-Type:
|
507
|
+
- application/json
|
508
|
+
Content-Length:
|
509
|
+
- '107'
|
510
|
+
body:
|
511
|
+
encoding: ASCII-8BIT
|
512
|
+
string: |-
|
513
|
+
{
|
514
|
+
"errorMsg" : "Entity with id 'null' already exists at some of the positions: null",
|
515
|
+
"details" : { }
|
516
|
+
}
|
517
|
+
http_version:
|
518
|
+
recorded_at: Mon, 29 Feb 2016 11:18:11 GMT
|
519
|
+
- request:
|
520
|
+
method: get
|
521
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/metrics/m-124
|
522
|
+
body:
|
523
|
+
encoding: US-ASCII
|
524
|
+
string: ''
|
525
|
+
headers:
|
526
|
+
Accept:
|
527
|
+
- application/json
|
528
|
+
Accept-Encoding:
|
529
|
+
- gzip, deflate
|
530
|
+
Content-Type:
|
531
|
+
- application/json
|
532
|
+
User-Agent:
|
533
|
+
- Ruby
|
534
|
+
response:
|
535
|
+
status:
|
536
|
+
code: 200
|
537
|
+
message: OK
|
538
|
+
headers:
|
539
|
+
Expires:
|
540
|
+
- '0'
|
541
|
+
Cache-Control:
|
542
|
+
- no-cache, no-store, must-revalidate
|
543
|
+
X-Powered-By:
|
544
|
+
- Undertow/1
|
545
|
+
Server:
|
546
|
+
- WildFly/10
|
547
|
+
Pragma:
|
548
|
+
- no-cache
|
549
|
+
Date:
|
550
|
+
- Mon, 29 Feb 2016 11:18:11 GMT
|
551
|
+
Connection:
|
552
|
+
- keep-alive
|
553
|
+
Content-Type:
|
554
|
+
- application/json
|
555
|
+
Content-Length:
|
556
|
+
- '314'
|
557
|
+
body:
|
558
|
+
encoding: ASCII-8BIT
|
559
|
+
string: |-
|
560
|
+
{
|
561
|
+
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/m;m-124",
|
562
|
+
"type" : {
|
563
|
+
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/mt;mt-124",
|
564
|
+
"unit" : "NONE",
|
565
|
+
"type" : "GAUGE",
|
566
|
+
"collectionInterval" : 60,
|
567
|
+
"id" : "mt-124"
|
568
|
+
},
|
569
|
+
"name" : "m-124",
|
570
|
+
"id" : "m-124"
|
571
|
+
}
|
572
|
+
http_version:
|
573
|
+
recorded_at: Mon, 29 Feb 2016 11:18:12 GMT
|
574
|
+
- request:
|
575
|
+
method: post
|
576
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/r124/metrics
|
577
|
+
body:
|
578
|
+
encoding: UTF-8
|
579
|
+
string: '["/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/m;m-124"]'
|
580
|
+
headers:
|
581
|
+
Accept:
|
582
|
+
- application/json
|
583
|
+
Accept-Encoding:
|
584
|
+
- gzip, deflate
|
585
|
+
Content-Type:
|
586
|
+
- application/json
|
587
|
+
Content-Length:
|
588
|
+
- '68'
|
589
|
+
User-Agent:
|
590
|
+
- Ruby
|
591
|
+
response:
|
592
|
+
status:
|
593
|
+
code: 409
|
594
|
+
message: Conflict
|
595
|
+
headers:
|
596
|
+
Expires:
|
597
|
+
- '0'
|
598
|
+
Cache-Control:
|
599
|
+
- no-cache, no-store, must-revalidate
|
600
|
+
X-Powered-By:
|
601
|
+
- Undertow/1
|
602
|
+
Server:
|
603
|
+
- WildFly/10
|
604
|
+
Pragma:
|
605
|
+
- no-cache
|
606
|
+
Date:
|
607
|
+
- Mon, 29 Feb 2016 11:18:12 GMT
|
608
|
+
Connection:
|
609
|
+
- keep-alive
|
610
|
+
Content-Type:
|
611
|
+
- application/json
|
612
|
+
Content-Length:
|
613
|
+
- '359'
|
614
|
+
body:
|
615
|
+
encoding: ASCII-8BIT
|
616
|
+
string: |-
|
617
|
+
{
|
618
|
+
"errorMsg" : "Relation with id 'incorporates' already exists at some of the positions: [[CanonicalPaths[/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/r;r124]]]",
|
619
|
+
"details" : {
|
620
|
+
"relationshipNameOrId" : "incorporates",
|
621
|
+
"paths" : [ [ {
|
622
|
+
"paths" : [ "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/r;r124" ]
|
623
|
+
} ] ]
|
624
|
+
}
|
625
|
+
}
|
626
|
+
http_version:
|
627
|
+
recorded_at: Mon, 29 Feb 2016 11:18:12 GMT
|
628
|
+
- request:
|
629
|
+
method: post
|
630
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/metrics
|
631
|
+
body:
|
632
|
+
encoding: UTF-8
|
633
|
+
string: '{"id":"m-124-1","name":"Metric1","metricTypePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/mt;mt-124"}'
|
634
|
+
headers:
|
635
|
+
Accept:
|
636
|
+
- application/json
|
637
|
+
Accept-Encoding:
|
638
|
+
- gzip, deflate
|
639
|
+
Content-Type:
|
640
|
+
- application/json
|
641
|
+
Content-Length:
|
642
|
+
- '119'
|
643
|
+
User-Agent:
|
644
|
+
- Ruby
|
645
|
+
response:
|
646
|
+
status:
|
647
|
+
code: 409
|
648
|
+
message: Conflict
|
649
|
+
headers:
|
650
|
+
Expires:
|
651
|
+
- '0'
|
652
|
+
Cache-Control:
|
653
|
+
- no-cache, no-store, must-revalidate
|
654
|
+
X-Powered-By:
|
655
|
+
- Undertow/1
|
656
|
+
Server:
|
657
|
+
- WildFly/10
|
658
|
+
Pragma:
|
659
|
+
- no-cache
|
660
|
+
Date:
|
661
|
+
- Mon, 29 Feb 2016 11:18:12 GMT
|
662
|
+
Connection:
|
663
|
+
- keep-alive
|
664
|
+
Content-Type:
|
665
|
+
- application/json
|
666
|
+
Content-Length:
|
667
|
+
- '107'
|
668
|
+
body:
|
669
|
+
encoding: ASCII-8BIT
|
670
|
+
string: |-
|
671
|
+
{
|
672
|
+
"errorMsg" : "Entity with id 'null' already exists at some of the positions: null",
|
673
|
+
"details" : { }
|
674
|
+
}
|
675
|
+
http_version:
|
676
|
+
recorded_at: Mon, 29 Feb 2016 11:18:12 GMT
|
677
|
+
- request:
|
678
|
+
method: get
|
679
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/metrics/m-124-1
|
680
|
+
body:
|
681
|
+
encoding: US-ASCII
|
682
|
+
string: ''
|
683
|
+
headers:
|
684
|
+
Accept:
|
685
|
+
- application/json
|
686
|
+
Accept-Encoding:
|
687
|
+
- gzip, deflate
|
688
|
+
Content-Type:
|
689
|
+
- application/json
|
690
|
+
User-Agent:
|
691
|
+
- Ruby
|
692
|
+
response:
|
693
|
+
status:
|
694
|
+
code: 200
|
695
|
+
message: OK
|
696
|
+
headers:
|
697
|
+
Expires:
|
698
|
+
- '0'
|
699
|
+
Cache-Control:
|
700
|
+
- no-cache, no-store, must-revalidate
|
701
|
+
X-Powered-By:
|
702
|
+
- Undertow/1
|
703
|
+
Server:
|
704
|
+
- WildFly/10
|
705
|
+
Pragma:
|
706
|
+
- no-cache
|
707
|
+
Date:
|
708
|
+
- Mon, 29 Feb 2016 11:18:12 GMT
|
709
|
+
Connection:
|
710
|
+
- keep-alive
|
711
|
+
Content-Type:
|
712
|
+
- application/json
|
713
|
+
Content-Length:
|
714
|
+
- '320'
|
715
|
+
body:
|
716
|
+
encoding: ASCII-8BIT
|
717
|
+
string: |-
|
718
|
+
{
|
719
|
+
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/m;m-124-1",
|
720
|
+
"type" : {
|
721
|
+
"path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/mt;mt-124",
|
722
|
+
"unit" : "NONE",
|
723
|
+
"type" : "GAUGE",
|
724
|
+
"collectionInterval" : 60,
|
725
|
+
"id" : "mt-124"
|
726
|
+
},
|
727
|
+
"name" : "Metric1",
|
728
|
+
"id" : "m-124-1"
|
729
|
+
}
|
730
|
+
http_version:
|
731
|
+
recorded_at: Mon, 29 Feb 2016 11:18:12 GMT
|
732
|
+
- request:
|
733
|
+
method: post
|
734
|
+
uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/feed_may_exist/resources/r124/metrics
|
735
|
+
body:
|
736
|
+
encoding: UTF-8
|
737
|
+
string: '["/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/m;m-124-1"]'
|
738
|
+
headers:
|
739
|
+
Accept:
|
740
|
+
- application/json
|
741
|
+
Accept-Encoding:
|
742
|
+
- gzip, deflate
|
743
|
+
Content-Type:
|
744
|
+
- application/json
|
745
|
+
Content-Length:
|
746
|
+
- '70'
|
747
|
+
User-Agent:
|
748
|
+
- Ruby
|
749
|
+
response:
|
750
|
+
status:
|
751
|
+
code: 409
|
752
|
+
message: Conflict
|
753
|
+
headers:
|
754
|
+
Expires:
|
755
|
+
- '0'
|
756
|
+
Cache-Control:
|
757
|
+
- no-cache, no-store, must-revalidate
|
758
|
+
X-Powered-By:
|
759
|
+
- Undertow/1
|
760
|
+
Server:
|
761
|
+
- WildFly/10
|
762
|
+
Pragma:
|
763
|
+
- no-cache
|
764
|
+
Date:
|
765
|
+
- Mon, 29 Feb 2016 11:18:12 GMT
|
766
|
+
Connection:
|
767
|
+
- keep-alive
|
768
|
+
Content-Type:
|
769
|
+
- application/json
|
770
|
+
Content-Length:
|
771
|
+
- '359'
|
772
|
+
body:
|
773
|
+
encoding: ASCII-8BIT
|
774
|
+
string: |-
|
775
|
+
{
|
776
|
+
"errorMsg" : "Relation with id 'incorporates' already exists at some of the positions: [[CanonicalPaths[/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/r;r124]]]",
|
777
|
+
"details" : {
|
778
|
+
"relationshipNameOrId" : "incorporates",
|
779
|
+
"paths" : [ [ {
|
780
|
+
"paths" : [ "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;feed_may_exist/r;r124" ]
|
781
|
+
} ] ]
|
782
|
+
}
|
783
|
+
}
|
784
|
+
http_version:
|
785
|
+
recorded_at: Mon, 29 Feb 2016 11:18:12 GMT
|
786
|
+
recorded_with: VCR 3.0.0
|