hawkular-client 0.2.2 → 1.0.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 (108) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +3 -0
  3. data/.yardopts +1 -0
  4. data/CHANGES.rdoc +17 -4
  5. data/README.rdoc +15 -6
  6. data/api_breaking_changes.rdoc +79 -0
  7. data/hawkularclient.gemspec +6 -5
  8. data/lib/{alerts → hawkular/alerts}/alerts_api.rb +168 -7
  9. data/lib/{hawkular.rb → hawkular/base_client.rb} +7 -44
  10. data/lib/hawkular/hawkular_client.rb +60 -0
  11. data/lib/hawkular/hawkular_client_utils.rb +40 -0
  12. data/lib/{inventory → hawkular/inventory}/inventory_api.rb +167 -142
  13. data/lib/{metrics → hawkular/metrics}/metric_api.rb +1 -0
  14. data/lib/{metrics → hawkular/metrics}/metrics_client.rb +4 -4
  15. data/lib/{metrics → hawkular/metrics}/tenant_api.rb +0 -0
  16. data/lib/{metrics → hawkular/metrics}/types.rb +0 -0
  17. data/lib/{operations → hawkular/operations}/operations_api.rb +11 -8
  18. data/lib/{tokens → hawkular/tokens}/tokens_api.rb +1 -1
  19. data/lib/{version.rb → hawkular/version.rb} +1 -1
  20. data/spec/integration/alerts_spec.rb +200 -0
  21. data/spec/integration/hawkular_client_spec.rb +228 -0
  22. data/spec/integration/inventory_spec.rb +246 -160
  23. data/spec/integration/metric_spec.rb +52 -59
  24. data/spec/integration/operations_spec.rb +53 -29
  25. data/spec/spec_helper.rb +109 -8
  26. data/spec/unit/base_spec.rb +9 -0
  27. data/spec/unit/canonical_path_spec.rb +2 -2
  28. data/spec/vcr/vcr_setup.rb +6 -0
  29. data/spec/vcr_cassettes/Alert/Events/Should_create_an_event.yml +50 -0
  30. data/spec/vcr_cassettes/Alert/Groups/Should_operate_a_complex_group_trigger.yml +1726 -0
  31. data/spec/vcr_cassettes/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +190 -0
  32. data/spec/vcr_cassettes/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +30 -42
  33. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_both_create_and_delete_feed.yml +287 -0
  34. data/spec/vcr_cassettes/{Inventory/Should_list_URLs.yml → HawkularClient/and_Inventory_client/Should_both_list_WildFlys.yml} +35 -33
  35. data/spec/vcr_cassettes/{Inventory/Should_list_types_with_bad_feed.yml → HawkularClient/and_Inventory_client/Should_both_list_types_with_bad_feed.yml} +16 -19
  36. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_list_same_types_when_param_is_given.yml +245 -0
  37. data/spec/vcr_cassettes/{Inventory/Should_list_feeds.yml → HawkularClient/and_Inventory_client/Should_list_the_same_feeds.yml} +20 -20
  38. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_list_the_same_resource_types.yml +249 -0
  39. data/spec/vcr_cassettes/HawkularClient/and_Metrics_client/Should_both_create_and_retrieve_tags_for_Availability.yml +155 -0
  40. data/spec/vcr_cassettes/HawkularClient/and_Metrics_client/Should_both_create_and_return_Availability_using_Hash_parameter.yml +155 -0
  41. data/spec/vcr_cassettes/HawkularClient/and_Metrics_client/Should_both_return_the_version.yml +89 -0
  42. data/spec/vcr_cassettes/HawkularClient/and_Metrics_client/Should_both_work_the_same_way_when_pushing_metric_data_to_non-existing_counter.yml +114 -0
  43. data/spec/vcr_cassettes/{Inventory/Should_list_WildFlys_with_props.yml → HawkularClient/and_Operations_client/Should_both_work_the_same_way.yml} +28 -50
  44. data/spec/vcr_cassettes/HawkularClient/and_Operations_client_Should_both_work_the_same_way.json +44 -0
  45. data/spec/vcr_cassettes/Inventory/Helpers/create_url.yml +48 -0
  46. data/spec/vcr_cassettes/Inventory/Helpers/generate_some_events_for_websocket.yml +4446 -0
  47. data/spec/vcr_cassettes/Inventory/Helpers/get_feeds.yml +54 -0
  48. data/spec/vcr_cassettes/Inventory/Templates/Client_should_listen_on_various_inventory_events.json +47 -0
  49. data/spec/vcr_cassettes/Inventory/{Should_create_a_resourcetype.yml → Templates/Client_should_listen_on_various_inventory_events.yml} +47 -61
  50. data/spec/vcr_cassettes/Inventory/Templates/Helpers/generate_some_events_for_websocket.yml +542 -0
  51. data/spec/vcr_cassettes/Inventory/{Should_List_datasources_with_no_props.yml → Templates/Should_List_datasources_with_no_props.yml} +26 -85
  52. data/spec/vcr_cassettes/Inventory/Templates/Should_create_a_feed.yml +54 -0
  53. data/spec/vcr_cassettes/Inventory/Templates/Should_create_a_feed_again.yml +164 -0
  54. data/spec/vcr_cassettes/Inventory/{Should_create_a_nested_resource_and_metric_on_it.yml → Templates/Should_create_a_nested_resource_and_metric_on_it.yml} +93 -74
  55. data/spec/vcr_cassettes/Inventory/{Should_create_a_resource_.yml → Templates/Should_create_a_resource.yml} +103 -76
  56. data/spec/vcr_cassettes/Inventory/{Should_create_a_resource_with_metric.yml → Templates/Should_create_a_resource_with_metric.yml} +91 -197
  57. data/spec/vcr_cassettes/Inventory/Templates/Should_create_a_resourcetype.yml +154 -0
  58. data/spec/vcr_cassettes/Inventory/Templates/Should_create_and_delete_feed.yml +145 -0
  59. data/spec/vcr_cassettes/Inventory/{Should_create_and_get_a_resource.yml → Templates/Should_create_and_get_a_resource.yml} +35 -20
  60. data/spec/vcr_cassettes/Inventory/Templates/Should_list_URLs.yml +65 -0
  61. data/spec/vcr_cassettes/Inventory/Templates/Should_list_WildFlys.yml +61 -0
  62. data/spec/vcr_cassettes/Inventory/{Should_list_WildFlys.yml → Templates/Should_list_WildFlys_with_props.yml} +36 -33
  63. data/spec/vcr_cassettes/Inventory/Templates/Should_list_all_the_resource_types.yml +126 -0
  64. data/spec/vcr_cassettes/Inventory/{Should_list_children_of_WildFly.yml → Templates/Should_list_children_of_WildFly.yml} +66 -112
  65. data/spec/vcr_cassettes/Inventory/{Should_list_children_of_nested_resource.yml → Templates/Should_list_children_of_nested_resource.yml} +13 -13
  66. data/spec/vcr_cassettes/Inventory/Templates/Should_list_feeds.yml +54 -0
  67. data/spec/vcr_cassettes/Inventory/Templates/Should_list_heap_metrics_for_WildFlys.yml +712 -0
  68. data/spec/vcr_cassettes/Inventory/Templates/Should_list_metrics_for_WildFlys.yml +278 -0
  69. data/spec/vcr_cassettes/Inventory/Templates/Should_list_metrics_of_given_metric_type.yml +530 -0
  70. data/spec/vcr_cassettes/Inventory/Templates/Should_list_metrics_of_given_resource_type.yml +278 -0
  71. data/spec/vcr_cassettes/Inventory/Templates/Should_list_operation_definitions_of_given_resource.yml +185 -0
  72. data/spec/vcr_cassettes/Inventory/Templates/Should_list_operation_definitions_of_given_resource_type.yml +126 -0
  73. data/spec/vcr_cassettes/Inventory/Templates/Should_list_recursive_children_of_WildFly.yml +2369 -0
  74. data/spec/vcr_cassettes/Inventory/Templates/Should_list_relationships_of_WildFly.yml +415 -0
  75. data/spec/vcr_cassettes/Inventory/Templates/Should_list_types_with_bad_feed.yml +51 -0
  76. data/spec/vcr_cassettes/Inventory/Templates/Should_list_types_with_feed.yml +124 -0
  77. data/spec/vcr_cassettes/Inventory/{Should_not_find_an_unknown_resource.yml → Templates/Should_not_find_an_unknown_resource.yml} +14 -13
  78. data/spec/vcr_cassettes/Inventory/{Should_return_config_data_of_given_nested_resource.yml → Templates/Should_return_config_data_of_given_nested_resource.yml} +4 -4
  79. data/spec/vcr_cassettes/Inventory/{Should_return_config_data_of_given_resource.yml → Templates/Should_return_config_data_of_given_resource.yml} +4 -4
  80. data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Explicit_Credentials.yml +50 -0
  81. data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Implicit_Credentials.yml +50 -0
  82. data/spec/vcr_cassettes/Operation/Helpers/get_feed.yml +54 -0
  83. data/spec/vcr_cassettes/Operation/Helpers/get_tenant.yml +50 -0
  84. data/spec/vcr_cassettes/Operation/Operation/Add_JDBC_driver_should_add_the_driver.json +26 -0
  85. data/spec/vcr_cassettes/Operation/Operation/Add_datasource_should_be_doable.json +26 -0
  86. data/spec/vcr_cassettes/Operation/Operation/Add_deployment_should_be_doable.json +26 -0
  87. data/spec/vcr_cassettes/Operation/Operation/Redeploy_can_be_run_multiple_times_in_parallel.json +40 -0
  88. data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_be_performed_and_eventually_respond_with_success.json +26 -0
  89. data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_not_be_performed_if_resource_path_is_wrong.json +26 -0
  90. data/spec/vcr_cassettes/Operation/Operation/Remove_JDBC_driver_should_be_performed_and_eventually_respond_with_success.json +26 -0
  91. data/spec/vcr_cassettes/Operation/Operation/Remove_datasource_should_be_performed_and_eventually_respond_with_success.json +26 -0
  92. data/spec/vcr_cassettes/Operation/Operation/Remove_deployment_should_be_performed_and_eventually_respond_with_success.json +26 -0
  93. data/spec/vcr_cassettes/Operation/Operation/Undeploy_should_be_performed_and_eventually_respond_with_success.json +26 -0
  94. data/spec/vcr_cassettes/Operation/Operation/should_not_be_possible_to_perform_on_closed_client.json +12 -0
  95. data/spec/vcr_cassettes/Operation/Websocket_connection/should_be_established.json +9 -0
  96. metadata +171 -72
  97. data/lib/hawkular_all.rb +0 -9
  98. data/spec/vcr_cassettes/Inventory/Should_create_a_feed.yml +0 -107
  99. data/spec/vcr_cassettes/Inventory/Should_create_a_feed_again.yml +0 -211
  100. data/spec/vcr_cassettes/Inventory/Should_create_and_delete_feed.yml +0 -201
  101. data/spec/vcr_cassettes/Inventory/Should_list_all_the_resource_types.yml +0 -177
  102. data/spec/vcr_cassettes/Inventory/Should_list_heap_metrics_for_WildFlys.yml +0 -775
  103. data/spec/vcr_cassettes/Inventory/Should_list_metrics_for_WildFlys.yml +0 -333
  104. data/spec/vcr_cassettes/Inventory/Should_list_metrics_of_given_metric_type.yml +0 -613
  105. data/spec/vcr_cassettes/Inventory/Should_list_metrics_of_given_resource_type.yml +0 -333
  106. data/spec/vcr_cassettes/Inventory/Should_list_recursive_children_of_WildFly.yml +0 -2064
  107. data/spec/vcr_cassettes/Inventory/Should_list_relationships_of_WildFly.yml +0 -460
  108. data/spec/vcr_cassettes/Inventory/Should_list_types_with_feed.yml +0 -175
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/tenant
5
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/a43ec2b3-94bf-4120-a91b-3a2f63914061/resourceTypes/WildFly%20Server/resources
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -11,10 +11,10 @@ http_interactions:
11
11
  - application/json
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
- User-Agent:
15
- - rest-client/2.0.0.rc1 (linux-gnu x86_64) ruby/2.2.4p230
16
14
  Content-Type:
