hawkular-client 2.2.1 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.rdoc +12 -0
  3. data/README.rdoc +5 -3
  4. data/Rakefile +8 -0
  5. data/hawkularclient.gemspec +1 -1
  6. data/lib/hawkular/base_client.rb +19 -1
  7. data/lib/hawkular/hawkular_client.rb +1 -1
  8. data/lib/hawkular/hawkular_client_utils.rb +1 -0
  9. data/lib/hawkular/inventory/entities.rb +234 -0
  10. data/lib/hawkular/inventory/inventory_api.rb +92 -311
  11. data/lib/hawkular/metrics/metric_api.rb +23 -10
  12. data/lib/hawkular/metrics/metrics_client.rb +14 -0
  13. data/lib/hawkular/operations/operations_api.rb +8 -2
  14. data/lib/hawkular/version.rb +1 -1
  15. data/spec/README.rdoc +62 -0
  16. data/spec/integration/alerts_spec.rb +18 -14
  17. data/spec/integration/hawkular_client_spec.rb +53 -14
  18. data/spec/integration/inventory_spec.rb +91 -44
  19. data/spec/integration/metric_spec.rb +574 -420
  20. data/spec/integration/operations_spec.rb +78 -5
  21. data/spec/integration/tokens_spec.rb +8 -4
  22. data/spec/spec_helper.rb +73 -13
  23. data/spec/unit/base_spec.rb +30 -1
  24. data/spec/unit/client_spec.rb +21 -9
  25. data/spec/vcr_cassettes/HawkularClient/Should_err_on_bad_credentials.yml +42 -0
  26. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_both_create_and_delete_feed.yml +64 -34
  27. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_both_list_WildFlys.yml +27 -43
  28. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_both_list_types_with_bad_feed.yml +12 -8
  29. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_list_same_types_when_param_is_given.yml +144 -64
  30. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_list_the_same_feeds.yml +26 -14
  31. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_list_the_same_resource_types.yml +20 -158
  32. data/spec/vcr_cassettes/HawkularClient/and_Operations_client/Should_both_work_the_same_way.yml +40 -30
  33. data/spec/vcr_cassettes/{Tenants/Should_Get_Tenant_For_Explicit_Credentials.yml → HawkularClient/and_Operations_client/Should_work_initializing_with_URI.yml} +18 -20
  34. data/spec/vcr_cassettes/HawkularClient/and_Operations_client_Should_both_work_the_same_way.json +8 -8
  35. data/spec/vcr_cassettes/HawkularClient/and_Operations_client_Should_work_initializing_with_URI.json +9 -0
  36. data/spec/vcr_cassettes/HawkularClient/and_URIs_as_input/Should_work_with_URI.yml +77 -20
  37. data/spec/vcr_cassettes/HawkularClient/and_URIs_as_input/Should_work_with_URI_on_metrics_client.yml +3 -3
  38. data/spec/vcr_cassettes/Inventory/Connection/Should_err_on_bad_credentials.yml +42 -0
  39. data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Explicit_Credentials.yml +59 -12
  40. data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Implicit_Credentials.yml +59 -12
  41. data/spec/vcr_cassettes/Inventory/{Helpers → inventory_0_17/Helpers}/create_url.yml +9 -7
  42. data/spec/vcr_cassettes/Inventory/{Templates/Should_list_feeds_when_using_SSL_without_certificate.yml → inventory_0_17/Helpers/get_feeds.yml} +23 -21
  43. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Client_should_listen_on_various_inventory_events.json +47 -0
  44. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Client_should_listen_on_various_inventory_events.yml +48 -40
  45. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Helpers/generate_some_events_for_websocket.yml +397 -0
  46. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_List_datasources_with_no_props.yml +129 -0
  47. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_create_a_feed.yml +13 -10
  48. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_create_a_feed_again.yml +40 -29
  49. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_create_a_nested_resource_and_metric_on_it.yml +193 -237
  50. data/spec/vcr_cassettes/Inventory/{Templates/Should_create_and_get_a_resource.yml → inventory_0_17/Templates/Should_create_a_resource.yml} +86 -172
  51. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_create_a_resource_with_metric.yml +296 -158
  52. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_create_a_resourcetype.yml +38 -29
  53. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_create_and_delete_feed.yml +42 -27
  54. data/spec/vcr_cassettes/Inventory/{Templates/Should_create_a_resource.yml → inventory_0_17/Templates/Should_create_and_get_a_resource.yml} +109 -89
  55. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_list_URLs.yml +20 -17
  56. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_list_WildFlys.yml +19 -12
  57. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_WildFlys_with_props.yml +131 -0
  58. data/spec/vcr_cassettes/Inventory/{Helpers/get_feeds.yml → inventory_0_17/Templates/Should_list_all_the_resource_types.yml} +14 -11
  59. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_children_of_WildFly.yml +315 -0
  60. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_list_children_of_nested_resource.yml +45 -30
  61. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_list_feeds.yml +16 -10
  62. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_feeds_when_using_SSL_without_certificate.yml +60 -0
  63. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_heap_metrics_for_WildFlys.yml +935 -0
  64. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_metrics_for_WildFlys.yml +357 -0
  65. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_metrics_of_given_metric_type.yml +122 -0
  66. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_metrics_of_given_resource_type.yml +292 -0
  67. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_operation_definitions_of_given_resource.yml +235 -0
  68. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_operation_definitions_of_given_resource_type.yml +121 -0
  69. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_recursive_children_of_WildFly.yml +1099 -0
  70. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_relationships_of_WildFly.yml +377 -0
  71. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_list_resources_for_feed.yml +19 -9
  72. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_list_types_with_bad_feed.yml +10 -8
  73. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_list_types_with_feed.yml +164 -0
  74. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_not_find_an_unknown_resource.yml +12 -10
  75. data/spec/vcr_cassettes/Inventory/{Templates → inventory_0_17/Templates}/Should_return_config_data_of_given_nested_resource.yml +17 -11
  76. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_return_config_data_of_given_resource.yml +66 -0
  77. data/spec/vcr_cassettes/Inventory/inventory_0_17/Templates/Should_return_the_version.yml +48 -0
  78. data/spec/vcr_cassettes/Metric_ID_with_special_characters/Get_metric_definition_by_id.yml +49 -0
  79. data/spec/vcr_cassettes/Metric_ID_with_special_characters/Retrieve_metric_rate_points.yml +88 -0
  80. data/spec/vcr_cassettes/Metric_ID_with_special_characters/Should_create_Availability_definition.yml +97 -0
  81. data/spec/vcr_cassettes/Metric_ID_with_special_characters/Should_create_Counter_definition.yml +97 -0
  82. data/spec/vcr_cassettes/Metric_ID_with_special_characters/Should_create_gauge_definition.yml +97 -0
  83. data/spec/vcr_cassettes/Metric_ID_with_special_characters/Should_push_metric_data_to_existing_gauge.yml +48 -0
  84. data/spec/vcr_cassettes/Metric_ID_with_special_characters/Should_update_tags_for_Availability_definition.yml +140 -0
  85. data/spec/vcr_cassettes/Metric_ID_with_special_characters/Should_update_tags_for_gauge_definition.yml +140 -0
  86. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml +95 -0
  87. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml +95 -0
  88. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Availability_metrics/Should_group_contiguous_values.yml +93 -0
  89. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml +138 -0
  90. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml +230 -0
  91. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml +95 -0
  92. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml +95 -0
  93. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +230 -0
  94. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +314 -0
  95. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml +269 -0
  96. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml +138 -0
  97. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_Hash.yml +95 -0
  98. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_MetricDefinition.yml +95 -0
  99. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml +269 -0
  100. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml +138 -0
  101. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Gauge_metrics/Should_return_periods.yml +93 -0
  102. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml +230 -0
  103. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +330 -0
  104. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +300 -0
  105. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml +273 -0
  106. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/No_Tenant/Should_fail.yml +48 -0
  107. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Simple/Should_be_Cool.yml +48 -0
  108. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Status/Should_return_the_version.yml +42 -0
  109. data/spec/vcr_cassettes/Metrics/metrics_0_16_0/Templates/Tenants/Should_create_and_return_tenant.yml +95 -0
  110. data/spec/vcr_cassettes/{Availability_metrics → Metrics/metrics_0_8_0/Templates/Availability_metrics}/Should_create_Availability_definition_using_MetricDefinition_parameter.yml +5 -9
  111. data/spec/vcr_cassettes/{Availability_metrics → Metrics/metrics_0_8_0/Templates/Availability_metrics}/Should_create_and_return_Availability_using_Hash_parameter.yml +5 -9
  112. data/spec/vcr_cassettes/{Availability_metrics → Metrics/metrics_0_8_0/Templates/Availability_metrics}/Should_push_metric_data_to_non-existing_Availability.yml +9 -15
  113. data/spec/vcr_cassettes/{Availability_metrics → Metrics/metrics_0_8_0/Templates/Availability_metrics}/Should_update_tags_for_Availability_definition.yml +11 -21
  114. data/spec/vcr_cassettes/{Counter_metrics → Metrics/metrics_0_8_0/Templates/Counter_metrics}/Should_create_and_return_counter_using_Hash_parameter.yml +5 -9
  115. data/spec/vcr_cassettes/{Counter_metrics → Metrics/metrics_0_8_0/Templates/Counter_metrics}/Should_create_counter_definition_using_MetricDefinition_parameter.yml +5 -9
  116. data/spec/vcr_cassettes/Metrics/metrics_0_8_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +200 -0
  117. data/spec/vcr_cassettes/{Counter_metrics → Metrics/metrics_0_8_0/Templates/Counter_metrics}/Should_push_metric_data_to_existing_counter.yml +16 -28
  118. data/spec/vcr_cassettes/{Counter_metrics → Metrics/metrics_0_8_0/Templates/Counter_metrics}/Should_push_metric_data_to_non-existing_counter.yml +9 -15
  119. data/spec/vcr_cassettes/{Gauge_metrics → Metrics/metrics_0_8_0/Templates/Gauge_metrics}/Should_create_gauge_definition_using_Hash.yml +5 -9
  120. data/spec/vcr_cassettes/{Gauge_metrics → Metrics/metrics_0_8_0/Templates/Gauge_metrics}/Should_create_gauge_definition_using_MetricDefinition.yml +6 -10
  121. data/spec/vcr_cassettes/{Gauge_metrics → Metrics/metrics_0_8_0/Templates/Gauge_metrics}/Should_push_metric_data_to_existing_gauge.yml +18 -30
  122. data/spec/vcr_cassettes/{Gauge_metrics → Metrics/metrics_0_8_0/Templates/Gauge_metrics}/Should_push_metric_data_to_non-existing_gauge.yml +9 -15
  123. data/spec/vcr_cassettes/{Gauge_metrics → Metrics/metrics_0_8_0/Templates/Gauge_metrics}/Should_return_periods.yml +6 -10
  124. data/spec/vcr_cassettes/{Gauge_metrics → Metrics/metrics_0_8_0/Templates/Gauge_metrics}/Should_update_tags_for_gauge_definition.yml +11 -21
  125. data/spec/vcr_cassettes/{Mixed_metrics → Metrics/metrics_0_8_0/Templates/Mixed_metrics}/Should_send_mixed_metric_request.yml +19 -33
  126. data/spec/vcr_cassettes/{Mixed_metrics → Metrics/metrics_0_8_0/Templates/Mixed_metrics}/Should_send_mixed_metric_request_of_a_single_type.yml +19 -31
  127. data/spec/vcr_cassettes/Metrics/metrics_0_8_0/Templates/Simple/Should_be_Cool.yml +82 -0
  128. data/spec/vcr_cassettes/Metrics/{Status.yml → metrics_0_8_0/Templates/Status/Should_return_the_version.yml} +6 -8
  129. data/spec/vcr_cassettes/{Tenants → Metrics/metrics_0_8_0/Templates/Tenants}/Should_create_and_return_tenant.yml +12 -8
  130. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml +95 -0
  131. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml +95 -0
  132. data/spec/vcr_cassettes/{Availability_metrics → Metrics/metrics_services/Templates/Availability_metrics}/Should_group_contiguous_values.yml +7 -7
  133. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml +138 -0
  134. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml +230 -0
  135. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml +95 -0
  136. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml +95 -0
  137. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +230 -0
  138. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +314 -0
  139. data/spec/vcr_cassettes/{Counter_metrics/Should_get_metrics_with_limit_and_order.yml → Metrics/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml} +72 -61
  140. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml +138 -0
  141. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_create_gauge_definition_using_Hash.yml +95 -0
  142. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_create_gauge_definition_using_MetricDefinition.yml +95 -0
  143. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml +269 -0
  144. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml +138 -0
  145. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_return_periods.yml +93 -0
  146. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory.yml +48 -0
  147. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory_def.yml +49 -0
  148. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml +230 -0
  149. data/spec/vcr_cassettes/{Mixed_metrics → Metrics/metrics_services/Templates/Mixed_metrics}/Should_requests_raw_data_for_multiple_metrics.yml +25 -25
  150. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +300 -0
  151. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml +273 -0
  152. data/spec/vcr_cassettes/{No_Tenant → Metrics/metrics_services/Templates/No_Tenant}/Should_fail.yml +16 -10
  153. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Simple/Should_be_Cool.yml +48 -0
  154. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Status/Should_return_the_version.yml +42 -0
  155. data/spec/vcr_cassettes/Metrics/metrics_services/Templates/Tenants/Should_create_and_return_tenant.yml +95 -0
  156. data/spec/vcr_cassettes/{Counter_metrics → New_API_Counter_metrics}/Should_get_metrics_as_bucketed_results.yml +73 -33
  157. data/spec/vcr_cassettes/New_API_Mixed_metrics/Should_send_mixed_metric_request.yml +300 -0
  158. data/spec/vcr_cassettes/Operation/Helpers/get_feed.yml +17 -11
  159. data/spec/vcr_cassettes/Operation/Helpers/get_tenant.yml +13 -11
  160. data/spec/vcr_cassettes/Operation/Operation/Add_JDBC_driver_should_add_the_driver.json +2 -2
  161. data/spec/vcr_cassettes/Operation/Operation/Add_datasource_should_be_doable.json +2 -2
  162. data/spec/vcr_cassettes/Operation/Operation/Add_deployment_should_be_doable.json +2 -2
  163. data/spec/vcr_cassettes/Operation/Operation/Redeploy_can_be_run_multiple_times_in_parallel.json +4 -4
  164. data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_be_performed_and_eventually_respond_with_success.json +2 -2
  165. data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_not_be_performed_if_resource_path_is_wrong.json +2 -2
  166. data/spec/vcr_cassettes/Operation/Operation/Remove_JDBC_driver_should_be_performed_and_eventually_respond_with_success.json +2 -2
  167. data/spec/vcr_cassettes/Operation/Operation/Remove_datasource_should_be_performed_and_eventually_respond_with_success.json +2 -2
  168. data/spec/vcr_cassettes/Operation/Operation/Remove_deployment_should_be_performed_and_eventually_respond_with_success.json +2 -2
  169. data/spec/vcr_cassettes/Operation/Operation/Undeploy_should_be_performed_and_eventually_respond_with_success.json +2 -2
  170. data/spec/vcr_cassettes/Operation/Websocket_connection/should_bail_with_hash_property_error_because_no_callback_at_all.json +9 -0
  171. data/spec/vcr_cassettes/Operation/Websocket_connection/should_bail_with_hash_property_error_because_no_error-callback_.json +9 -0
  172. data/spec/vcr_cassettes/Operation/Websocket_connection/should_run_into_error_callback_because_bad_hash_parameters.json +13 -0
  173. metadata +259 -139
  174. data/spec/vcr_cassettes/Gauge_metrics/Platform_mem.yml +0 -44
  175. data/spec/vcr_cassettes/Gauge_metrics/Platform_mem_def.yml +0 -45
  176. data/spec/vcr_cassettes/Inventory/Helpers/generate_some_events_for_websocket.yml +0 -4446
  177. data/spec/vcr_cassettes/Inventory/Templates/Client_should_listen_on_various_inventory_events.json +0 -47
  178. data/spec/vcr_cassettes/Inventory/Templates/Helpers/generate_some_events_for_websocket.yml +0 -542
  179. data/spec/vcr_cassettes/Inventory/Templates/Should_List_datasources_with_no_props.yml +0 -174
  180. data/spec/vcr_cassettes/Inventory/Templates/Should_list_WildFlys_with_props.yml +0 -115
  181. data/spec/vcr_cassettes/Inventory/Templates/Should_list_all_the_resource_types.yml +0 -126
  182. data/spec/vcr_cassettes/Inventory/Templates/Should_list_children_of_WildFly.yml +0 -308
  183. data/spec/vcr_cassettes/Inventory/Templates/Should_list_heap_metrics_for_WildFlys.yml +0 -712
  184. data/spec/vcr_cassettes/Inventory/Templates/Should_list_metrics_for_WildFlys.yml +0 -278
  185. data/spec/vcr_cassettes/Inventory/Templates/Should_list_metrics_of_given_metric_type.yml +0 -530
  186. data/spec/vcr_cassettes/Inventory/Templates/Should_list_metrics_of_given_resource_type.yml +0 -278
  187. data/spec/vcr_cassettes/Inventory/Templates/Should_list_operation_definitions_of_given_resource.yml +0 -185
  188. data/spec/vcr_cassettes/Inventory/Templates/Should_list_operation_definitions_of_given_resource_type.yml +0 -126
  189. data/spec/vcr_cassettes/Inventory/Templates/Should_list_recursive_children_of_WildFly.yml +0 -2369
  190. data/spec/vcr_cassettes/Inventory/Templates/Should_list_relationships_of_WildFly.yml +0 -415
  191. data/spec/vcr_cassettes/Inventory/Templates/Should_list_types_with_feed.yml +0 -124
  192. data/spec/vcr_cassettes/Inventory/Templates/Should_return_config_data_of_given_resource.yml +0 -57
  193. data/spec/vcr_cassettes/Simple/Should_be_Cool.yml +0 -208
  194. data/spec/vcr_cassettes/Tenants/Should_Get_Tenant_For_Implicit_Credentials.yml +0 -50
