hawkular-client 2.8.0 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -4
  3. data/.travis/start_hawkular_services.sh +21 -0
  4. data/.travis/wait_for_services.rb +26 -10
  5. data/CHANGES.rdoc +26 -0
  6. data/README.rdoc +12 -1
  7. data/docker-compose.yml +4 -2
  8. data/hawkularclient.gemspec +2 -0
  9. data/lib/hawkular/alerts/alerts_api.rb +22 -1
  10. data/lib/hawkular/base_client.rb +29 -24
  11. data/lib/hawkular/client_utils.rb +42 -0
  12. data/lib/hawkular/env_config.rb +15 -0
  13. data/lib/hawkular/hawkular_client.rb +33 -25
  14. data/lib/hawkular/inventory/entities.rb +9 -0
  15. data/lib/hawkular/inventory/inventory_api.rb +13 -3
  16. data/lib/hawkular/logger.rb +14 -0
  17. data/lib/hawkular/metrics/metric_api.rb +24 -8
  18. data/lib/hawkular/operations/operations_api.rb +57 -25
  19. data/lib/hawkular/tokens/tokens_api.rb +4 -1
  20. data/lib/hawkular/version.rb +1 -1
  21. data/lib/hawkularclient.rb +8 -0
  22. data/spec/integration/alerts_spec.rb +50 -27
  23. data/spec/integration/env_config_spec.rb +39 -0
  24. data/spec/integration/hawkular_client_spec.rb +10 -7
  25. data/spec/integration/inventory_spec.rb +36 -3
  26. data/spec/integration/logger_spec.rb +36 -0
  27. data/spec/integration/metric_spec.rb +62 -3
  28. data/spec/integration/operations_spec.rb +112 -63
  29. data/spec/integration/tokens_spec.rb +6 -6
  30. data/spec/spec_helper.rb +20 -6
  31. data/spec/unit/base_spec.rb +25 -3
  32. data/spec/unit/canonical_path_spec.rb +2 -1
  33. data/spec/unit/client_spec.rb +2 -1
  34. data/spec/unit/deprecations_spec.rb +19 -0
  35. data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_add_tags_to_existing_alert.yml +210 -0
  36. data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_remove_tags_from_existing_alert.yml +257 -0
  37. data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_get_the_action_definitions.yml +59 -22
  38. data/spec/vcr_cassettes/Inventory/NonSecure/inventory_0_17/Templates/Should_have_a_consistent_behaviour_when_creating_an_already_existing_resource.yml +714 -0
  39. data/spec/vcr_cassettes/Inventory/NonSecure/inventory_0_17/Templates/Should_return_data_from_get_entity.yml +230 -0
  40. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/All_Tags_for_metrics/Should_fetch_all_metrics_with_some_tags.yml +1251 -0
  41. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Tags_Metrics/setup_client.yml +3 -3
  42. data/spec/vcr_cassettes/Operation/NonSecure/Helpers/Templates/agent_properties.yml +124 -0
  43. data/spec/vcr_cassettes/Operation/NonSecure/Helpers/Templates/get_feed.yml +7 -7
  44. data/spec/vcr_cassettes/Operation/NonSecure/Operation/Add_JDBC_driver_should_add_the_driver.json +4 -4
  45. data/spec/vcr_cassettes/Operation/NonSecure/Operation/Add_deployment_should_be_doable.json +4 -4
  46. data/spec/vcr_cassettes/Operation/NonSecure/Operation/Disable_should_be_performed_and_eventually_respond_with_success.json +4 -4
  47. data/spec/vcr_cassettes/Operation/NonSecure/Operation/Remove_JDBC_driver_should_be_performed_and_eventually_respond_with_success.json +3 -3
  48. data/spec/vcr_cassettes/Operation/NonSecure/Operation/Restart_can_be_run_multiple_times_in_parallel.json +5 -5
  49. data/spec/vcr_cassettes/Operation/NonSecure/Operation/Restart_should_be_performed_and_eventually_respond_with_success.json +4 -4
  50. data/spec/vcr_cassettes/Operation/NonSecure/Operation/Update_collection_intervals_should_be_performed_and_eventually_respond_with_success.json +23 -0
  51. metadata +57 -7
  52. data/lib/hawkular/hawkular_client_utils.rb +0 -41