17
15
  - application/json
16
+ User-Agent:
17
+ - Ruby
18
18
  response:
19
19
  status:
20
20
  code: 200
@@ -31,25 +31,36 @@ http_interactions:
31
31
  Pragma:
32
32
  - no-cache
33
33
  Date:
34
- - Thu, 18 Feb 2016 22:30:16 GMT
34
+ - Tue, 29 Mar 2016 15:26:12 GMT
35
+ X-Total-Count:
36
+ - '1'
35
37
  Connection:
36
38
  - keep-alive
37
39
  Content-Type:
38
40
  - application/json
39
41
  Content-Length:
40
- - '105'
42
+ - '357'
43
+ Link:
44
+ - <http://localhost:8080/hawkular/inventory/feeds/a43ec2b3-94bf-4120-a91b-3a2f63914061/resourceTypes/WildFly%20Server/resources>;
45
+ rel="current"
41
46
  body:
42
47
  encoding: ASCII-8BIT
43
48
  string: |-
44
- {
45
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf",
46
- "id" : "28026b36-8fe4-4332-84c8-524e173a68bf"
47
- }
49
+ [ {
50
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/r;Local~~",
51
+ "type" : {
52
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;WildFly%20Server",
53
+ "name" : "WildFly Server",
54
+ "id" : "WildFly Server"
55
+ },
56
+ "name" : "dhcp-10-40-1-43/Local",
57
+ "id" : "Local~~"
58
+ } ]
48
59
  http_version:
49
- recorded_at: Thu, 18 Feb 2016 22:30:16 GMT
60
+ recorded_at: Tue, 29 Mar 2016 15:26:12 GMT
50
61
  - request:
51
62
  method: get
52
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/resourceTypes/URL/resources
63
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/a43ec2b3-94bf-4120-a91b-3a2f63914061/resourceTypes/WildFly%20Server/resources
53
64
  body:
54
65
  encoding: US-ASCII
55
66
  string: ''
@@ -58,14 +69,10 @@ http_interactions:
58
69
  - application/json
59
70
  Accept-Encoding:
60
71
  - gzip, deflate
61
- User-Agent:
62
- - rest-client/2.0.0.rc1 (linux-gnu x86_64) ruby/2.2.4p230
63
- Hawkular-Tenant:
64
- - 28026b36-8fe4-4332-84c8-524e173a68bf
65
- Tenantid:
66
- - 28026b36-8fe4-4332-84c8-524e173a68bf
67
72
  Content-Type:
68
73
  - application/json
74
+ User-Agent:
75
+ - Ruby
69
76
  response:
70
77
  status:
71
78
  code: 200
@@ -82,7 +89,7 @@ http_interactions:
82
89
  Pragma:
83
90
  - no-cache
84
91
  Date:
85
- - Thu, 18 Feb 2016 22:30:16 GMT
92
+ - Tue, 29 Mar 2016 15:26:12 GMT
86
93
  X-Total-Count:
87
94
  - '1'
88
95
  Connection:
@@ -90,28 +97,23 @@ http_interactions:
90
97
  Content-Type:
91
98
  - application/json
92
99
  Content-Length:
93
- - '489'
100
+ - '357'
94
101
  Link:
95
- - <http://localhost:8080/hawkular/inventory/resourceTypes/URL/resources>; rel="current"
102
+ - <http://localhost:8080/hawkular/inventory/feeds/a43ec2b3-94bf-4120-a91b-3a2f63914061/resourceTypes/WildFly%20Server/resources>;
103
+ rel="current"
96
104
  body:
97
105
  encoding: ASCII-8BIT
98
106
  string: |-
99
107
  [ {
100
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/e;test/r;536cc3ede5769b60a49774425aedba24",
108
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/r;Local~~",
101
109
  "type" : {
102
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/rt;URL",
103
- "id" : "URL"
104
- },
105
- "properties" : {
106
- "trait-collected-on" : 1455834600285,
107
- "trait-powered-by" : "Apache",
108
- "created" : 1455833583048,
109
- "hwk-gui-domainSort" : "bsd.de",
110
- "trait-remote-address" : "212.86.200.189",
111
- "url" : "http://bsd.de"
110
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;WildFly%20Server",
111
+ "name" : "WildFly Server",
112
+ "id" : "WildFly Server"
112
113
  },
113
- "id" : "536cc3ede5769b60a49774425aedba24"
114
+ "name" : "dhcp-10-40-1-43/Local",
115
+ "id" : "Local~~"
114
116
  } ]