@@ -2,10 +2,10 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://localhost:8080/hawkular/metrics/counters/<%= id %>/data
5
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '[{"value":4,"timestamp":1446743049207}]'
8
+ string: '[{"value":4,"timestamp":1467303858961}]'
9
9
  headers:
10
10
  Accept:
11
11
  - application/json
@@ -22,21 +22,27 @@ http_interactions:
22
22
  code: 400
23
23
  message: Bad Request
24
24
  headers:
25
- Connection:
26
- - keep-alive
25
+ Expires:
26
+ - '0'
27
+ Cache-Control:
28
+ - no-cache, no-store, must-revalidate
27
29
  X-Powered-By:
28
30
  - Undertow/1
29
31
  Server:
30
- - WildFly/9
32
+ - WildFly/10
33
+ Pragma:
34
+ - no-cache
35
+ Date:
36
+ - Thu, 30 Jun 2016 16:24:18 GMT
37
+ Connection:
38
+ - keep-alive
31
39
  Content-Type:
32
40
  - application/json
33
41
  Content-Length:
34
42
  - '69'
35
- Date:
36
- - Thu, 05 Nov 2015 17:04:09 GMT
37
43
  body:
38
44
  encoding: UTF-8
39
45
  string: '{"errorMsg":"Tenant is not specified. Use ''Hawkular-Tenant'' header."}'