@@ -0,0 +1,230 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://<%= super_secret_username %>:<%= super_secret_password %>@localhost:8080/hawkular/inventory/entity/feed
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
+ - identity
14
+ User-Agent:
15
+ - hawkular-client-ruby
16
+ Hawkular-Tenant:
17
+ - hawkular
18
+ Content-Type:
19
+ - application/json
20
+ Content-Length:
21
+ - '79'
22
+ Host:
23
+ - localhost:8080
24
+ response:
25
+ status:
26
+ code: 201
27
+ message: Created
28
+ headers:
29
+ Expires:
30
+ - '0'
31
+ Cache-Control:
32
+ - no-cache, no-store, must-revalidate
33
+ X-Powered-By:
34
+ - Undertow/1
35
+ Server:
36
+ - WildFly/10
37
+ Pragma:
38
+ - no-cache
39
+ Location:
40
+ - http://localhost:8080/hawkular/inventory/entity/f;feed_may_exist
41
+ Date:
42
+ - Fri, 28 Oct 2016 16:25:46 GMT
43
+ Connection:
44
+ - keep-alive
45
+ Content-Type:
46
+ - application/json
47
+ Content-Length:
48
+ - '253'
49
+ body:
50
+ encoding: UTF-8
51
+ string: |-
52
+ {
53
+ "path" : "/t;hawkular/f;feed_may_exist",
54
+ "identityHash" : "18a4f8a18a8012f826e2dbe4cb768d14c391a59b",
55
+ "contentHash" : "da39a3ee5e6b4bd3255bfef95601890afd879",
56
+ "syncHash" : "2ca9805996fab3645d34da81df5aec62ef33e81a",
57
+ "id" : "feed_may_exist"
58
+ }
59
+ http_version:
60
+ recorded_at: Fri, 28 Oct 2016 16:25:46 GMT
61
+ - request:
62
+ method: post
63
+ uri: http://<%= super_secret_username %>:<%= super_secret_password %>@localhost:8080/hawkular/inventory/entity/f;feed_may_exist/resourceType
64
+ body:
65
+ encoding: UTF-8
66
+ string: '{"properties":{},"id":"dummy-resource-type","name":"ResourceType","outgoing":{},"incoming":{}}'
67
+ headers:
68
+ Accept:
69
+ - application/json
70
+ Accept-Encoding:
71
+ - identity
72
+ User-Agent:
73
+ - hawkular-client-ruby
74
+ Hawkular-Tenant:
75
+ - hawkular
76
+ Content-Type:
77
+ - application/json
78
+ Content-Length:
79
+ - '94'
80
+ Host:
81
+ - localhost:8080
82
+ response:
83
+ status:
84
+ code: 201
85
+ message: Created
86
+ headers:
87
+ Expires:
88
+ - '0'
89
+ Cache-Control:
90
+ - no-cache, no-store, must-revalidate
91
+ X-Powered-By:
92
+ - Undertow/1
93
+ Server:
94
+ - WildFly/10
95
+ Pragma:
96
+ - no-cache
97
+ Location:
98
+ - http://localhost:8080/hawkular/inventory/entity/f;feed_may_exist/rt;dummy-resource-type
99
+ Date:
100
+ - Fri, 28 Oct 2016 16:25:47 GMT
101
+ Connection:
102
+ - keep-alive
103
+ Content-Type:
104
+ - application/json
105
+ Content-Length:
106
+ - '305'
107
+ body:
108
+ encoding: UTF-8
109
+ string: |-
110
+ {
111
+ "path" : "/t;hawkular/f;feed_may_exist/rt;dummy-resource-type",
112
+ "name" : "ResourceType",
113
+ "identityHash" : "11d3cc58d0797a6b2e6830f2fa3ba1e16c8d1b",
114
+ "contentHash" : "1b49accb63cf5aa916f3ee6d952a85fe27725b",
115
+ "syncHash" : "c6078bb6a5a25863918f5b93a1751564b2eb12",
116
+ "id" : "dummy-resource-type"
117
+ }
118
+ http_version:
119
+ recorded_at: Fri, 28 Oct 2016 16:25:47 GMT
120
+ - request:
121
+ method: get
122
+ uri: http://<%= super_secret_username %>:<%= super_secret_password %>@localhost:8080/hawkular/inventory/entity/f;feed_may_exist/rt;dummy-resource-type
123
+ body:
124
+ encoding: US-ASCII
125
+ string: ''
126
+ headers:
127
+ Accept:
128
+ - application/json
129
+ Accept-Encoding:
130
+ - identity
131
+ User-Agent:
132
+ - hawkular-client-ruby
133
+ Hawkular-Tenant:
134
+ - hawkular
135
+ Content-Type:
136
+ - application/json
137
+ Host:
138
+ - localhost:8080
139
+ response:
140
+ status:
141
+ code: 200
142
+ message: OK
143
+ headers:
144
+ Expires:
145
+ - '0'
146
+ Cache-Control:
147
+ - no-cache, no-store, must-revalidate
148
+ X-Powered-By:
149
+ - Undertow/1
150
+ Server:
151
+ - WildFly/10
152
+ Pragma:
153
+ - no-cache
154
+ Date:
155
+ - Fri, 28 Oct 2016 16:25:47 GMT
156
+ Connection:
157
+ - keep-alive
158
+ Content-Type:
159
+ - application/json
160
+ Content-Length:
161
+ - '305'
162
+ body:
163
+ encoding: UTF-8
164
+ string: |-
165
+ {
166
+ "path" : "/t;hawkular/f;feed_may_exist/rt;dummy-resource-type",
167
+ "name" : "ResourceType",
168
+ "identityHash" : "11d3cc58d0797a6b2e6830f2fa3ba1e16c8d1b",
169
+ "contentHash" : "1b49accb63cf5aa916f3ee6d952a85fe27725b",
170
+ "syncHash" : "c6078bb6a5a25863918f5b93a1751564b2eb12",
171
+ "id" : "dummy-resource-type"
172
+ }
173
+ http_version:
174
+ recorded_at: Fri, 28 Oct 2016 16:25:47 GMT
175
+ - request:
176
+ method: get
177
+ uri: http://<%= super_secret_username %>:<%= super_secret_password %>@localhost:8080/hawkular/inventory/entity/t;hawkular/f;feed_may_exist/rt;dummy-resource-type
178
+ body:
179
+ encoding: US-ASCII
180
+ string: ''
181
+ headers:
182
+ Accept:
183
+ - application/json
184
+ Accept-Encoding:
185
+ - identity
186
+ User-Agent:
187
+ - hawkular-client-ruby
188
+ Hawkular-Tenant:
189
+ - hawkular
190
+ Content-Type:
191
+ - application/json
192
+ Host:
193
+ - localhost:8080
194
+ response:
195
+ status:
196
+ code: 200
197
+ message: OK
198
+ headers:
199
+ Expires:
200
+ - '0'
201
+ Cache-Control:
202
+ - no-cache, no-store, must-revalidate
203
+ X-Powered-By:
204
+ - Undertow/1
205
+ Server:
206
+ - WildFly/10
207
+ Pragma:
208
+ - no-cache
209
+ Date:
210
+ - Fri, 28 Oct 2016 16:25:47 GMT
211
+ Connection:
212
+ - keep-alive
213
+ Content-Type:
214
+ - application/json
215
+ Content-Length:
216
+ - '305'
217
+ body:
218
+ encoding: UTF-8
219
+ string: |-
220
+ {
221
+ "path" : "/t;hawkular/f;feed_may_exist/rt;dummy-resource-type",
222
+ "name" : "ResourceType",
223
+ "identityHash" : "11d3cc58d0797a6b2e6830f2fa3ba1e16c8d1b",
224
+ "contentHash" : "1b49accb63cf5aa916f3ee6d952a85fe27725b",
225
+ "syncHash" : "c6078bb6a5a25863918f5b93a1751564b2eb12",
226
+ "id" : "dummy-resource-type"
227
+ }
228
+ http_version:
229
+ recorded_at: Fri, 28 Oct 2016 16:25:47 GMT
230
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,1251 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"id":"<%= id1 %>","dataRetention":90,"tags":{"miq_metric":true}}'
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - identity
14
+ User-Agent:
15
+ - hawkular-client-ruby
16
+ Hawkular-Tenant:
17
+ - all_tags_tenant
18
+ Content-Type:
19
+ - application/json
20
+ Content-Length:
21
+ - '91'
22
+ Host:
23
+ - localhost:8080
24
+ response:
25
+ status:
26
+ code: 201
27
+ message: Created
28
+ headers:
29
+ Expires:
30
+ - '0'
31
+ Cache-Control:
32
+ - no-cache, no-store, must-revalidate
33
+ X-Powered-By:
34
+ - Undertow/1
35
+ Server:
36
+ - WildFly/10
37
+ Pragma:
38
+ - no-cache
39
+ Location:
40
+ - http://localhost:8080/hawkular/metrics/gauges/<%= id1 %>
41
+ Date:
42
+ - Wed, 30 Nov 2016 06:47:08 GMT
43
+ Connection:
44
+ - keep-alive
45
+ Content-Length:
46
+ - '0'
47
+ body:
48
+ encoding: UTF-8
49
+ string: ''
50
+ http_version:
51
+ recorded_at: Wed, 30 Nov 2016 06:47:08 GMT
52
+ - request:
53
+ method: get
54
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id1 %>
55
+ body:
56
+ encoding: US-ASCII
57
+ string: ''
58
+ headers:
59
+ Accept:
60
+ - application/json
61
+ Accept-Encoding:
62
+ - identity
63
+ User-Agent:
64
+ - hawkular-client-ruby
65
+ Hawkular-Tenant:
66
+ - all_tags_tenant
67
+ Content-Type:
68
+ - application/json
69
+ Host:
70
+ - localhost:8080
71
+ response:
72
+ status:
73
+ code: 200
74
+ message: OK
75
+ headers:
76
+ Expires:
77
+ - '0'
78
+ Cache-Control:
79
+ - no-cache, no-store, must-revalidate
80
+ X-Powered-By:
81
+ - Undertow/1
82
+ Server:
83
+ - WildFly/10
84
+ Pragma:
85
+ - no-cache
86
+ Date:
87
+ - Wed, 30 Nov 2016 06:47:08 GMT
88
+ Connection:
89
+ - keep-alive
90
+ Content-Type:
91
+ - application/json
92
+ Content-Length:
93
+ - '137'
94
+ body:
95
+ encoding: UTF-8
96
+ string: '{"id":"<%= id1 %>","tags":{"miq_metric":"true"},"dataRetention":90,"type":"gauge","tenantId":"all_tags_tenant"}'
97
+ http_version:
98
+ recorded_at: Wed, 30 Nov 2016 06:47:08 GMT
99
+ - request:
100
+ method: post
101
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges
102
+ body:
103
+ encoding: UTF-8
104
+ string: '{"id":"<%= id2 %>","dataRetention":90,"tags":{"miq_metric":true}}'
105
+ headers:
106
+ Accept:
107
+ - application/json
108
+ Accept-Encoding:
109
+ - identity
110
+ User-Agent:
111
+ - hawkular-client-ruby
112
+ Hawkular-Tenant:
113
+ - all_tags_tenant
114
+ Content-Type:
115
+ - application/json
116
+ Content-Length:
117
+ - '91'
118
+ Host:
119
+ - localhost:8080
120
+ response:
121
+ status:
122
+ code: 201
123
+ message: Created
124
+ headers:
125
+ Expires:
126
+ - '0'
127
+ Cache-Control:
128
+ - no-cache, no-store, must-revalidate
129
+ X-Powered-By:
130
+ - Undertow/1
131
+ Server:
132
+ - WildFly/10
133
+ Pragma:
134
+ - no-cache
135
+ Location:
136
+ - http://localhost:8080/hawkular/metrics/gauges/<%= id2 %>
137
+ Date:
138
+ - Wed, 30 Nov 2016 06:47:09 GMT
139
+ Connection:
140
+ - keep-alive
141
+ Content-Length:
142
+ - '0'
143
+ body:
144
+ encoding: UTF-8
145
+ string: ''
146
+ http_version:
147
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
148
+ - request:
149
+ method: get
150
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id2 %>
151
+ body:
152
+ encoding: US-ASCII
153
+ string: ''
154
+ headers:
155
+ Accept:
156
+ - application/json
157
+ Accept-Encoding:
158
+ - identity
159
+ User-Agent:
160
+ - hawkular-client-ruby
161
+ Hawkular-Tenant:
162
+ - all_tags_tenant
163
+ Content-Type:
164
+ - application/json
165
+ Host:
166
+ - localhost:8080
167
+ response:
168
+ status:
169
+ code: 200
170
+ message: OK
171
+ headers:
172
+ Expires:
173
+ - '0'
174
+ Cache-Control:
175
+ - no-cache, no-store, must-revalidate
176
+ X-Powered-By:
177
+ - Undertow/1
178
+ Server:
179
+ - WildFly/10
180
+ Pragma:
181
+ - no-cache
182
+ Date:
183
+ - Wed, 30 Nov 2016 06:47:09 GMT
184
+ Connection:
185
+ - keep-alive
186
+ Content-Type:
187
+ - application/json
188
+ Content-Length:
189
+ - '137'
190
+ body:
191
+ encoding: UTF-8
192
+ string: '{"id":"<%= id2 %>","tags":{"miq_metric":"true"},"dataRetention":90,"type":"gauge","tenantId":"all_tags_tenant"}'
193
+ http_version:
194
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
195
+ - request:
196
+ method: post
197
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges
198
+ body:
199
+ encoding: UTF-8
200
+ string: '{"id":"<%= id3 %>","dataRetention":90,"tags":{"miq_metric":true}}'
201
+ headers:
202
+ Accept:
203
+ - application/json
204
+ Accept-Encoding:
205
+ - identity
206
+ User-Agent:
207
+ - hawkular-client-ruby
208
+ Hawkular-Tenant:
209
+ - all_tags_tenant
210
+ Content-Type:
211
+ - application/json
212
+ Content-Length:
213
+ - '91'
214
+ Host:
215
+ - localhost:8080
216
+ response:
217
+ status:
218
+ code: 201
219
+ message: Created
220
+ headers:
221
+ Expires:
222
+ - '0'
223
+ Cache-Control:
224
+ - no-cache, no-store, must-revalidate
225
+ X-Powered-By:
226
+ - Undertow/1
227
+ Server:
228
+ - WildFly/10
229
+ Pragma:
230
+ - no-cache
231
+ Location:
232
+ - http://localhost:8080/hawkular/metrics/gauges/<%= id3 %>
233
+ Date:
234
+ - Wed, 30 Nov 2016 06:47:09 GMT
235
+ Connection:
236
+ - keep-alive
237
+ Content-Length:
238
+ - '0'
239
+ body:
240
+ encoding: UTF-8
241
+ string: ''
242
+ http_version:
243
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
244
+ - request:
245
+ method: get
246
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id3 %>
247
+ body:
248
+ encoding: US-ASCII
249
+ string: ''
250
+ headers:
251
+ Accept:
252
+ - application/json
253
+ Accept-Encoding:
254
+ - identity
255
+ User-Agent:
256
+ - hawkular-client-ruby
257
+ Hawkular-Tenant:
258
+ - all_tags_tenant
259
+ Content-Type:
260
+ - application/json
261
+ Host:
262
+ - localhost:8080
263
+ response:
264
+ status:
265
+ code: 200
266
+ message: OK
267
+ headers:
268
+ Expires:
269
+ - '0'
270
+ Cache-Control:
271
+ - no-cache, no-store, must-revalidate
272
+ X-Powered-By:
273
+ - Undertow/1
274
+ Server:
275
+ - WildFly/10
276
+ Pragma:
277
+ - no-cache
278
+ Date:
279
+ - Wed, 30 Nov 2016 06:47:09 GMT
280
+ Connection:
281
+ - keep-alive
282
+ Content-Type:
283
+ - application/json
284
+ Content-Length:
285
+ - '137'
286
+ body:
287
+ encoding: UTF-8
288
+ string: '{"id":"<%= id3 %>","tags":{"miq_metric":"true"},"dataRetention":90,"type":"gauge","tenantId":"all_tags_tenant"}'
289
+ http_version:
290
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
291
+ - request:
292
+ method: post
293
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges
294
+ body:
295
+ encoding: UTF-8
296
+ string: '{"id":"<%= id4 %>","dataRetention":90,"tags":{"miq_metric":true}}'
297
+ headers:
298
+ Accept:
299
+ - application/json
300
+ Accept-Encoding:
301
+ - identity
302
+ User-Agent:
303
+ - hawkular-client-ruby
304
+ Hawkular-Tenant:
305
+ - all_tags_tenant
306
+ Content-Type:
307
+ - application/json
308
+ Content-Length:
309
+ - '91'
310
+ Host:
311
+ - localhost:8080
312
+ response:
313
+ status:
314
+ code: 201
315
+ message: Created
316
+ headers:
317
+ Expires:
318
+ - '0'
319
+ Cache-Control:
320
+ - no-cache, no-store, must-revalidate
321
+ X-Powered-By:
322
+ - Undertow/1
323
+ Server:
324
+ - WildFly/10
325
+ Pragma:
326
+ - no-cache
327
+ Location:
328
+ - http://localhost:8080/hawkular/metrics/gauges/<%= id4 %>
329
+ Date:
330
+ - Wed, 30 Nov 2016 06:47:09 GMT
331
+ Connection:
332
+ - keep-alive
333
+ Content-Length:
334
+ - '0'
335
+ body:
336
+ encoding: UTF-8
337
+ string: ''
338
+ http_version:
339
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
340
+ - request:
341
+ method: get
342
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id4 %>
343
+ body:
344
+ encoding: US-ASCII
345
+ string: ''
346
+ headers:
347
+ Accept:
348
+ - application/json
349
+ Accept-Encoding:
350
+ - identity
351
+ User-Agent:
352
+ - hawkular-client-ruby
353
+ Hawkular-Tenant:
354
+ - all_tags_tenant
355
+ Content-Type:
356
+ - application/json
357
+ Host:
358
+ - localhost:8080
359
+ response:
360
+ status:
361
+ code: 200
362
+ message: OK
363
+ headers:
364
+ Expires:
365
+ - '0'
366
+ Cache-Control:
367
+ - no-cache, no-store, must-revalidate
368
+ X-Powered-By:
369
+ - Undertow/1
370
+ Server:
371
+ - WildFly/10
372
+ Pragma:
373
+ - no-cache
374
+ Date:
375
+ - Wed, 30 Nov 2016 06:47:09 GMT
376
+ Connection:
377
+ - keep-alive
378
+ Content-Type:
379
+ - application/json
380
+ Content-Length:
381
+ - '137'
382
+ body:
383
+ encoding: UTF-8
384
+ string: '{"id":"<%= id4 %>","tags":{"miq_metric":"true"},"dataRetention":90,"type":"gauge","tenantId":"all_tags_tenant"}'
385
+ http_version:
386
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
387
+ - request:
388
+ method: post
389
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability
390
+ body:
391
+ encoding: UTF-8
392
+ string: '{"id":"<%= id1 %>","dataRetention":90,"tags":{"miq_metric":true}}'
393
+ headers:
394
+ Accept:
395
+ - application/json
396
+ Accept-Encoding:
397
+ - identity
398
+ User-Agent:
399
+ - hawkular-client-ruby
400
+ Hawkular-Tenant:
401
+ - all_tags_tenant
402
+ Content-Type:
403
+ - application/json
404
+ Content-Length:
405
+ - '91'
406
+ Host:
407
+ - localhost:8080
408
+ response:
409
+ status:
410
+ code: 201
411
+ message: Created
412
+ headers:
413
+ Expires:
414
+ - '0'
415
+ Cache-Control:
416
+ - no-cache, no-store, must-revalidate
417
+ X-Powered-By:
418
+ - Undertow/1
419
+ Server:
420
+ - WildFly/10
421
+ Pragma:
422
+ - no-cache
423
+ Location:
424
+ - http://localhost:8080/hawkular/metrics/availability/<%= id1 %>
425
+ Date:
426
+ - Wed, 30 Nov 2016 06:47:09 GMT
427
+ Connection:
428
+ - keep-alive
429
+ Content-Length:
430
+ - '0'
431
+ body:
432
+ encoding: UTF-8
433
+ string: ''
434
+ http_version:
435
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
436
+ - request:
437
+ method: get
438
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id1 %>
439
+ body:
440
+ encoding: US-ASCII
441
+ string: ''
442
+ headers:
443
+ Accept:
444
+ - application/json
445
+ Accept-Encoding:
446
+ - identity
447
+ User-Agent:
448
+ - hawkular-client-ruby
449
+ Hawkular-Tenant:
450
+ - all_tags_tenant
451
+ Content-Type:
452
+ - application/json
453
+ Host:
454
+ - localhost:8080
455
+ response:
456
+ status:
457
+ code: 200
458
+ message: OK
459
+ headers:
460
+ Expires:
461
+ - '0'
462
+ Cache-Control:
463
+ - no-cache, no-store, must-revalidate
464
+ X-Powered-By:
465
+ - Undertow/1
466
+ Server:
467
+ - WildFly/10
468
+ Pragma:
469
+ - no-cache
470
+ Date:
471
+ - Wed, 30 Nov 2016 06:47:09 GMT
472
+ Connection:
473
+ - keep-alive
474
+ Content-Type:
475
+ - application/json
476
+ Content-Length:
477
+ - '144'
478
+ body:
479
+ encoding: UTF-8
480
+ string: '{"id":"<%= id1 %>","tags":{"miq_metric":"true"},"dataRetention":90,"type":"availability","tenantId":"all_tags_tenant"}'
481
+ http_version:
482
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
483
+ - request:
484
+ method: post
485
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability
486
+ body:
487
+ encoding: UTF-8
488
+ string: '{"id":"<%= id2 %>","dataRetention":90,"tags":{"miq_metric":true}}'
489
+ headers:
490
+ Accept:
491
+ - application/json
492
+ Accept-Encoding:
493
+ - identity
494
+ User-Agent:
495
+ - hawkular-client-ruby
496
+ Hawkular-Tenant:
497
+ - all_tags_tenant
498
+ Content-Type:
499
+ - application/json
500
+ Content-Length:
501
+ - '91'
502
+ Host:
503
+ - localhost:8080
504
+ response:
505
+ status:
506
+ code: 201
507
+ message: Created
508
+ headers:
509
+ Expires:
510
+ - '0'
511
+ Cache-Control:
512
+ - no-cache, no-store, must-revalidate
513
+ X-Powered-By:
514
+ - Undertow/1
515
+ Server:
516
+ - WildFly/10
517
+ Pragma:
518
+ - no-cache
519
+ Location:
520
+ - http://localhost:8080/hawkular/metrics/availability/<%= id2 %>
521
+ Date:
522
+ - Wed, 30 Nov 2016 06:47:09 GMT
523
+ Connection:
524
+ - keep-alive
525
+ Content-Length:
526
+ - '0'
527
+ body:
528
+ encoding: UTF-8
529
+ string: ''
530
+ http_version:
531
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
532
+ - request:
533
+ method: get
534
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id2 %>
535
+ body:
536
+ encoding: US-ASCII
537
+ string: ''
538
+ headers:
539
+ Accept:
540
+ - application/json
541
+ Accept-Encoding:
542
+ - identity
543
+ User-Agent:
544
+ - hawkular-client-ruby
545
+ Hawkular-Tenant:
546
+ - all_tags_tenant
547
+ Content-Type:
548
+ - application/json
549
+ Host:
550
+ - localhost:8080
551
+ response:
552
+ status:
553
+ code: 200
554
+ message: OK
555
+ headers:
556
+ Expires:
557
+ - '0'
558
+ Cache-Control:
559
+ - no-cache, no-store, must-revalidate
560
+ X-Powered-By:
561
+ - Undertow/1
562
+ Server:
563
+ - WildFly/10
564
+ Pragma:
565
+ - no-cache
566
+ Date:
567
+ - Wed, 30 Nov 2016 06:47:09 GMT
568
+ Connection:
569
+ - keep-alive
570
+ Content-Type:
571
+ - application/json
572
+ Content-Length:
573
+ - '144'
574
+ body:
575
+ encoding: UTF-8
576
+ string: '{"id":"<%= id2 %>","tags":{"miq_metric":"true"},"dataRetention":90,"type":"availability","tenantId":"all_tags_tenant"}'
577
+ http_version:
578
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
579
+ - request:
580
+ method: post
581
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability
582
+ body:
583
+ encoding: UTF-8
584
+ string: '{"id":"<%= id3 %>","dataRetention":90,"tags":{"miq_metric":true}}'
585
+ headers:
586
+ Accept:
587
+ - application/json
588
+ Accept-Encoding:
589
+ - identity
590
+ User-Agent:
591
+ - hawkular-client-ruby
592
+ Hawkular-Tenant:
593
+ - all_tags_tenant
594
+ Content-Type:
595
+ - application/json
596
+ Content-Length:
597
+ - '91'
598
+ Host:
599
+ - localhost:8080
600
+ response:
601
+ status:
602
+ code: 201
603
+ message: Created
604
+ headers:
605
+ Expires:
606
+ - '0'
607
+ Cache-Control:
608
+ - no-cache, no-store, must-revalidate
609
+ X-Powered-By:
610
+ - Undertow/1
611
+ Server:
612
+ - WildFly/10
613
+ Pragma:
614
+ - no-cache
615
+ Location:
616
+ - http://localhost:8080/hawkular/metrics/availability/<%= id3 %>
617
+ Date:
618
+ - Wed, 30 Nov 2016 06:47:09 GMT
619
+ Connection:
620
+ - keep-alive
621
+ Content-Length:
622
+ - '0'
623
+ body:
624
+ encoding: UTF-8
625
+ string: ''
626
+ http_version:
627
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
628
+ - request:
629
+ method: get
630
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id3 %>
631
+ body:
632
+ encoding: US-ASCII
633
+ string: ''
634
+ headers:
635
+ Accept:
636
+ - application/json
637
+ Accept-Encoding:
638
+ - identity
639
+ User-Agent:
640
+ - hawkular-client-ruby
641
+ Hawkular-Tenant:
642
+ - all_tags_tenant
643
+ Content-Type:
644
+ - application/json
645
+ Host:
646
+ - localhost:8080
647
+ response:
648
+ status:
649
+ code: 200
650
+ message: OK
651
+ headers:
652
+ Expires:
653
+ - '0'
654
+ Cache-Control:
655
+ - no-cache, no-store, must-revalidate
656
+ X-Powered-By:
657
+ - Undertow/1
658
+ Server:
659
+ - WildFly/10
660
+ Pragma:
661
+ - no-cache
662
+ Date:
663
+ - Wed, 30 Nov 2016 06:47:09 GMT
664
+ Connection:
665
+ - keep-alive
666
+ Content-Type:
667
+ - application/json
668
+ Content-Length:
669
+ - '144'
670
+ body:
671
+ encoding: UTF-8
672
+ string: '{"id":"<%= id3 %>","tags":{"miq_metric":"true"},"dataRetention":90,"type":"availability","tenantId":"all_tags_tenant"}'
673
+ http_version:
674
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
675
+ - request:
676
+ method: post
677
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability
678
+ body:
679
+ encoding: UTF-8
680
+ string: '{"id":"<%= id4 %>","dataRetention":90,"tags":{"miq_metric":true}}'
681
+ headers:
682
+ Accept:
683
+ - application/json
684
+ Accept-Encoding:
685
+ - identity
686
+ User-Agent:
687
+ - hawkular-client-ruby
688
+ Hawkular-Tenant:
689
+ - all_tags_tenant
690
+ Content-Type:
691
+ - application/json
692
+ Content-Length:
693
+ - '91'
694
+ Host:
695
+ - localhost:8080
696
+ response:
697
+ status:
698
+ code: 201
699
+ message: Created
700
+ headers:
701
+ Expires:
702
+ - '0'
703
+ Cache-Control:
704
+ - no-cache, no-store, must-revalidate
705
+ X-Powered-By:
706
+ - Undertow/1
707
+ Server:
708
+ - WildFly/10
709
+ Pragma:
710
+ - no-cache
711
+ Location:
712
+ - http://localhost:8080/hawkular/metrics/availability/<%= id4 %>
713
+ Date:
714
+ - Wed, 30 Nov 2016 06:47:09 GMT
715
+ Connection:
716
+ - keep-alive
717
+ Content-Length:
718
+ - '0'
719
+ body:
720
+ encoding: UTF-8
721
+ string: ''
722
+ http_version:
723
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
724
+ - request:
725
+ method: get
726
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id4 %>
727
+ body:
728
+ encoding: US-ASCII
729
+ string: ''
730
+ headers:
731
+ Accept:
732
+ - application/json
733
+ Accept-Encoding:
734
+ - identity
735
+ User-Agent:
736
+ - hawkular-client-ruby
737
+ Hawkular-Tenant:
738
+ - all_tags_tenant
739
+ Content-Type:
740
+ - application/json
741
+ Host:
742
+ - localhost:8080
743
+ response:
744
+ status:
745
+ code: 200
746
+ message: OK
747
+ headers:
748
+ Expires:
749
+ - '0'
750
+ Cache-Control:
751
+ - no-cache, no-store, must-revalidate
752
+ X-Powered-By:
753
+ - Undertow/1
754
+ Server:
755
+ - WildFly/10
756
+ Pragma:
757
+ - no-cache
758
+ Date:
759
+ - Wed, 30 Nov 2016 06:47:09 GMT
760
+ Connection:
761
+ - keep-alive
762
+ Content-Type:
763
+ - application/json
764
+ Content-Length:
765
+ - '144'
766
+ body:
767
+ encoding: UTF-8
768
+ string: '{"id":"<%= id4 %>","tags":{"miq_metric":"true"},"dataRetention":90,"type":"availability","tenantId":"all_tags_tenant"}'
769
+ http_version:
770
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
771
+ - request:
772
+ method: post
773
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters
774
+ body:
775
+ encoding: UTF-8
776
+ string: '{"id":"<%= id1 %>","dataRetention":90,"tags":{"miq_metric":true}}'
777
+ headers:
778
+ Accept:
779
+ - application/json
780
+ Accept-Encoding:
781
+ - identity
782
+ User-Agent:
783
+ - hawkular-client-ruby
784
+ Hawkular-Tenant:
785
+ - all_tags_tenant
786
+ Content-Type:
787
+ - application/json
788
+ Content-Length:
789
+ - '91'
790
+ Host:
791
+ - localhost:8080
792
+ response:
793
+ status:
794
+ code: 201
795
+ message: Created
796
+ headers:
797
+ Expires:
798
+ - '0'
799
+ Cache-Control:
800
+ - no-cache, no-store, must-revalidate
801
+ X-Powered-By:
802
+ - Undertow/1
803
+ Server:
804
+ - WildFly/10
805
+ Pragma:
806
+ - no-cache
807
+ Location:
808
+ - http://localhost:8080/hawkular/metrics/counters/<%= id1 %>
809
+ Date:
810
+ - Wed, 30 Nov 2016 06:47:09 GMT
811
+ Connection:
812
+ - keep-alive
813
+ Content-Length:
814
+ - '0'
815
+ body:
816
+ encoding: UTF-8
817
+ string: ''
818
+ http_version:
819
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
820
+ - request:
821
+ method: get
822
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id1 %>
823
+ body:
824
+ encoding: US-ASCII
825
+ string: ''
826
+ headers:
827
+ Accept:
828
+ - application/json
829
+ Accept-Encoding:
830
+ - identity
831
+ User-Agent:
832
+ - hawkular-client-ruby
833
+ Hawkular-Tenant:
834
+ - all_tags_tenant
835
+ Content-Type:
836
+ - application/json
837
+ Host:
838
+ - localhost:8080
839
+ response:
840
+ status:
841
+ code: 200
842
+ message: OK
843
+ headers:
844
+ Expires:
845
+ - '0'
846
+ Cache-Control:
847
+ - no-cache, no-store, must-revalidate
848
+ X-Powered-By:
849
+ - Undertow/1
850
+ Server:
851
+ - WildFly/10
852
+ Pragma:
853
+ - no-cache
854
+ Date:
855
+ - Wed, 30 Nov 2016 06:47:09 GMT
856
+ Connection:
857
+ - keep-alive
858
+ Content-Type:
859
+ - application/json
860
+ Content-Length:
861
+ - '139'
862
+ body:
863
+ encoding: UTF-8
864
+ string: '{"id":"<%= id1 %>","tags":{"miq_metric":"true"},"dataRetention":90,"type":"counter","tenantId":"all_tags_tenant"}'
865
+ http_version:
866
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
867
+ - request:
868
+ method: post
869
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters
870
+ body:
871
+ encoding: UTF-8
872
+ string: '{"id":"<%= id2 %>","dataRetention":90,"tags":{"miq_metric":true}}'
873
+ headers:
874
+ Accept:
875
+ - application/json
876
+ Accept-Encoding:
877
+ - identity
878
+ User-Agent:
879
+ - hawkular-client-ruby
880
+ Hawkular-Tenant:
881
+ - all_tags_tenant
882
+ Content-Type:
883
+ - application/json
884
+ Content-Length:
885
+ - '91'
886
+ Host:
887
+ - localhost:8080
888
+ response:
889
+ status:
890
+ code: 201
891
+ message: Created
892
+ headers:
893
+ Expires:
894
+ - '0'
895
+ Cache-Control:
896
+ - no-cache, no-store, must-revalidate
897
+ X-Powered-By:
898
+ - Undertow/1
899
+ Server:
900
+ - WildFly/10
901
+ Pragma:
902
+ - no-cache
903
+ Location:
904
+ - http://localhost:8080/hawkular/metrics/counters/<%= id2 %>
905
+ Date:
906
+ - Wed, 30 Nov 2016 06:47:09 GMT
907
+ Connection:
908
+ - keep-alive
909
+ Content-Length:
910
+ - '0'
911
+ body:
912
+ encoding: UTF-8
913
+ string: ''
914
+ http_version:
915
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
916
+ - request:
917
+ method: get
918
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id2 %>
919
+ body:
920
+ encoding: US-ASCII
921
+ string: ''
922
+ headers:
923
+ Accept:
924
+ - application/json
925
+ Accept-Encoding:
926
+ - identity
927
+ User-Agent:
928
+ - hawkular-client-ruby
929
+ Hawkular-Tenant:
930
+ - all_tags_tenant
931
+ Content-Type:
932
+ - application/json
933
+ Host:
934
+ - localhost:8080
935
+ response:
936
+ status:
937
+ code: 200
938
+ message: OK
939
+ headers:
940
+ Expires:
941
+ - '0'
942
+ Cache-Control:
943
+ - no-cache, no-store, must-revalidate
944
+ X-Powered-By:
945
+ - Undertow/1
946
+ Server:
947
+ - WildFly/10
948
+ Pragma:
949
+ - no-cache
950
+ Date:
951
+ - Wed, 30 Nov 2016 06:47:09 GMT
952
+ Connection:
953
+ - keep-alive
954
+ Content-Type:
955
+ - application/json
956
+ Content-Length:
957
+ - '139'
958
+ body:
959
+ encoding: UTF-8
960
+ string: '{"id":"<%= id2 %>","tags":{"miq_metric":"true"},"dataRetention":90,"type":"counter","tenantId":"all_tags_tenant"}'
961
+ http_version:
962
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
963
+ - request:
964
+ method: post
965
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters
966
+ body:
967
+ encoding: UTF-8
968
+ string: '{"id":"<%= id3 %>","dataRetention":90,"tags":{"miq_metric":true}}'
969
+ headers:
970
+ Accept:
971
+ - application/json
972
+ Accept-Encoding:
973
+ - identity
974
+ User-Agent:
975
+ - hawkular-client-ruby
976
+ Hawkular-Tenant:
977
+ - all_tags_tenant
978
+ Content-Type:
979
+ - application/json
980
+ Content-Length:
981
+ - '91'
982
+ Host:
983
+ - localhost:8080
984
+ response:
985
+ status:
986
+ code: 201
987
+ message: Created
988
+ headers:
989
+ Expires:
990
+ - '0'
991
+ Cache-Control:
992
+ - no-cache, no-store, must-revalidate
993
+ X-Powered-By:
994
+ - Undertow/1
995
+ Server:
996
+ - WildFly/10
997
+ Pragma:
998
+ - no-cache
999
+ Location:
1000
+ - http://localhost:8080/hawkular/metrics/counters/<%= id3 %>
1001
+ Date:
1002
+ - Wed, 30 Nov 2016 06:47:09 GMT
1003
+ Connection:
1004
+ - keep-alive
1005
+ Content-Length:
1006
+ - '0'
1007
+ body:
1008
+ encoding: UTF-8
1009
+ string: ''
1010
+ http_version:
1011
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
1012
+ - request:
1013
+ method: get
1014
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id3 %>
1015
+ body:
1016
+ encoding: US-ASCII
1017
+ string: ''
1018
+ headers:
1019
+ Accept:
1020
+ - application/json
1021
+ Accept-Encoding:
1022
+ - identity
1023
+ User-Agent:
1024
+ - hawkular-client-ruby
1025
+ Hawkular-Tenant:
1026
+ - all_tags_tenant
1027
+ Content-Type:
1028
+ - application/json
1029
+ Host:
1030
+ - localhost:8080
1031
+ response:
1032
+ status:
1033
+ code: 200
1034
+ message: OK
1035
+ headers:
1036
+ Expires:
1037
+ - '0'
1038
+ Cache-Control:
1039
+ - no-cache, no-store, must-revalidate
1040
+ X-Powered-By:
1041
+ - Undertow/1
1042
+ Server:
1043
+ - WildFly/10
1044
+ Pragma:
1045
+ - no-cache
1046
+ Date:
1047
+ - Wed, 30 Nov 2016 06:47:09 GMT
1048
+ Connection:
1049
+ - keep-alive
1050
+ Content-Type:
1051
+ - application/json
1052
+ Content-Length:
1053
+ - '139'
1054
+ body:
1055
+ encoding: UTF-8
1056
+ string: '{"id":"<%= id3 %>","tags":{"miq_metric":"true"},"dataRetention":90,"type":"counter","tenantId":"all_tags_tenant"}'
1057
+ http_version:
1058
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
1059
+ - request:
1060
+ method: post
1061
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters
1062
+ body:
1063
+ encoding: UTF-8
1064
+ string: '{"id":"<%= id4 %>","dataRetention":90,"tags":{"miq_metric":true}}'
1065
+ headers:
1066
+ Accept:
1067
+ - application/json
1068
+ Accept-Encoding:
1069
+ - identity
1070
+ User-Agent:
1071
+ - hawkular-client-ruby
1072
+ Hawkular-Tenant:
1073
+ - all_tags_tenant
1074
+ Content-Type:
1075
+ - application/json
1076
+ Content-Length:
1077
+ - '91'
1078
+ Host:
1079
+ - localhost:8080
1080
+ response:
1081
+ status:
1082
+ code: 201
1083
+ message: Created
1084
+ headers:
1085
+ Expires:
1086
+ - '0'
1087
+ Cache-Control:
1088
+ - no-cache, no-store, must-revalidate
1089
+ X-Powered-By:
1090
+ - Undertow/1
1091
+ Server:
1092
+ - WildFly/10
1093
+ Pragma:
1094
+ - no-cache
1095
+ Location:
1096
+ - http://localhost:8080/hawkular/metrics/counters/<%= id4 %>
1097
+ Date:
1098
+ - Wed, 30 Nov 2016 06:47:09 GMT
1099
+ Connection:
1100
+ - keep-alive
1101
+ Content-Length:
1102
+ - '0'
1103
+ body:
1104
+ encoding: UTF-8
1105
+ string: ''
1106
+ http_version:
1107
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
1108
+ - request:
1109
+ method: get
1110
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id4 %>
1111
+ body:
1112
+ encoding: US-ASCII
1113
+ string: ''
1114
+ headers:
1115
+ Accept:
1116
+ - application/json
1117
+ Accept-Encoding:
1118
+ - identity
1119
+ User-Agent:
1120
+ - hawkular-client-ruby
1121
+ Hawkular-Tenant:
1122
+ - all_tags_tenant
1123
+ Content-Type:
1124
+ - application/json
1125
+ Host:
1126
+ - localhost:8080
1127
+ response:
1128
+ status:
1129
+ code: 200
1130
+ message: OK
1131
+ headers:
1132
+ Expires:
1133
+ - '0'
1134
+ Cache-Control:
1135
+ - no-cache, no-store, must-revalidate
1136
+ X-Powered-By:
1137
+ - Undertow/1
1138
+ Server:
1139
+ - WildFly/10
1140
+ Pragma:
1141
+ - no-cache
1142
+ Date:
1143
+ - Wed, 30 Nov 2016 06:47:09 GMT
1144
+ Connection:
1145
+ - keep-alive
1146
+ Content-Type:
1147
+ - application/json
1148
+ Content-Length:
1149
+ - '139'
1150
+ body:
1151
+ encoding: UTF-8
1152
+ string: '{"id":"<%= id4 %>","tags":{"miq_metric":"true"},"dataRetention":90,"type":"counter","tenantId":"all_tags_tenant"}'
1153
+ http_version:
1154
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
1155
+ - request:
1156
+ method: post
1157
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/raw
1158
+ body:
1159
+ encoding: UTF-8
1160
+ string: '{"gauges":[{"id":"<%= id1 %>","data":[{"value":1.1,"timestamp":1480488429672}]},{"id":"<%= id2 %>","data":[{"value":2.2,"timestamp":1480488429672}]},{"id":"<%= id3 %>","data":[{"value":3.3,"timestamp":1480488429672}]}],"counters":[{"id":"<%= id1 %>","data":[{"value":1,"timestamp":1480488429672}]},{"id":"<%= id2 %>","data":[{"value":2,"timestamp":1480488429672}]},{"id":"<%= id3 %>","data":[{"value":3,"timestamp":1480488429672}]}],"availabilities":[{"id":"<%= id1 %>","data":[{"value":"up","timestamp":1480488429672}]},{"id":"<%= id2 %>","data":[{"value":"down","timestamp":1480488429672}]},{"id":"<%= id3 %>","data":[{"value":"up","timestamp":1480488429672}]},{"id":"<%= id4 %>","data":[{"value":"up","timestamp":10000},{"value":"down","timestamp":100000},{"value":"admin","timestamp":1000000}]}],"strings":[]}'
1161
+ headers:
1162
+ Accept:
1163
+ - application/json
1164
+ Accept-Encoding:
1165
+ - identity
1166
+ User-Agent:
1167
+ - hawkular-client-ruby
1168
+ Hawkular-Tenant:
1169
+ - all_tags_tenant
1170
+ Content-Type:
1171
+ - application/json
1172
+ Content-Length:
1173
+ - '1073'
1174
+ Host:
1175
+ - localhost:8080
1176
+ response:
1177
+ status:
1178
+ code: 200
1179
+ message: OK
1180
+ headers:
1181
+ Expires:
1182
+ - '0'
1183
+ Connection:
1184
+ - keep-alive
1185
+ Cache-Control:
1186
+ - no-cache, no-store, must-revalidate
1187
+ X-Powered-By:
1188
+ - Undertow/1
1189
+ Server:
1190
+ - WildFly/10
1191
+ Pragma:
1192
+ - no-cache
1193
+ Content-Length:
1194
+ - '0'
1195
+ Date:
1196
+ - Wed, 30 Nov 2016 06:47:09 GMT
1197
+ body:
1198
+ encoding: UTF-8
1199
+ string: ''
1200
+ http_version:
1201
+ recorded_at: Wed, 30 Nov 2016 06:47:09 GMT
1202
+ - request:
1203
+ method: post
1204
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/stats/query
1205
+ body:
1206
+ encoding: UTF-8
1207
+ string: '{"tags":"miq_metric:true","buckets":1,"bucketDuration":null,"start":null,"end":null}'
1208
+ headers:
1209
+ Accept:
1210
+ - application/json
1211
+ Accept-Encoding:
1212
+ - identity
1213
+ User-Agent:
1214
+ - hawkular-client-ruby
1215
+ Hawkular-Tenant:
1216
+ - all_tags_tenant
1217
+ Content-Type:
1218
+ - application/json
1219
+ Content-Length:
1220
+ - '84'
1221
+ Host:
1222
+ - localhost:8080
1223
+ response:
1224
+ status:
1225
+ code: 200
1226
+ message: OK
1227
+ headers:
1228
+ Expires:
1229
+ - '0'
1230
+ Cache-Control:
1231
+ - no-cache, no-store, must-revalidate
1232
+ X-Powered-By:
1233
+ - Undertow/1
1234
+ Server:
1235
+ - WildFly/10
1236
+ Pragma:
1237
+ - no-cache
1238
+ Date:
1239
+ - Wed, 30 Nov 2016 06:47:10 GMT
1240
+ Connection:
1241
+ - keep-alive
1242
+ Content-Type:
1243
+ - application/json
1244
+ Content-Length:
1245
+ - '2351'
1246
+ body:
1247
+ encoding: UTF-8
1248
+ string: '{"gauge":{"<%= id3 %>":[{"start":1480459629830,"end":1480488429830,"min":3.3,"avg":3.3,"median":3.3,"max":3.3,"sum":3.3,"samples":1,"empty":false}],"<%= id4 %>":[{"start":1480459629830,"end":1480488429830,"empty":true}],"<%= id1 %>":[{"start":1480459629830,"end":1480488429830,"min":1.1,"avg":1.1,"median":1.1,"max":1.1,"sum":1.1,"samples":1,"empty":false}],"<%= id2 %>":[{"start":1480459629830,"end":1480488429830,"min":2.2,"avg":2.2,"median":2.2,"max":2.2,"sum":2.2,"samples":1,"empty":false}]},"counter":{"<%= id3 %>":[{"start":1480459629830,"end":1480488429830,"min":3.0,"avg":3.0,"median":3.0,"max":3.0,"sum":3.0,"samples":1,"empty":false}],"<%= id4 %>":[{"start":1480459629830,"end":1480488429830,"empty":true}],"<%= id1 %>":[{"start":1480459629830,"end":1480488429830,"min":1.0,"avg":1.0,"median":1.0,"max":1.0,"sum":1.0,"samples":1,"empty":false}],"<%= id2 %>":[{"start":1480459629830,"end":1480488429830,"min":2.0,"avg":2.0,"median":2.0,"max":2.0,"sum":2.0,"samples":1,"empty":false}]},"availability":{"<%= id3 %>":[{"start":1480459629830,"end":1480488429830,"durationMap":{"up":28800000},"lastNotUptime":0,"uptimeRatio":1.0,"notUpCount":0,"downtimeDuration":0,"lastDowntime":0,"downtimeCount":0,"adminDuration":0,"downDuration":0,"unknownDuration":0,"upDuration":28800000,"notUpDuration":0,"empty":false}],"<%= id4 %>":[{"start":1480459629830,"end":1480488429830,"empty":true}],"<%= id1 %>":[{"start":1480459629830,"end":1480488429830,"durationMap":{"up":28800000},"lastNotUptime":0,"uptimeRatio":1.0,"notUpCount":0,"downtimeDuration":0,"lastDowntime":0,"downtimeCount":0,"adminDuration":0,"downDuration":0,"unknownDuration":0,"upDuration":28800000,"notUpDuration":0,"empty":false}],"<%= id2 %>":[{"start":1480459629830,"end":1480488429830,"durationMap":{"down":28800000},"lastNotUptime":1480488429830,"uptimeRatio":0.0,"notUpCount":1,"downtimeDuration":28800000,"lastDowntime":1480488429830,"downtimeCount":1,"adminDuration":0,"downDuration":28800000,"unknownDuration":0,"upDuration":0,"notUpDuration":28800000,"empty":false}]}}'
1249
+ http_version:
1250
+ recorded_at: Wed, 30 Nov 2016 06:47:10 GMT
1251
+ recorded_with: VCR 3.0.3