115
117
  http_version:
116
- recorded_at: Thu, 18 Feb 2016 22:30:16 GMT
118
+ recorded_at: Tue, 29 Mar 2016 15:26:12 GMT
117
119
  recorded_with: VCR 3.0.1
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://jdoe:password@localhost:8080/hawkular/inventory/tenant
5
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/does%20not%20exist/resourceTypes
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -11,10 +11,10 @@ http_interactions:
11
11
  - application/json
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
- User-Agent:
15
- - rest-client/2.0.0.rc1 (linux-gnu x86_64) ruby/2.2.4p230
16
14
  Content-Type:
17
15
  - application/json
16
+ User-Agent:
17
+ - Ruby
18
18
  response:
19
19
  status:
20
20
  code: 200
@@ -31,22 +31,23 @@ http_interactions:
31
31
  Pragma:
32
32
  - no-cache
33
33
  Date:
34
- - Thu, 18 Feb 2016 22:30:15 GMT
34
+ - Tue, 29 Mar 2016 15:26:12 GMT
35
+ X-Total-Count:
36
+ - "-1"
35
37
  Connection:
36
38
  - keep-alive
37
39
  Content-Type:
38
40
  - application/json
39
41
  Content-Length:
40
- - '105'
42
+ - '3'
43
+ Link:
44
+ - <http://localhost:8080/hawkular/inventory/feeds/does%20not%20exist/resourceTypes>;
45
+ rel="current"
41
46
  body:
42
47
  encoding: ASCII-8BIT
43
- string: |-
44
- {
45
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf",
46
- "id" : "28026b36-8fe4-4332-84c8-524e173a68bf"
47
- }
48
+ string: "[ ]"
48
49
  http_version:
49
- recorded_at: Thu, 18 Feb 2016 22:30:15 GMT
50
+ recorded_at: Tue, 29 Mar 2016 15:26:12 GMT
50
51
  - request:
51
52
  method: get
52
53
  uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/does%20not%20exist/resourceTypes
@@ -58,14 +59,10 @@ http_interactions:
58
59
  - application/json
59
60
  Accept-Encoding:
60
61
  - gzip, deflate
61
- User-Agent:
62
- - rest-client/2.0.0.rc1 (linux-gnu x86_64) ruby/2.2.4p230
63
- Hawkular-Tenant:
64
- - 28026b36-8fe4-4332-84c8-524e173a68bf
65
- Tenantid:
66
- - 28026b36-8fe4-4332-84c8-524e173a68bf
67
62
  Content-Type:
68
63
  - application/json
64
+ User-Agent:
65
+ - Ruby
69
66
  response:
70
67
  status:
71
68
  code: 200
@@ -82,7 +79,7 @@ http_interactions:
82
79
  Pragma:
83
80
  - no-cache
84
81
  Date:
85
- - Thu, 18 Feb 2016 22:30:15 GMT
82
+ - Tue, 29 Mar 2016 15:26:12 GMT
86
83
  X-Total-Count:
87
84
  - "-1"
88
85
  Connection:
@@ -98,5 +95,5 @@ http_interactions:
98
95
  encoding: ASCII-8BIT
99
96
  string: "[ ]"
100
97
  http_version:
101
- recorded_at: Thu, 18 Feb 2016 22:30:15 GMT
98
+ recorded_at: Tue, 29 Mar 2016 15:26:12 GMT
102
99
  recorded_with: VCR 3.0.1
@@ -0,0 +1,245 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/a43ec2b3-94bf-4120-a91b-3a2f63914061/resourceTypes
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
+ Expires:
24
+ - '0'
25
+ Cache-Control:
26
+ - no-cache, no-store, must-revalidate
27
+ X-Powered-By:
28
+ - Undertow/1
29
+ Server:
30
+ - WildFly/10
31
+ Pragma:
32
+ - no-cache
33
+ Date:
34
+ - Tue, 29 Mar 2016 15:26:10 GMT
35
+ X-Total-Count:
36
+ - '18'
37
+ Connection:
38
+ - keep-alive
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '3053'
43
+ Link:
44
+ - <http://localhost:8080/hawkular/inventory/feeds/a43ec2b3-94bf-4120-a91b-3a2f63914061/resourceTypes>;
45
+ rel="current"
46
+ body:
47
+ encoding: ASCII-8BIT
48
+ string: |-
49
+ [ {
50
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Operating%20System",
51
+ "name" : "Operating System",
52
+ "id" : "Operating System"
53
+ }, {
54
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;File%20Store",
55
+ "name" : "File Store",
56
+ "id" : "File Store"
57
+ }, {
58
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Memory",
59
+ "name" : "Memory",
60
+ "id" : "Memory"
61
+ }, {
62
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Processor",
63
+ "name" : "Processor",
64
+ "id" : "Processor"
65
+ }, {
66
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;WildFly%20Server",
67
+ "name" : "WildFly Server",
68
+ "id" : "WildFly Server"
69
+ }, {
70
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Datasource",
71
+ "name" : "Datasource",
72
+ "id" : "Datasource"
73
+ }, {
74
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;JDBC%20Driver",
75
+ "name" : "JDBC Driver",
76
+ "id" : "JDBC Driver"
77
+ }, {
78
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Deployment",
79
+ "name" : "Deployment",
80
+ "id" : "Deployment"
81
+ }, {
82
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Singleton%20EJB",
83
+ "name" : "Singleton EJB",
84
+ "id" : "Singleton EJB"
85
+ }, {
86
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Stateless%20Session%20EJB",
87
+ "name" : "Stateless Session EJB",
88
+ "id" : "Stateless Session EJB"
89
+ }, {
90
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Message%20Driven%20EJB",
91
+ "name" : "Message Driven EJB",
92
+ "id" : "Message Driven EJB"
93
+ }, {
94
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Servlet",
95
+ "name" : "Servlet",
96
+ "id" : "Servlet"
97
+ }, {
98
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;SubDeployment",
99
+ "name" : "SubDeployment",
100
+ "id" : "SubDeployment"
101
+ }, {
102
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Transaction%20Manager",
103
+ "name" : "Transaction Manager",
104
+ "id" : "Transaction Manager"
105
+ }, {
106
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Messaging%20Server",
107
+ "name" : "Messaging Server",
108
+ "id" : "Messaging Server"
109
+ }, {
110
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;JMS%20Topic",
111
+ "name" : "JMS Topic",
112
+ "id" : "JMS Topic"
113
+ }, {
114
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;JMS%20Queue",
115
+ "name" : "JMS Queue",
116
+ "id" : "JMS Queue"
117
+ }, {
118
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Hawkular%20WildFly%20Agent",
119
+ "name" : "Hawkular WildFly Agent",
120
+ "id" : "Hawkular WildFly Agent"
121
+ } ]
122
+ http_version:
123
+ recorded_at: Tue, 29 Mar 2016 15:26:10 GMT
124
+ - request:
125
+ method: get
126
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/a43ec2b3-94bf-4120-a91b-3a2f63914061/resourceTypes
127
+ body:
128
+ encoding: US-ASCII
129
+ string: ''
130
+ headers:
131
+ Accept:
132
+ - application/json
133
+ Accept-Encoding:
134
+ - gzip, deflate
135
+ Content-Type:
136
+ - application/json
137
+ User-Agent:
138
+ - Ruby
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
+ - Tue, 29 Mar 2016 15:26:12 GMT
156
+ X-Total-Count:
157
+ - '18'
158
+ Connection:
159
+ - keep-alive
160
+ Content-Type:
161
+ - application/json
162
+ Content-Length:
163
+ - '3053'
164
+ Link:
165
+ - <http://localhost:8080/hawkular/inventory/feeds/a43ec2b3-94bf-4120-a91b-3a2f63914061/resourceTypes>;
166
+ rel="current"
167
+ body:
168
+ encoding: ASCII-8BIT
169
+ string: |-
170
+ [ {
171
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Operating%20System",
172
+ "name" : "Operating System",
173
+ "id" : "Operating System"
174
+ }, {
175
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;File%20Store",
176
+ "name" : "File Store",
177
+ "id" : "File Store"
178
+ }, {
179
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Memory",
180
+ "name" : "Memory",
181
+ "id" : "Memory"
182
+ }, {
183
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Processor",
184
+ "name" : "Processor",
185
+ "id" : "Processor"
186
+ }, {
187
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;WildFly%20Server",
188
+ "name" : "WildFly Server",
189
+ "id" : "WildFly Server"
190
+ }, {
191
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Datasource",
192
+ "name" : "Datasource",
193
+ "id" : "Datasource"
194
+ }, {
195
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;JDBC%20Driver",
196
+ "name" : "JDBC Driver",
197
+ "id" : "JDBC Driver"
198
+ }, {
199
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Deployment",
200
+ "name" : "Deployment",
201
+ "id" : "Deployment"
202
+ }, {
203
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Singleton%20EJB",
204
+ "name" : "Singleton EJB",
205
+ "id" : "Singleton EJB"
206
+ }, {
207
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Stateless%20Session%20EJB",
208
+ "name" : "Stateless Session EJB",
209
+ "id" : "Stateless Session EJB"
210
+ }, {
211
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Message%20Driven%20EJB",
212
+ "name" : "Message Driven EJB",
213
+ "id" : "Message Driven EJB"
214
+ }, {
215
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Servlet",
216
+ "name" : "Servlet",
217
+ "id" : "Servlet"
218
+ }, {
219
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;SubDeployment",
220
+ "name" : "SubDeployment",
221
+ "id" : "SubDeployment"
222
+ }, {
223
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Transaction%20Manager",
224
+ "name" : "Transaction Manager",
225
+ "id" : "Transaction Manager"
226
+ }, {
227
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Messaging%20Server",
228
+ "name" : "Messaging Server",
229
+ "id" : "Messaging Server"
230
+ }, {
231
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;JMS%20Topic",
232
+ "name" : "JMS Topic",
233
+ "id" : "JMS Topic"
234
+ }, {
235
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;JMS%20Queue",
236
+ "name" : "JMS Queue",
237
+ "id" : "JMS Queue"
238
+ }, {
239
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Hawkular%20WildFly%20Agent",
240
+ "name" : "Hawkular WildFly Agent",
241
+ "id" : "Hawkular WildFly Agent"
242
+ } ]
243
+ http_version:
244
+ recorded_at: Tue, 29 Mar 2016 15:26:12 GMT
245
+ recorded_with: VCR 3.0.1