40
- http_version:
41
- recorded_at: Thu, 05 Nov 2015 17:04:09 GMT
42
- recorded_with: VCR 3.0.0
46
+ http_version:
47
+ recorded_at: Thu, 30 Jun 2016 16:24:18 GMT
48
+ recorded_with: VCR 3.0.1
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8080/hawkular/metrics
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ Host:
17
+ - localhost:8080
18
+ response:
19
+ status:
20
+ code: 401
21
+ message: Unauthorized
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
+ - Thu, 30 Jun 2016 16:24:18 GMT
35
+ Connection:
36
+ - keep-alive
37
+ Www-Authenticate:
38
+ - Basic realm="ApplicationRealm"
39
+ Content-Type:
40
+ - text/html;charset=UTF-8
41
+ Content-Length:
42
+ - '71'
43
+ body:
44
+ encoding: UTF-8
45
+ string: "<html><head><title>Error</title></head><body>Unauthorized</body></html>"
46
+ http_version:
47
+ recorded_at: Thu, 30 Jun 2016 16:24:18 GMT
48
+ recorded_with: VCR 3.0.1
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/status
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Hawkular-Tenant:
15
+ - hawkular
16
+ Content-Type:
17
+ - application/json
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Connection:
26
+ - keep-alive
27
+ X-Powered-By:
28
+ - Undertow/1
29
+ Server:
30
+ - WildFly/10
31
+ Content-Type:
32
+ - application/json
33
+ Content-Length:
34
+ - '187'
35
+ Date:
36
+ - Thu, 30 Jun 2016 16:24:18 GMT
37
+ body:
38
+ encoding: UTF-8
39
+ string: '{"MetricsService":"STARTED","Implementation-Version":"0.16.0.Final-SRC-revision-8faf30e5b65ecc93b5377cef479c6b67606d94c2","Built-From-Git-SHA1":"8faf30e5b65ecc93b5377cef479c6b67606d94c2"}'
40
+ http_version:
41
+ recorded_at: Thu, 30 Jun 2016 16:24:18 GMT
42
+ recorded_with: VCR 3.0.1
@@ -0,0 +1,95 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/tenants
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"id":"<%= id %>"}'
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Hawkular-Tenant:
15
+ - hawkular
16
+ Content-Type:
17
+ - application/json
18
+ Content-Length:
19
+ - '45'
20
+ User-Agent:
21
+ - Ruby
22
+ response:
23
+ status:
24
+ code: 201
25
+ message: Created
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
+ Location:
38
+ - http://localhost:8080/hawkular/metrics/tenants
39
+ Date:
40
+ - Thu, 30 Jun 2016 16:24:18 GMT
41
+ Connection:
42
+ - keep-alive
43
+ Content-Length:
44
+ - '0'
45
+ body:
46
+ encoding: UTF-8
47
+ string: ''
48
+ http_version:
49
+ recorded_at: Thu, 30 Jun 2016 16:24:18 GMT
50
+ - request:
51
+ method: get
52
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/tenants
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ''
56
+ headers:
57
+ Accept:
58
+ - application/json
59
+ Accept-Encoding:
60
+ - gzip, deflate
61
+ Hawkular-Tenant:
62
+ - hawkular
63
+ Content-Type:
64
+ - application/json
65
+ User-Agent:
66
+ - Ruby
67
+ response:
68
+ status:
69
+ code: 200
70
+ message: OK
71
+ headers:
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/10
80
+ Pragma:
81
+ - no-cache
82
+ Date:
83
+ - Thu, 30 Jun 2016 16:24:18 GMT
84
+ Connection:
85
+ - keep-alive
86
+ Content-Type:
87
+ - application/json
88
+ Content-Length:
89
+ - '65'
90
+ body:
91
+ encoding: UTF-8
92
+ string: '[{"id":"hawkular"},{"id":"<%= id %>"}]'
93
+ http_version:
94
+ recorded_at: Thu, 30 Jun 2016 16:24:18 GMT
95
+ recorded_with: VCR 3.0.1
@@ -11,6 +11,8 @@ http_interactions:
11
11
  - application/json
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
+ Hawkular-Tenant:
15
+ - vcr-test
14
16
  Content-Type:
15
17
  - application/json
16
18
  Content-Length:
@@ -22,26 +24,32 @@ http_interactions:
22
24
  code: 201
23
25
  message: Created
24
26
  headers:
25
- Connection:
26
- - keep-alive
27
+ Expires:
28
+ - '0'
29
+ Cache-Control:
30
+ - no-cache, no-store, must-revalidate
27
31
  X-Powered-By:
28
32
  - Undertow/1
29
33
  Server:
30
34
  - WildFly/10
35
+ Pragma:
36
+ - no-cache
31
37
  Location:
32
38
  - http://localhost:8080/hawkular/metrics/counters/<%= id %>
39
+ Date:
40
+ - Mon, 04 Jul 2016 20:16:13 GMT
41
+ Connection:
42
+ - keep-alive
33
43
  Content-Length:
34
44
  - '0'
35
- Date:
36
- - Tue, 10 May 2016 09:54:44 GMT
37
45
  body:
38
46
  encoding: UTF-8
39
47
  string: ''
40
48
  http_version:
41
- recorded_at: Tue, 10 May 2016 09:54:44 GMT
49
+ recorded_at: Mon, 04 Jul 2016 20:16:13 GMT
42
50
  - request:
43
51
  method: post
44
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data
52
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw
45
53
  body:
46
54
  encoding: UTF-8
