hawkular-client 2.5.0 → 2.6.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.
@@ -0,0 +1,364 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - identity
14
+ User-Agent:
15
+ - hawkular-client-ruby
16
+ Hawkular-Tenant:
17
+ - vcr-test-tenant-123
18
+ Content-Type:
19
+ - application/json
20
+ Host:
21
+ - localhost:8080
22
+ response:
23
+ status:
24
+ code: 204
25
+ message: No Content
26
+ headers:
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
+ - Tue, 23 Aug 2016 16:18:21 GMT
39
+ body:
40
+ encoding: UTF-8
41
+ string: ''
42
+ http_version:
43
+ recorded_at: Tue, 23 Aug 2016 16:18:21 GMT
44
+ - request:
45
+ method: get
46
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/data/
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ''
50
+ headers:
51
+ Accept:
52
+ - application/json
53
+ Accept-Encoding:
54
+ - identity
55
+ User-Agent:
56
+ - hawkular-client-ruby
57
+ Hawkular-Tenant:
58
+ - vcr-test-tenant-123
59
+ Content-Type:
60
+ - application/json
61
+ Host:
62
+ - localhost:8080
63
+ response:
64
+ status:
65
+ code: 204
66
+ message: No Content
67
+ headers:
68
+ Expires:
69
+ - '0'
70
+ Cache-Control:
71
+ - no-cache, no-store, must-revalidate
72
+ X-Powered-By:
73
+ - Undertow/1
74
+ Server:
75
+ - WildFly/10
76
+ Pragma:
77
+ - no-cache
78
+ Date:
79
+ - Tue, 23 Aug 2016 16:18:21 GMT
80
+ body:
81
+ encoding: UTF-8
82
+ string: ''
83
+ http_version:
84
+ recorded_at: Tue, 23 Aug 2016 16:18:21 GMT
85
+ - request:
86
+ method: get
87
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/data/
88
+ body:
89
+ encoding: US-ASCII
90
+ string: ''
91
+ headers:
92
+ Accept:
93
+ - application/json
94
+ Accept-Encoding:
95
+ - identity
96
+ User-Agent:
97
+ - hawkular-client-ruby
98
+ Hawkular-Tenant:
99
+ - vcr-test-tenant-123
100
+ Content-Type:
101
+ - application/json
102
+ Host:
103
+ - localhost:8080
104
+ response:
105
+ status:
106
+ code: 204
107
+ message: No Content
108
+ headers:
109
+ Expires:
110
+ - '0'
111
+ Cache-Control:
112
+ - no-cache, no-store, must-revalidate
113
+ X-Powered-By:
114
+ - Undertow/1
115
+ Server:
116
+ - WildFly/10
117
+ Pragma:
118
+ - no-cache
119
+ Date:
120
+ - Tue, 23 Aug 2016 16:18:21 GMT
121
+ body:
122
+ encoding: UTF-8
123
+ string: ''
124
+ http_version:
125
+ recorded_at: Tue, 23 Aug 2016 16:18:21 GMT
126
+ - request:
127
+ method: post
128
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/data
129
+ body:
130
+ encoding: UTF-8
131
+ string: '{"gauges":[{"id":"<%= id %>","data":[{"value":1.1,"timestamp":1471969101557}]}],"counters":[{"id":"<%= id %>","data":[{"value":1,"timestamp":1471969101557}]}],"availabilities":[{"id":"<%= id %>","data":[{"value":"down","timestamp":1471969101557}]}]}'
132
+ headers:
133
+ Accept:
134
+ - application/json
135
+ Accept-Encoding:
136
+ - identity
137
+ User-Agent:
138
+ - hawkular-client-ruby
139
+ Hawkular-Tenant:
140
+ - vcr-test-tenant-123
141
+ Content-Type:
142
+ - application/json
143
+ Content-Length:
144
+ - '330'
145
+ Host:
146
+ - localhost:8080
147
+ response:
148
+ status:
149
+ code: 200
150
+ message: OK
151
+ headers:
152
+ Expires:
153
+ - '0'
154
+ Connection:
155
+ - keep-alive
156
+ Cache-Control:
157
+ - no-cache, no-store, must-revalidate
158
+ X-Powered-By:
159
+ - Undertow/1
160
+ Server:
161
+ - WildFly/10
162
+ Pragma:
163
+ - no-cache
164
+ Content-Length:
165
+ - '0'
166
+ Date:
167
+ - Tue, 23 Aug 2016 16:18:21 GMT
168
+ body:
169
+ encoding: UTF-8
170
+ string: ''
171
+ http_version:
172
+ recorded_at: Tue, 23 Aug 2016 16:18:21 GMT
173
+ - request:
174
+ method: get
175
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/
176
+ body:
177
+ encoding: US-ASCII
178
+ string: ''
179
+ headers:
180
+ Accept:
181
+ - application/json
182
+ Accept-Encoding:
183
+ - identity
184
+ User-Agent:
185
+ - hawkular-client-ruby
186
+ Hawkular-Tenant:
187
+ - vcr-test-tenant-123
188
+ Content-Type:
189
+ - application/json
190
+ Host:
191
+ - localhost:8080
192
+ response:
193
+ status:
194
+ code: 200
195
+ message: OK
196
+ headers:
197
+ Expires:
198
+ - '0'
199
+ Cache-Control:
200
+ - no-cache, no-store, must-revalidate
201
+ X-Powered-By:
202
+ - Undertow/1
203
+ Server:
204
+ - WildFly/10
205
+ Pragma:
206
+ - no-cache
207
+ Date:
208
+ - Tue, 23 Aug 2016 16:18:21 GMT
209
+ Connection:
210
+ - keep-alive
211
+ Content-Type:
212
+ - application/json
213
+ Content-Length:
214
+ - '39'
215
+ body:
216
+ encoding: UTF-8
217
+ string: '[{"timestamp":1471969101557,"value":1}]'
218
+ http_version:
219
+ recorded_at: Tue, 23 Aug 2016 16:18:21 GMT
220
+ - request:
221
+ method: get
222
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/data/
223
+ body:
224
+ encoding: US-ASCII
225
+ string: ''
226
+ headers:
227
+ Accept:
228
+ - application/json
229
+ Accept-Encoding:
230
+ - identity
231
+ User-Agent:
232
+ - hawkular-client-ruby
233
+ Hawkular-Tenant:
234
+ - vcr-test-tenant-123
235
+ Content-Type:
236
+ - application/json
237
+ Host:
238
+ - localhost:8080
239
+ response:
240
+ status:
241
+ code: 200
242
+ message: OK
243
+ headers:
244
+ Expires:
245
+ - '0'
246
+ Cache-Control:
247
+ - no-cache, no-store, must-revalidate
248
+ X-Powered-By:
249
+ - Undertow/1
250
+ Server:
251
+ - WildFly/10
252
+ Pragma:
253
+ - no-cache
254
+ Date:
255
+ - Tue, 23 Aug 2016 16:18:21 GMT
256
+ Connection:
257
+ - keep-alive
258
+ Content-Type:
259
+ - application/json
260
+ Content-Length:
261
+ - '41'
262
+ body:
263
+ encoding: UTF-8
264
+ string: '[{"timestamp":1471969101557,"value":1.1}]'
265
+ http_version:
266
+ recorded_at: Tue, 23 Aug 2016 16:18:21 GMT
267
+ - request:
268
+ method: get
269
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/data/
270
+ body:
271
+ encoding: US-ASCII
272
+ string: ''
273
+ headers:
274
+ Accept:
275
+ - application/json
276
+ Accept-Encoding:
277
+ - identity
278
+ User-Agent:
279
+ - hawkular-client-ruby
280
+ Hawkular-Tenant:
281
+ - vcr-test-tenant-123
282
+ Content-Type:
283
+ - application/json
284
+ Host:
285
+ - localhost:8080
286
+ response:
287
+ status:
288
+ code: 200
289
+ message: OK
290
+ headers:
291
+ Expires:
292
+ - '0'
293
+ Cache-Control:
294
+ - no-cache, no-store, must-revalidate
295
+ X-Powered-By:
296
+ - Undertow/1
297
+ Server:
298
+ - WildFly/10
299
+ Pragma:
300
+ - no-cache
301
+ Date:
302
+ - Tue, 23 Aug 2016 16:18:21 GMT
303
+ Connection:
304
+ - keep-alive
305
+ Content-Type:
306
+ - application/json
307
+ Content-Length:
308
+ - '44'
309
+ body:
310
+ encoding: UTF-8
311
+ string: '[{"timestamp":1471969101557,"value":"down"}]'
312
+ http_version:
313
+ recorded_at: Tue, 23 Aug 2016 16:18:21 GMT
314
+ - request:
315
+ method: post
316
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/stats/query
317
+ body:
318
+ encoding: UTF-8
319
+ string: '{"metrics":{"gauge":["<%= id %>"],"counter":["<%= id %>"],"availability":["<%= id %>"]},"start":1471969101557,"end":1471969101558,"bucketDuration":"1ms"}'
320
+ headers:
321
+ Accept:
322
+ - application/json
323
+ Accept-Encoding:
324
+ - identity
325
+ User-Agent:
326
+ - hawkular-client-ruby
327
+ Hawkular-Tenant:
328
+ - vcr-test-tenant-123
329
+ Content-Type:
330
+ - application/json
331
+ Content-Length:
332
+ - '234'
333
+ Host:
334
+ - localhost:8080
335
+ response:
336
+ status:
337
+ code: 200
338
+ message: OK
339
+ headers:
340
+ Expires:
341
+ - '0'
342
+ Cache-Control:
343
+ - no-cache, no-store, must-revalidate
344
+ X-Powered-By:
345
+ - Undertow/1
346
+ Server:
347
+ - WildFly/10
348
+ Pragma:
349
+ - no-cache
350
+ Date:
351
+ - Tue, 23 Aug 2016 16:18:21 GMT
352
+ Connection:
353
+ - keep-alive
354
+ Content-Type:
355
+ - application/json
356
+ Content-Length:
357
+ - '742'
358
+ body:
359
+ encoding: UTF-8
360
+ string: '{"gauge":{"<%= id %>":[{"start":1471969101557,"end":1471969101558,"min":1.1,"avg":1.1,"median":1.1,"max":1.1,"sum":1.1,"samples":1,"empty":false}]},"counter":{"<%= id %>":[{"start":1471969101557,"end":1471969101558,"min":1.0,"avg":1.0,"median":1.0,"max":1.0,"sum":1.0,"samples":1,"empty":false}]},"availability":{"<%= id %>":[{"start":1471969101557,"end":1471969101558,"durationMap":{"AvailabilityType{code=1,
361
+ text=down}":1},"lastNotUptime":1471969101558,"uptimeRatio":0.0,"notUpCount":1,"downtimeDuration":1,"lastDowntime":1471969101558,"downtimeCount":1,"adminDuration":0,"downDuration":1,"unknownDuration":0,"upDuration":0,"notUpDuration":1,"empty":false}]}}'
362
+ http_version:
363
+ recorded_at: Tue, 23 Aug 2016 16:18:21 GMT
364
+ recorded_with: VCR 3.0.1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hawkular-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Libor Zoubek
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-08-22 00:00:00.000000000 Z
14
+ date: 2016-08-30 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rest-client
@@ -310,6 +310,7 @@ files:
310
310
  - spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_create_a_resourcetype.yml
