hawkular-client 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +3 -3
  3. data/CHANGES.rdoc +8 -0
  4. data/README.rdoc +12 -5
  5. data/hawkularclient.gemspec +2 -2
  6. data/lib/alerts/alerts_api.rb +193 -0
  7. data/lib/{hawkularclient.rb → hawkular.rb} +93 -52
  8. data/lib/hawkular_all.rb +7 -0
  9. data/lib/inventory/inventory_api.rb +378 -0
  10. data/lib/metrics/metric_api.rb +20 -10
  11. data/lib/metrics/metrics_client.rb +52 -0
  12. data/lib/metrics/tenant_api.rb +1 -1
  13. data/lib/metrics/version.rb +3 -1
  14. data/lib/version.rb +8 -0
  15. data/spec/integration/alerts_spec.rb +143 -0
  16. data/spec/integration/inventory_spec.rb +191 -0
  17. data/spec/integration/metric_spec.rb +33 -0
  18. data/spec/spec_helper.rb +14 -1
  19. data/spec/unit/base_spec.rb +57 -0
  20. data/spec/vcr_cassettes/Alert/Alerts/Should_acknowledge_an_alert.yml +183 -0
  21. data/spec/vcr_cassettes/Alert/Alerts/Should_fetch_single_alert.yml +69 -0
  22. data/spec/vcr_cassettes/Alert/Alerts/Should_list_alerts.yml +85 -0
  23. data/spec/vcr_cassettes/Alert/Alerts/Should_list_alerts_for_trigger.yml +142 -0
  24. data/spec/vcr_cassettes/Alert/Alerts/Should_list_alerts_for_unknown_trigger.yml +46 -0
  25. data/spec/vcr_cassettes/Alert/Alerts/Should_resolve_an_alert.yml +181 -0
  26. data/spec/vcr_cassettes/Alert/Alerts/Should_resolve_an_alert2.yml +49 -0
  27. data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers.yml +62 -0
  28. data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_ID.yml +55 -0
  29. data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_Tag.yml +68 -0
  30. data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_Tags.yml +68 -0
  31. data/spec/vcr_cassettes/Alert/Triggers/Should_get_a_single_Trigger_with_conditions.yml +138 -0
  32. data/spec/vcr_cassettes/Alert/Triggers/Should_get_a_single_metric_Trigger.yml +50 -0
  33. data/spec/vcr_cassettes/Gauge_metrics/Platform_mem.yml +44 -0
  34. data/spec/vcr_cassettes/Gauge_metrics/Platform_mem_def.yml +45 -0
  35. data/spec/vcr_cassettes/Inventory/Should_List_datasources_with_no_props.yml +228 -0
  36. data/spec/vcr_cassettes/Inventory/Should_list_URLs.yml +105 -0
  37. data/spec/vcr_cassettes/Inventory/Should_list_WildFlys.yml +104 -0
  38. data/spec/vcr_cassettes/Inventory/Should_list_WildFlys_with_props.yml +162 -0
  39. data/spec/vcr_cassettes/Inventory/Should_list_children_of_WildFly.yml +180 -0
  40. data/spec/vcr_cassettes/Inventory/Should_list_feeds.yml +102 -0
  41. data/spec/vcr_cassettes/Inventory/Should_list_heap_metrics_for_WildFlys.yml +308 -0
  42. data/spec/vcr_cassettes/Inventory/Should_list_metrics_for_WildFlys.yml +172 -0
  43. data/spec/vcr_cassettes/Inventory/Should_list_types_with_bad_feed.yml +101 -0
  44. data/spec/vcr_cassettes/Inventory/Should_list_types_with_feed.yml +109 -0
  45. data/spec/vcr_cassettes/Inventory/Should_list_types_without_feed.yml +110 -0
  46. data/spec/vcr_cassettes/Metrics/Status.yml +44 -0
  47. data/spec/vcr_cassettes/No_Tenant/Should_fail.yml +42 -0
  48. data/spec/vcr_cassettes/Tenants/Should_Get_Tenant_For_Explicit_Credentials.yml +50 -0
  49. data/spec/vcr_cassettes/Tenants/Should_Get_Tenant_For_Implicit_Credentials.yml +50 -0
  50. metadata +74 -3
@@ -0,0 +1,102 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/tenant
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Encoding:
24
+ - gzip
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/9
33
+ Pragma:
34
+ - no-cache
35
+ Date:
36
+ - Fri, 06 Nov 2015 15:09:05 GMT
37
+ Connection:
38
+ - keep-alive
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '85'
43
+ body:
44
+ encoding: ASCII-8BIT
45
+ string: !binary |-
46
+ H4sIAAAAAAAAAKvmUlBQKkgsyVBSsFJQ0i+xNrIwMDJLMjbTtUhLNdE1MTY2
47
+ 0rUwSbbQNTUySTU0N040s0hKU9IB6cpMAeshSgNXLQAnmwH5aQAAAA==
48
+ http_version:
49
+ recorded_at: Fri, 06 Nov 2015 15:09:05 GMT
50
+ - request:
51
+ method: get
52
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ''
56
+ headers:
57
+ Accept:
58
+ - application/json
59
+ Accept-Encoding:
60
+ - gzip, deflate
61
+ Content-Type:
62
+ - application/json
63
+ User-Agent:
64
+ - Ruby
65
+ response:
66
+ status:
67
+ code: 200
68
+ message: OK
69
+ headers:
70
+ Content-Encoding:
71
+ - gzip
72
+ Expires:
73
+ - '0'
74
+ Cache-Control:
75
+ - no-cache, no-store, must-revalidate
76
+ X-Powered-By:
77
+ - Undertow/1
78
+ Server:
79
+ - WildFly/9
80
+ Pragma:
81
+ - no-cache
82
+ Date:
83
+ - Fri, 06 Nov 2015 15:09:05 GMT
84
+ X-Total-Count:
85
+ - '1'
86
+ Connection:
87
+ - keep-alive
88
+ Content-Type:
89
+ - application/json
90
+ Content-Length:
91
+ - '104'
92
+ Link:
93
+ - <http://localhost:8080/hawkular/inventory/feeds>; rel="current"
94
+ body:
95
+ encoding: ASCII-8BIT
96
+ string: !binary |-
97
+ H4sIAAAAAAAAAItWqOZSUFAqSCzJUFKwUlDSL7E2sjAwMksyNtO1SEs10TUx
98
+ NjbStTBJttA1NTJJNTQ3TjSzSErTT7UuSS0u0U+zLs5LLSpR0gEZkpkCNgIi
99
+ wlWrEAsAWqDu6l0AAAA=
100
+ http_version:
101
+ recorded_at: Fri, 06 Nov 2015 15:09:05 GMT
102
+ recorded_with: VCR 3.0.0
@@ -0,0 +1,308 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/tenant
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Encoding:
24
+ - gzip
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/9
33
+ Pragma:
34
+ - no-cache
35
+ Date:
36
+ - Fri, 06 Nov 2015 21:24:41 GMT
37
+ Connection:
38
+ - keep-alive
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '85'
43
+ body:
44
+ encoding: ASCII-8BIT
45
+ string: !binary |-
46
+ H4sIAAAAAAAAAKvmUlBQKkgsyVBSsFJQ0i+xNrIwMDJLMjbTtUhLNdE1MTY2
47
+ 0rUwSbbQNTUySTU0N040s0hKU9IB6cpMAeshSgNXLQAnmwH5aQAAAA==
48
+ http_version:
49
+ recorded_at: Fri, 06 Nov 2015 21:24:41 GMT
50
+ - request:
51
+ method: get
52
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/snert/resourceTypes/WildFly%20Server/resources
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ''
56
+ headers:
57
+ Accept:
58
+ - application/json
59
+ Accept-Encoding:
60
+ - gzip, deflate
61
+ Content-Type:
62
+ - application/json
63
+ User-Agent:
64
+ - Ruby
65
+ response:
66
+ status:
67
+ code: 200
68
+ message: OK
69
+ headers:
70
+ Content-Encoding:
71
+ - gzip
72
+ Expires:
73
+ - '0'
74
+ Cache-Control:
75
+ - no-cache, no-store, must-revalidate
76
+ X-Powered-By:
77
+ - Undertow/1
78
+ Server:
79
+ - WildFly/9
80
+ Pragma:
81
+ - no-cache
82
+ Date:
83
+ - Fri, 06 Nov 2015 21:24:41 GMT
84
+ X-Total-Count:
85
+ - '1'
86
+ Connection:
87
+ - keep-alive
88
+ Content-Type:
89
+ - application/json
90
+ Content-Length:
91
+ - '177'
92
+ Link:
93
+ - <http://localhost:8080/hawkular/inventory/feeds/snert/resourceTypes/WildFly%20Server/resources>;
94
+ rel="current"
95
+ body:
96
+ encoding: ASCII-8BIT
97
+ string: !binary |-
98
+ H4sIAAAAAAAAAItWqOZSUFAqSCzJUFKwUlDSL7E2sjAwMksyNtO1SEs10TUx
99
+ NjbStTBJttA1NTJJNTQ3TjSzSErTT7UuSS0u0U+zLs5LLSrRL4LQdT75yYk5
100
+ dXVKOiBDSyoLUkGGgmyghh0l1uGZOSluOZWqRgbBqUVlqUVge4BG5yXmgm1S
101
+ gipQQJXOTMEmCZSrBbsTh26FaLC9sRDPQM1A9SZXrUIsAH0JV21CAQAA
102
+ http_version:
103
+ recorded_at: Fri, 06 Nov 2015 21:24:41 GMT
104
+ - request:
105
+ method: get
106
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/snert/resources/snert~Local~~/metrics
107
+ body:
108
+ encoding: US-ASCII
109
+ string: ''
110
+ headers:
111
+ Accept:
112
+ - application/json
113
+ Accept-Encoding:
114
+ - gzip, deflate
115
+ Content-Type:
116
+ - application/json
117
+ User-Agent:
118
+ - Ruby
119
+ response:
120
+ status:
121
+ code: 200
122
+ message: OK
123
+ headers:
124
+ Content-Encoding:
125
+ - gzip
126
+ Expires:
127
+ - '0'
128
+ Cache-Control:
129
+ - no-cache, no-store, must-revalidate
130
+ X-Powered-By:
131
+ - Undertow/1
132
+ Server:
133
+ - WildFly/9
134
+ Pragma:
135
+ - no-cache
136
+ Date:
137
+ - Fri, 06 Nov 2015 21:24:41 GMT
138
+ X-Total-Count:
139
+ - '14'
140
+ Connection:
141
+ - keep-alive
142
+ Content-Type:
143
+ - application/json
144
+ Content-Length:
145
+ - '800'
146
+ Link:
147
+ - <http://localhost:8080/hawkular/inventory/feeds/snert/resources/snert~Local~~/metrics>;
148
+ rel="current"
149
+ body:
150
+ encoding: ASCII-8BIT
151
+ string: !binary |-
152
+ H4sIAAAAAAAAANVZ0Y6iMBR9369oSOZtjLPquGZ9YhzX3WR1EsVMNpN5QKxO
153
+ N4AuFDNmI9++FYFBbaGUKuwLgcI997ScHO4tL+DvJwCUtY7fFPAVKHXcbXTu
154
+ Gu1Zs13rLGCr1mo2G7VOy+jU7hst+PlLU293Zos67GLo4vqi69rQwXWrO/zh
155
+ j/2b+4fg2v+5MnTTJ9eP/lDzn5E5/2Zubxp36nLpwKWO4ZxcPMMZOQ4hdpDh
156
+ +ke3JtDZmBCTszH845FM5ExDFlRu92zxdg33bPfUZZDHXckMCSlbtwKOSggN
157
+ PqIBgQXnoCCEBCEgSMJ5NsIB3Ohp1I8Go3VQBup0EI+iuYy8BGsXLLbMiUTc
158
+ ArG8HEnlNSEUYc672+vKeQitlbNNSOQ71NfkcurC+eWlmpmd9vYOQSAZApIB
159
+ sdAefmn9SS6lMaHZWkplw6sWdt5r64HXPFQDow2Mn5lA10Ur262Ou6URFPOE
160
+ A2Jw9xTtkt5GS1vE2ljTkOdsVMZVFfIY/oZG8qnqSTmdopgKIkwBOfeepiOt
161
+ PxYWND11EUmzJyNP1AzW15a19uZAfY7sZUIshzEy0Ft5Nr68bjk50N5lHAqO
162
+ A8FRmLidZuCzRcZBjFdLWRyq6oT99zVyKm2EqQzFrCOELMEGqZmLuCBzKvJM
163
+ kM659J5ltLLDxqG3siyEcSm9C4sFR9cQhoKzQHEnzMzA3dLQyQm2NhQepcsn
164
+ fGtD/b28jjdKzttiJp6XppEYOF+3G69bgWY3yFq6EFTD8CzPDL82gx45PHqO
165
+ jonNlaCMLDYc7ycBAQY9cBpe5APHmYlbSmlUBZXF5FTVCoy2I3ulml4ORTmb
166
+ rTl6gaJFGD21zJ3j/P2DMOvS/bMCRZhoBXbh8ku09pJXeJVddfEaDKkE/oft
167
+ 5WyaYvZBcMvaaGalLuKGadOR54dM5qU74kdPWNIPNQqBHC0f9bearFY034+1
168
+ M0oFG1DZv9dUlkBUzd9/r6Gz94uNjkx9hkyEt766XocFFXQupQzOzMn1PwyD
169
+ 0wBw/Hh+NWTgnguBg0iErdI0EC88O+cOvP4DiWqq0D8iAAA=
170
+ http_version:
171
+ recorded_at: Fri, 06 Nov 2015 21:24:41 GMT
172
+ - request:
173
+ method: get
174
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/snert/resources/snert~Local~~/metrics
175
+ body:
176
+ encoding: US-ASCII
177
+ string: ''
178
+ headers:
179
+ Accept:
180
+ - application/json
181
+ Accept-Encoding:
182
+ - gzip, deflate
183
+ Content-Type:
184
+ - application/json
185
+ User-Agent:
186
+ - Ruby
187
+ response:
188
+ status:
189
+ code: 200
190
+ message: OK
191
+ headers:
192
+ Content-Encoding:
193
+ - gzip
194
+ Expires:
195
+ - '0'
196
+ Cache-Control:
197
+ - no-cache, no-store, must-revalidate
198
+ X-Powered-By:
199
+ - Undertow/1
200
+ Server:
201
+ - WildFly/9
202
+ Pragma:
203
+ - no-cache
204
+ Date:
205
+ - Fri, 06 Nov 2015 21:24:41 GMT
206
+ X-Total-Count:
207
+ - '14'
208
+ Connection:
209
+ - keep-alive
210
+ Content-Type:
211
+ - application/json
212
+ Content-Length:
213
+ - '800'
214
+ Link:
215
+ - <http://localhost:8080/hawkular/inventory/feeds/snert/resources/snert~Local~~/metrics>;
216
+ rel="current"
217
+ body:
218
+ encoding: ASCII-8BIT
219
+ string: !binary |-
220
+ H4sIAAAAAAAAANVZ0Y6iMBR9369oSOZtjLPquGZ9YhzX3WR1EsVMNpN5QKxO
221
+ N4AuFDNmI9++FYFBbaGUKuwLgcI997ScHO4tL+DvJwCUtY7fFPAVKHXcbXTu
222
+ Gu1Zs13rLGCr1mo2G7VOy+jU7hst+PlLU293Zos67GLo4vqi69rQwXWrO/zh
223
+ j/2b+4fg2v+5MnTTJ9eP/lDzn5E5/2Zubxp36nLpwKWO4ZxcPMMZOQ4hdpDh
224
+ +ke3JtDZmBCTszH845FM5ExDFlRu92zxdg33bPfUZZDHXckMCSlbtwKOSggN
225
+ PqIBgQXnoCCEBCEgSMJ5NsIB3Ohp1I8Go3VQBup0EI+iuYy8BGsXLLbMiUTc
226
+ ArG8HEnlNSEUYc672+vKeQitlbNNSOQ71NfkcurC+eWlmpmd9vYOQSAZApIB
227
+ sdAefmn9SS6lMaHZWkplw6sWdt5r64HXPFQDow2Mn5lA10Ur262Ou6URFPOE
228
+ A2Jw9xTtkt5GS1vE2ljTkOdsVMZVFfIY/oZG8qnqSTmdopgKIkwBOfeepiOt
229
+ PxYWND11EUmzJyNP1AzW15a19uZAfY7sZUIshzEy0Ft5Nr68bjk50N5lHAqO
230
+ A8FRmLidZuCzRcZBjFdLWRyq6oT99zVyKm2EqQzFrCOELMEGqZmLuCBzKvJM
231
+ kM659J5ltLLDxqG3siyEcSm9C4sFR9cQhoKzQHEnzMzA3dLQyQm2NhQepcsn
232
+ fGtD/b28jjdKzttiJp6XppEYOF+3G69bgWY3yFq6EFTD8CzPDL82gx45PHqO
233
+ jonNlaCMLDYc7ycBAQY9cBpe5APHmYlbSmlUBZXF5FTVCoy2I3ulml4ORTmb
234
+ rTl6gaJFGD21zJ3j/P2DMOvS/bMCRZhoBXbh8ku09pJXeJVddfEaDKkE/oft
235
+ 5WyaYvZBcMvaaGalLuKGadOR54dM5qU74kdPWNIPNQqBHC0f9bearFY034+1
236
+ M0oFG1DZv9dUlkBUzd9/r6Gz94uNjkx9hkyEt766XocFFXQupQzOzMn1PwyD
237
+ 0wBw/Hh+NWTgnguBg0iErdI0EC88O+cOvP4DiWqq0D8iAAA=
238
+ http_version:
239
+ recorded_at: Fri, 06 Nov 2015 21:24:41 GMT
240
+ - request:
241
+ method: get
242
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/snert/resources/snert~Local~~/metrics
243
+ body:
244
+ encoding: US-ASCII
245
+ string: ''
246
+ headers:
247
+ Accept:
248
+ - application/json
249
+ Accept-Encoding:
250
+ - gzip, deflate
251
+ Content-Type:
252
+ - application/json
253
+ User-Agent:
254
+ - Ruby
255
+ response:
256
+ status:
257
+ code: 200
258
+ message: OK
259
+ headers:
260
+ Content-Encoding:
261
+ - gzip
262
+ Expires:
263
+ - '0'
264
+ Cache-Control:
265
+ - no-cache, no-store, must-revalidate
266
+ X-Powered-By:
267
+ - Undertow/1
268
+ Server:
269
+ - WildFly/9
270
+ Pragma:
271
+ - no-cache
272
+ Date:
273
+ - Fri, 06 Nov 2015 21:24:41 GMT
274
+ X-Total-Count:
275
+ - '14'
276
+ Connection:
277
+ - keep-alive
278
+ Content-Type:
279
+ - application/json
280
+ Content-Length:
281
+ - '800'
282
+ Link:
283
+ - <http://localhost:8080/hawkular/inventory/feeds/snert/resources/snert~Local~~/metrics>;
284
+ rel="current"
285
+ body:
286
+ encoding: ASCII-8BIT
287
+ string: !binary |-
288
+ H4sIAAAAAAAAANVZ0Y6iMBR9369oSOZtjLPquGZ9YhzX3WR1EsVMNpN5QKxO
289
+ N4AuFDNmI9++FYFBbaGUKuwLgcI997ScHO4tL+DvJwCUtY7fFPAVKHXcbXTu
290
+ Gu1Zs13rLGCr1mo2G7VOy+jU7hst+PlLU293Zos67GLo4vqi69rQwXWrO/zh
291
+ j/2b+4fg2v+5MnTTJ9eP/lDzn5E5/2Zubxp36nLpwKWO4ZxcPMMZOQ4hdpDh
292
+ +ke3JtDZmBCTszH845FM5ExDFlRu92zxdg33bPfUZZDHXckMCSlbtwKOSggN
293
+ PqIBgQXnoCCEBCEgSMJ5NsIB3Ohp1I8Go3VQBup0EI+iuYy8BGsXLLbMiUTc
294
+ ArG8HEnlNSEUYc672+vKeQitlbNNSOQ71NfkcurC+eWlmpmd9vYOQSAZApIB
295
+ sdAefmn9SS6lMaHZWkplw6sWdt5r64HXPFQDow2Mn5lA10Ur262Ou6URFPOE
296
+ A2Jw9xTtkt5GS1vE2ljTkOdsVMZVFfIY/oZG8qnqSTmdopgKIkwBOfeepiOt
297
+ PxYWND11EUmzJyNP1AzW15a19uZAfY7sZUIshzEy0Ft5Nr68bjk50N5lHAqO
298
+ A8FRmLidZuCzRcZBjFdLWRyq6oT99zVyKm2EqQzFrCOELMEGqZmLuCBzKvJM
299
+ kM659J5ltLLDxqG3siyEcSm9C4sFR9cQhoKzQHEnzMzA3dLQyQm2NhQepcsn
300
+ fGtD/b28jjdKzttiJp6XppEYOF+3G69bgWY3yFq6EFTD8CzPDL82gx45PHqO
301
+ jonNlaCMLDYc7ycBAQY9cBpe5APHmYlbSmlUBZXF5FTVCoy2I3ulml4ORTmb
302
+ rTl6gaJFGD21zJ3j/P2DMOvS/bMCRZhoBXbh8ku09pJXeJVddfEaDKkE/oft
303
+ 5WyaYvZBcMvaaGalLuKGadOR54dM5qU74kdPWNIPNQqBHC0f9bearFY034+1
304
+ M0oFG1DZv9dUlkBUzd9/r6Gz94uNjkx9hkyEt766XocFFXQupQzOzMn1PwyD
305
+ 0wBw/Hh+NWTgnguBg0iErdI0EC88O+cOvP4DiWqq0D8iAAA=
306
+ http_version:
307
+ recorded_at: Fri, 06 Nov 2015 21:24:41 GMT
308
+ recorded_with: VCR 3.0.0
@@ -0,0 +1,172 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/tenant
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Encoding:
24
+ - gzip
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/9
33
+ Pragma:
34
+ - no-cache
35
+ Date:
36
+ - Fri, 06 Nov 2015 19:57:37 GMT
37
+ Connection:
38
+ - keep-alive
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '85'
43
+ body:
44
+ encoding: ASCII-8BIT
45
+ string: !binary |-
46
+ H4sIAAAAAAAAAKvmUlBQKkgsyVBSsFJQ0i+xNrIwMDJLMjbTtUhLNdE1MTY2
47
+ 0rUwSbbQNTUySTU0N040s0hKU9IB6cpMAeshSgNXLQAnmwH5aQAAAA==
48
+ http_version:
49
+ recorded_at: Fri, 06 Nov 2015 19:57:37 GMT
50
+ - request:
51
+ method: get
52
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/snert/resourceTypes/WildFly%20Server/resources
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ''
56
+ headers:
57
+ Accept:
58
+ - application/json
59
+ Accept-Encoding:
60
+ - gzip, deflate
61
+ Content-Type:
62
+ - application/json
63
+ User-Agent:
64
+ - Ruby
65
+ response:
66
+ status:
67
+ code: 200
68
+ message: OK
69
+ headers:
70
+ Content-Encoding:
71
+ - gzip
72
+ Expires:
73
+ - '0'
74
+ Cache-Control:
75
+ - no-cache, no-store, must-revalidate
76
+ X-Powered-By:
77
+ - Undertow/1
78
+ Server:
79
+ - WildFly/9
80
+ Pragma:
81
+ - no-cache
82
+ Date:
83
+ - Fri, 06 Nov 2015 19:57:37 GMT
84
+ X-Total-Count:
85
+ - '1'
86
+ Connection:
87
+ - keep-alive
88
+ Content-Type:
89
+ - application/json
90
+ Content-Length:
91
+ - '177'
92
+ Link:
93
+ - <http://localhost:8080/hawkular/inventory/feeds/snert/resourceTypes/WildFly%20Server/resources>;
94
+ rel="current"
95
+ body:
96
+ encoding: ASCII-8BIT
97
+ string: !binary |-
98
+ H4sIAAAAAAAAAItWqOZSUFAqSCzJUFKwUlDSL7E2sjAwMksyNtO1SEs10TUx
99
+ NjbStTBJttA1NTJJNTQ3TjSzSErTT7UuSS0u0U+zLs5LLSrRL4LQdT75yYk5
100
+ dXVKOiBDSyoLUkGGgmyghh0l1uGZOSluOZWqRgbBqUVlqUVge4BG5yXmgm1S
101
+ gipQQJXOTMEmCZSrBbsTh26FaLC9sRDPQM1A9SZXrUIsAH0JV21CAQAA
102
+ http_version:
103
+ recorded_at: Fri, 06 Nov 2015 19:57:37 GMT
104
+ - request:
105
+ method: get
106
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/snert/resources/snert~Local~~/metrics
107
+ body:
108
+ encoding: US-ASCII
109
+ string: ''
110
+ headers:
111
+ Accept:
112
+ - application/json
113
+ Accept-Encoding:
114
+ - gzip, deflate
115
+ Content-Type:
116
+ - application/json
117
+ User-Agent:
118
+ - Ruby
119
+ response:
120
+ status:
121
+ code: 200
122
+ message: OK
123
+ headers:
124
+ Content-Encoding:
125
+ - gzip
126
+ Expires:
127
+ - '0'
128
+ Cache-Control:
129
+ - no-cache, no-store, must-revalidate
130
+ X-Powered-By:
131
+ - Undertow/1
132
+ Server:
133
+ - WildFly/9
134
+ Pragma:
135
+ - no-cache
136
+ Date:
137
+ - Fri, 06 Nov 2015 19:57:37 GMT
138
+ X-Total-Count:
139
+ - '14'
140
+ Connection:
141
+ - keep-alive
142
+ Content-Type:
143
+ - application/json
144
+ Content-Length:
145
+ - '800'
146
+ Link:
147
+ - <http://localhost:8080/hawkular/inventory/feeds/snert/resources/snert~Local~~/metrics>;
148
+ rel="current"
149
+ body:
150
+ encoding: ASCII-8BIT
151
+ string: !binary |-
152
+ H4sIAAAAAAAAANVZ0Y6iMBR9369oSOZtjLPquGZ9YhzX3WR1EsVMNpN5QKxO
153
+ N4AuFDNmI9++FYFBbaGUKuwLgcI997ScHO4tL+DvJwCUtY7fFPAVKHXcbXTu
154
+ Gu1Zs13rLGCr1mo2G7VOy+jU7hst+PlLU293Zos67GLo4vqi69rQwXWrO/zh
155
+ j/2b+4fg2v+5MnTTJ9eP/lDzn5E5/2Zubxp36nLpwKWO4ZxcPMMZOQ4hdpDh
156
+ +ke3JtDZmBCTszH845FM5ExDFlRu92zxdg33bPfUZZDHXckMCSlbtwKOSggN
157
+ PqIBgQXnoCCEBCEgSMJ5NsIB3Ohp1I8Go3VQBup0EI+iuYy8BGsXLLbMiUTc
158
+ ArG8HEnlNSEUYc672+vKeQitlbNNSOQ71NfkcurC+eWlmpmd9vYOQSAZApIB
159
+ sdAefmn9SS6lMaHZWkplw6sWdt5r64HXPFQDow2Mn5lA10Ur262Ou6URFPOE
160
+ A2Jw9xTtkt5GS1vE2ljTkOdsVMZVFfIY/oZG8qnqSTmdopgKIkwBOfeepiOt
161
+ PxYWND11EUmzJyNP1AzW15a19uZAfY7sZUIshzEy0Ft5Nr68bjk50N5lHAqO
162
+ A8FRmLidZuCzRcZBjFdLWRyq6oT99zVyKm2EqQzFrCOELMEGqZmLuCBzKvJM
163
+ kM659J5ltLLDxqG3siyEcSm9C4sFR9cQhoKzQHEnzMzA3dLQyQm2NhQepcsn
164
+ fGtD/b28jjdKzttiJp6XppEYOF+3G69bgWY3yFq6EFTD8CzPDL82gx45PHqO
165
+ jonNlaCMLDYc7ycBAQY9cBpe5APHmYlbSmlUBZXF5FTVCoy2I3ulml4ORTmb
166
+ rTl6gaJFGD21zJ3j/P2DMOvS/bMCRZhoBXbh8ku09pJXeJVddfEaDKkE/oft
167
+ 5WyaYvZBcMvaaGalLuKGadOR54dM5qU74kdPWNIPNQqBHC0f9bearFY034+1
168
+ M0oFG1DZv9dUlkBUzd9/r6Gz94uNjkx9hkyEt766XocFFXQupQzOzMn1PwyD
169
+ 0wBw/Hh+NWTgnguBg0iErdI0EC88O+cOvP4DiWqq0D8iAAA=
170
+ http_version:
171
+ recorded_at: Fri, 06 Nov 2015 19:57:37 GMT
172
+ recorded_with: VCR 3.0.0