47
55
  string: '[{"value":110,"timestamp":<%= now - 110 %>},{"value":100,"timestamp":<%= now - 100 %>},{"value":90,"timestamp":<%= now - 90 %>},{"value":80,"timestamp":<%= now - 80 %>},{"value":70,"timestamp":<%= now - 70 %>},{"value":60,"timestamp":<%= now - 60 %>},{"value":50,"timestamp":<%= now - 50 %>},{"value":40,"timestamp":<%= now - 40 %>},{"value":30,"timestamp":<%= now - 30 %>},{"value":20,"timestamp":<%= now - 20 %>},{"value":10,"timestamp":<%= now - 10 %>}]'
@@ -50,6 +58,8 @@ http_interactions:
50
58
  - application/json
51
59
  Accept-Encoding:
52
60
  - gzip, deflate
61
+ Hawkular-Tenant:
62
+ - vcr-test
53
63
  Content-Type:
54
64
  - application/json
55
65
  Content-Length:
@@ -61,24 +71,30 @@ http_interactions:
61
71
  code: 200
62
72
  message: OK
63
73
  headers:
74
+ Expires:
75
+ - '0'
64
76
  Connection:
65
77
  - keep-alive
78
+ Cache-Control:
79
+ - no-cache, no-store, must-revalidate
66
80
  X-Powered-By:
67
81
  - Undertow/1
68
82
  Server:
69
83
  - WildFly/10
84
+ Pragma:
85
+ - no-cache
70
86
  Content-Length:
71
87
  - '0'
72
88
  Date:
73
- - Tue, 10 May 2016 09:54:44 GMT
89
+ - Mon, 04 Jul 2016 20:16:13 GMT
74
90
  body:
75
91
  encoding: UTF-8
76
92
  string: ''
77
93
  http_version:
78
- recorded_at: Tue, 10 May 2016 09:54:44 GMT
94
+ recorded_at: Mon, 04 Jul 2016 20:16:13 GMT
79
95
  - request:
80
96
  method: get
81
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/?buckets=5&end=<%= now - 5 %>&start=<%= now - 105 %>
97
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/stats/?buckets=5&end=<%= now - 5 %>&start=<%= now - 105 %>
82
98
  body:
83
99
  encoding: US-ASCII
84
100
  string: ''
@@ -87,6 +103,8 @@ http_interactions:
87
103
  - application/json
88
104
  Accept-Encoding:
89
105
  - gzip, deflate
106
+ Hawkular-Tenant:
107
+ - vcr-test
90
108
  Content-Type:
91
109
  - application/json
92
110
  User-Agent:
@@ -96,26 +114,32 @@ http_interactions:
96
114
  code: 200
97
115
  message: OK
98
116
  headers:
99
- Connection:
100
- - keep-alive
117
+ Expires:
118
+ - '0'
119
+ Cache-Control:
120
+ - no-cache, no-store, must-revalidate
101
121
  X-Powered-By:
102
122
  - Undertow/1
103
123
  Server:
104
124
  - WildFly/10
125
+ Pragma:
126
+ - no-cache
127
+ Date:
128
+ - Mon, 04 Jul 2016 20:16:13 GMT
129
+ Connection:
130
+ - keep-alive
105
131
  Content-Type:
106
132
  - application/json
107
133
  Content-Length:
108
- - '587'
109
- Date:
110
- - Tue, 10 May 2016 09:54:44 GMT
134
+ - '645'
111
135
  body:
112
- encoding: ASCII-8BIT
136
+ encoding: UTF-8
113
137
  string: '[{"start":<%= now - 105 %>,"end":<%= now - 85 %>,"min":90.0,"avg":95.0,"median":90.0,"max":100.0,"samples":2,"empty":false},{"start":<%= now - 85 %>,"end":<%= now - 65 %>,"min":70.0,"avg":75.0,"median":70.0,"max":80.0,"samples":2,"empty":false},{"start":<%= now - 65 %>,"end":<%= now - 45 %>,"min":50.0,"avg":55.0,"median":50.0,"max":60.0,"samples":2,"empty":false},{"start":<%= now - 45 %>,"end":<%= now - 25 %>,"min":30.0,"avg":35.0,"median":30.0,"max":40.0,"samples":2,"empty":false},{"start":<%= now - 25 %>,"end":<%= now - 5 %>,"min":10.0,"avg":15.0,"median":10.0,"max":20.0,"samples":2,"empty":false}]'
114
138
  http_version:
115
- recorded_at: Tue, 10 May 2016 09:54:44 GMT
139
+ recorded_at: Mon, 04 Jul 2016 20:16:13 GMT
116
140
  - request:
117
141
  method: get