311
311
  - spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_create_and_delete_feed.yml
312
312
  - spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_create_and_get_a_resource.yml
313
+ - spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_get_resource_with_its_configurations.yml
313
314
  - spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_have_the_same_requested_metric_type_id.yml
314
315
  - spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_URLs.yml
315
316
  - spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_WildFlys.yml
@@ -405,6 +406,7 @@ files:
405
406
  - spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory.yml
406
407
  - spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory_def.yml
407
408
  - spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml
409
+ - spec/vcr_cassettes/Metrics/metrics_services/Templates/Mixed_metrics/Should_fetch_stats_for_mixed_metric.yml
408
410
  - spec/vcr_cassettes/Metrics/metrics_services/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml
409
411
  - spec/vcr_cassettes/Metrics/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml
410
412
  - spec/vcr_cassettes/Metrics/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml
@@ -547,6 +549,7 @@ test_files:
547
549
  - spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_create_a_resourcetype.yml
548
550
  - spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_create_and_delete_feed.yml
549
551
  - spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_create_and_get_a_resource.yml
552
+ - spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_get_resource_with_its_configurations.yml
550
553
  - spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_have_the_same_requested_metric_type_id.yml
551
554
  - spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_URLs.yml
552
555
  - spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_WildFlys.yml
@@ -642,6 +645,7 @@ test_files:
642
645
  - spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory.yml
643
646
  - spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory_def.yml
644
647
  - spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml
648
+ - spec/vcr_cassettes/Metrics/metrics_services/Templates/Mixed_metrics/Should_fetch_stats_for_mixed_metric.yml
645
649
  - spec/vcr_cassettes/Metrics/metrics_services/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml
646
650
  - spec/vcr_cassettes/Metrics/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml
647
651
  - spec/vcr_cassettes/Metrics/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml