hawkular-client 0.2.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
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
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,26 @@ http_interactions:
31
31
  Pragma:
32
32
  - no-cache
33
33
  Date:
34
- - Thu, 18 Feb 2016 22:30:14 GMT
34
+ - Tue, 29 Mar 2016 15:26:07 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
+ - '148'
43
+ Link:
44
+ - <http://localhost:8080/hawkular/inventory/feeds>; rel="current"
41
45
  body:
42
46
  encoding: ASCII-8BIT
43
47
  string: |-
44
- {
45
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf",
46
- "id" : "28026b36-8fe4-4332-84c8-524e173a68bf"
47
- }
48
+ [ {
49
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061",
50
+ "id" : "a43ec2b3-94bf-4120-a91b-3a2f63914061"
51
+ } ]
48
52
  http_version:
49
- recorded_at: Thu, 18 Feb 2016 22:30:14 GMT
53
+ recorded_at: Tue, 29 Mar 2016 15:26:07 GMT
50
54
  - request:
51
55
  method: get
52
56
  uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds
@@ -58,14 +62,10 @@ http_interactions:
58
62
  - application/json
59
63
  Accept-Encoding:
60
64
  - 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
65
  Content-Type:
68
66
  - application/json
67
+ User-Agent:
68
+ - Ruby
69
69
  response:
70
70
  status:
71
71
  code: 200
@@ -82,7 +82,7 @@ http_interactions:
82
82
  Pragma:
83
83
  - no-cache
84
84
  Date:
85
- - Thu, 18 Feb 2016 22:30:14 GMT
85
+ - Tue, 29 Mar 2016 15:26:07 GMT
86
86
  X-Total-Count:
87
87
  - '1'
88
88
  Connection:
@@ -97,9 +97,9 @@ http_interactions:
97
97
  encoding: ASCII-8BIT
98
98
  string: |-
99
99
  [ {
100
- "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;f1cb161f-4de3-44b9-a2a4-bdc5a2064f88",
101
- "id" : "f1cb161f-4de3-44b9-a2a4-bdc5a2064f88"
100
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061",
101
+ "id" : "a43ec2b3-94bf-4120-a91b-3a2f63914061"
102
102
  } ]
103
103
  http_version:
104
- recorded_at: Thu, 18 Feb 2016 22:30:14 GMT
104
+ recorded_at: Tue, 29 Mar 2016 15:26:07 GMT
105
105
  recorded_with: VCR 3.0.1
@@ -0,0 +1,249 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/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:08 GMT
35
+ X-Total-Count:
36
+ - '19'
37
+ Connection:
38
+ - keep-alive
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '3134'
43
+ Link:
44
+ - <http://localhost:8080/hawkular/inventory/resourceTypes>; rel="current"
45
+ body:
46
+ encoding: ASCII-8BIT
47
+ string: |-
48
+ [ {
49
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/rt;URL",
50
+ "id" : "URL"
51
+ }, {
52
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Operating%20System",
53
+ "name" : "Operating System",
54
+ "id" : "Operating System"
55
+ }, {
56
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;File%20Store",
57
+ "name" : "File Store",
58
+ "id" : "File Store"
59
+ }, {
60
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Memory",
61
+ "name" : "Memory",
62
+ "id" : "Memory"
63
+ }, {
64
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Processor",
65
+ "name" : "Processor",
66
+ "id" : "Processor"
67
+ }, {
68
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;WildFly%20Server",
69
+ "name" : "WildFly Server",
70
+ "id" : "WildFly Server"
71
+ }, {
72
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Datasource",
73
+ "name" : "Datasource",
74
+ "id" : "Datasource"
75
+ }, {
76
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;JDBC%20Driver",
77
+ "name" : "JDBC Driver",
78
+ "id" : "JDBC Driver"
79
+ }, {
80
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Deployment",
81
+ "name" : "Deployment",
82
+ "id" : "Deployment"
83
+ }, {
84
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Singleton%20EJB",
85
+ "name" : "Singleton EJB",
86
+ "id" : "Singleton EJB"
87
+ }, {
88
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Stateless%20Session%20EJB",
89
+ "name" : "Stateless Session EJB",
90
+ "id" : "Stateless Session EJB"
91
+ }, {
92
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Message%20Driven%20EJB",
93
+ "name" : "Message Driven EJB",
94
+ "id" : "Message Driven EJB"
95
+ }, {
96
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Servlet",
97
+ "name" : "Servlet",
98
+ "id" : "Servlet"
99
+ }, {
100
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;SubDeployment",
101
+ "name" : "SubDeployment",
102
+ "id" : "SubDeployment"
103
+ }, {
104
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Transaction%20Manager",
105
+ "name" : "Transaction Manager",
106
+ "id" : "Transaction Manager"
107
+ }, {
108
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Messaging%20Server",
109
+ "name" : "Messaging Server",
110
+ "id" : "Messaging Server"
111
+ }, {
112
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;JMS%20Topic",
113
+ "name" : "JMS Topic",
114
+ "id" : "JMS Topic"
115
+ }, {
116
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;JMS%20Queue",
117
+ "name" : "JMS Queue",
118
+ "id" : "JMS Queue"
119
+ }, {
120
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Hawkular%20WildFly%20Agent",
121
+ "name" : "Hawkular WildFly Agent",
122
+ "id" : "Hawkular WildFly Agent"
123
+ } ]
124
+ http_version:
125
+ recorded_at: Tue, 29 Mar 2016 15:26:08 GMT
126
+ - request:
127
+ method: get
128
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/resourceTypes
129
+ body:
130
+ encoding: US-ASCII
131
+ string: ''
132
+ headers:
133
+ Accept:
134
+ - application/json
135
+ Accept-Encoding:
136
+ - gzip, deflate
137
+ Content-Type:
138
+ - application/json
139
+ User-Agent:
140
+ - Ruby
141
+ response:
142
+ status:
143
+ code: 200
144
+ message: OK
145
+ headers:
146
+ Expires:
147
+ - '0'
148
+ Cache-Control:
149
+ - no-cache, no-store, must-revalidate
150
+ X-Powered-By:
151
+ - Undertow/1
152
+ Server:
153
+ - WildFly/10
154
+ Pragma:
155
+ - no-cache
156
+ Date:
157
+ - Tue, 29 Mar 2016 15:26:08 GMT
158
+ X-Total-Count:
159
+ - '19'
160
+ Connection:
161
+ - keep-alive
162
+ Content-Type:
163
+ - application/json
164
+ Content-Length:
165
+ - '3134'
166
+ Link:
167
+ - <http://localhost:8080/hawkular/inventory/resourceTypes>; rel="current"
168
+ body:
169
+ encoding: ASCII-8BIT
170
+ string: |-
171
+ [ {
172
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/rt;URL",
173
+ "id" : "URL"
174
+ }, {
175
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Operating%20System",
176
+ "name" : "Operating System",
177
+ "id" : "Operating System"
178
+ }, {
179
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;File%20Store",
180
+ "name" : "File Store",
181
+ "id" : "File Store"
182
+ }, {
183
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Memory",
184
+ "name" : "Memory",
185
+ "id" : "Memory"
186
+ }, {
187
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Processor",
188
+ "name" : "Processor",
189
+ "id" : "Processor"
190
+ }, {
191
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;WildFly%20Server",
192
+ "name" : "WildFly Server",
193
+ "id" : "WildFly Server"
194
+ }, {
195
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Datasource",
196
+ "name" : "Datasource",
197
+ "id" : "Datasource"
198
+ }, {
199
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;JDBC%20Driver",
200
+ "name" : "JDBC Driver",
201
+ "id" : "JDBC Driver"
202
+ }, {
203
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Deployment",
204
+ "name" : "Deployment",
205
+ "id" : "Deployment"
206
+ }, {
207
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Singleton%20EJB",
208
+ "name" : "Singleton EJB",
209
+ "id" : "Singleton EJB"
210
+ }, {
211
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Stateless%20Session%20EJB",
212
+ "name" : "Stateless Session EJB",
213
+ "id" : "Stateless Session EJB"
214
+ }, {
215
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Message%20Driven%20EJB",
216
+ "name" : "Message Driven EJB",
217
+ "id" : "Message Driven EJB"
218
+ }, {
219
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Servlet",
220
+ "name" : "Servlet",
221
+ "id" : "Servlet"
222
+ }, {
223
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;SubDeployment",
224
+ "name" : "SubDeployment",
225
+ "id" : "SubDeployment"
226
+ }, {
227
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Transaction%20Manager",
228
+ "name" : "Transaction Manager",
229
+ "id" : "Transaction Manager"
230
+ }, {
231
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Messaging%20Server",
232
+ "name" : "Messaging Server",
233
+ "id" : "Messaging Server"
234
+ }, {
235
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;JMS%20Topic",
236
+ "name" : "JMS Topic",
237
+ "id" : "JMS Topic"
238
+ }, {
239
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;JMS%20Queue",
240
+ "name" : "JMS Queue",
241
+ "id" : "JMS Queue"
242
+ }, {
243
+ "path" : "/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;a43ec2b3-94bf-4120-a91b-3a2f63914061/rt;Hawkular%20WildFly%20Agent",
244
+ "name" : "Hawkular WildFly Agent",
245
+ "id" : "Hawkular WildFly Agent"
246
+ } ]
247
+ http_version:
248
+ recorded_at: Tue, 29 Mar 2016 15:26:08 GMT
249
+ recorded_with: VCR 3.0.1
@@ -0,0 +1,155 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"id":"<%= id1 %>","tags":{"myTag":"<%= id1 %>"}}'
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ Content-Length:
17
+ - '101'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Connection:
26
+ - keep-alive
27
+ X-Powered-By:
28
+ - Undertow/1
29
+ Server:
30
+ - WildFly/10
31
+ Location:
32
+ - http://localhost:8080/hawkular/metrics/availability/<%= id1 %>
33
+ Content-Length:
34
+ - '0'
35
+ Date:
36
+ - Tue, 22 Mar 2016 21:35:55 GMT
37
+ body:
38
+ encoding: UTF-8
39
+ string: ''
40
+ http_version:
41
+ recorded_at: Tue, 22 Mar 2016 21:35:55 GMT
42
+ - request:
43
+ method: get
44
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id1 %>
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ''
48
+ headers:
49
+ Accept:
50
+ - application/json
51
+ Accept-Encoding:
52
+ - gzip, deflate
53
+ Content-Type:
54
+ - application/json
55
+ User-Agent:
56
+ - Ruby
57
+ response:
58
+ status:
59
+ code: 200
60
+ message: OK
61
+ headers:
62
+ Connection:
63
+ - keep-alive
64
+ X-Powered-By:
65
+ - Undertow/1
66
+ Server:
67
+ - WildFly/10
68
+ Content-Type:
69
+ - application/json
70
+ Content-Length:
71
+ - '191'
72
+ Date:
73
+ - Tue, 22 Mar 2016 21:35:55 GMT
74
+ body:
75
+ encoding: ASCII-8BIT
76
+ string: '{"id":"<%= id1 %>","tags":{"myTag":"<%= id1 %>"},"dataRetention":7,"type":"availability","tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf"}'
77
+ http_version:
78
+ recorded_at: Tue, 22 Mar 2016 21:35:55 GMT
79
+ - request:
80
+ method: post
81
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability
82
+ body:
83
+ encoding: UTF-8
84
+ string: '{"id":"<%= id2 %>","tags":{"myTag":"<%= id2 %>"}}'
85
+ headers:
86
+ Accept:
87
+ - application/json
88
+ Accept-Encoding:
89
+ - gzip, deflate
90
+ Content-Type:
91
+ - application/json
92
+ Content-Length:
93
+ - '101'
94
+ User-Agent:
95
+ - Ruby
96
+ response:
97
+ status:
98
+ code: 201
99
+ message: Created
100
+ headers:
101
+ Connection:
102
+ - keep-alive
103
+ X-Powered-By:
104
+ - Undertow/1
105
+ Server:
106
+ - WildFly/10
107
+ Location:
108
+ - http://localhost:8080/hawkular/metrics/availability/<%= id2 %>
109
+ Content-Length:
110
+ - '0'
111
+ Date:
112
+ - Tue, 22 Mar 2016 21:35:55 GMT
113
+ body:
114
+ encoding: UTF-8
115
+ string: ''
116
+ http_version:
117
+ recorded_at: Tue, 22 Mar 2016 21:35:55 GMT
118
+ - request:
119
+ method: get
120
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id2 %>
121
+ body:
122
+ encoding: US-ASCII
123
+ string: ''
124
+ headers:
125
+ Accept:
126
+ - application/json
127
+ Accept-Encoding:
128
+ - gzip, deflate
129
+ Content-Type:
130
+ - application/json
131
+ User-Agent:
132
+ - Ruby
133
+ response:
134
+ status:
135
+ code: 200
136
+ message: OK
137
+ headers:
138
+ Connection:
139
+ - keep-alive
140
+ X-Powered-By:
141
+ - Undertow/1
142
+ Server:
143
+ - WildFly/10
144
+ Content-Type:
145
+ - application/json
146
+ Content-Length:
147
+ - '191'
148
+ Date:
149
+ - Tue, 22 Mar 2016 21:35:55 GMT
150
+ body:
151
+ encoding: ASCII-8BIT
152
+ string: '{"id":"<%= id2 %>","tags":{"myTag":"<%= id2 %>"},"dataRetention":7,"type":"availability","tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf"}'
153
+ http_version:
154
+ recorded_at: Tue, 22 Mar 2016 21:35:55 GMT
155
+ recorded_with: VCR 3.0.1