118
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/?buckets=2&end=<%= now - 5 %>&start=<%= now - 105 %>
142
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/stats/?buckets=2&end=<%= now - 5 %>&start=<%= now - 105 %>
119
143
  body:
120
144
  encoding: US-ASCII
121
145
  string: ''
@@ -124,6 +148,8 @@ http_interactions:
124
148
  - application/json
125
149
  Accept-Encoding:
126
150
  - gzip, deflate
151
+ Hawkular-Tenant:
152
+ - vcr-test
127
153
  Content-Type:
128
154
  - application/json
129
155
  User-Agent:
@@ -133,26 +159,32 @@ http_interactions:
133
159
  code: 200
134
160
  message: OK
135
161
  headers:
136
- Connection:
137
- - keep-alive
162
+ Expires:
163
+ - '0'
164
+ Cache-Control:
165
+ - no-cache, no-store, must-revalidate
138
166
  X-Powered-By:
139
167
  - Undertow/1
140
168
  Server:
141
169
  - WildFly/10
170
+ Pragma:
171
+ - no-cache
172
+ Date:
173
+ - Mon, 04 Jul 2016 20:16:13 GMT
174
+ Connection:
175
+ - keep-alive
142
176
  Content-Type:
143
177
  - application/json
144
178
  Content-Length:
145
- - '236'
146
- Date:
147
- - Tue, 10 May 2016 09:54:44 GMT
179
+ - '260'
148
180
  body:
149
- encoding: ASCII-8BIT
181
+ encoding: UTF-8
150
182
  string: '[{"start":<%= now - 105 %>,"end":<%= now - 55 %>,"min":60.0,"avg":80.0,"median":80.0,"max":100.0,"samples":5,"empty":false},{"start":<%= now - 55 %>,"end":<%= now - 5 %>,"min":10.0,"avg":30.0,"median":30.0,"max":50.0,"samples":5,"empty":false}]'
151
183
  http_version:
152
- recorded_at: Tue, 10 May 2016 09:54:44 GMT
184
+ recorded_at: Mon, 04 Jul 2016 20:16:13 GMT
153
185
  - request:
154
186
  method: get
155
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/?bucketDuration=50ms&end=<%= now - 5 %>&start=<%= now - 105 %>
187
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/stats/?bucketDuration=50ms&end=<%= now - 5 %>&start=<%= now - 105 %>
156
188
  body:
157
189
  encoding: US-ASCII
158
190
  string: ''
@@ -161,6 +193,8 @@ http_interactions:
161
193
  - application/json
162
194
  Accept-Encoding:
163
195
  - gzip, deflate
196
+ Hawkular-Tenant:
197
+ - vcr-test
164
198
  Content-Type:
165
199
  - application/json
166
200
  User-Agent:
@@ -170,21 +204,27 @@ http_interactions:
170
204
  code: 200
171
205
  message: OK
172
206
  headers:
173
- Connection:
174
- - keep-alive
207
+ Expires:
208
+ - '0'
209
+ Cache-Control:
210
+ - no-cache, no-store, must-revalidate
175
211
  X-Powered-By:
176
212
  - Undertow/1
177
213
  Server:
178
214
  - WildFly/10
215
+ Pragma:
216
+ - no-cache
217
+ Date:
218
+ - Mon, 04 Jul 2016 20:16:13 GMT
219
+ Connection:
220
+ - keep-alive
179
221
  Content-Type:
180
222
  - application/json
181
223
  Content-Length:
182
- - '236'
183
- Date:
184
- - Tue, 10 May 2016 09:54:44 GMT
224
+ - '260'
185
225
  body:
186
- encoding: ASCII-8BIT
226
+ encoding: UTF-8
187
227
  string: '[{"start":<%= now - 105 %>,"end":<%= now - 55 %>,"min":60.0,"avg":80.0,"median":80.0,"max":100.0,"samples":5,"empty":false},{"start":<%= now - 55 %>,"end":<%= now - 5 %>,"min":10.0,"avg":30.0,"median":30.0,"max":50.0,"samples":5,"empty":false}]'
188
228
  http_version:
189
- recorded_at: Tue, 10 May 2016 09:54:44 GMT
190
- recorded_with: VCR 3.0.1
229
+ recorded_at: Mon, 04 Jul 2016 20:16:13 GMT
230
+ recorded_with: VCR 3.0.3