hawkular-client 2.7.0 → 2.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +19 -2
  3. data/.travis/wait_for_services.rb +23 -0
  4. data/CHANGES.rdoc +11 -0
  5. data/docker-compose.yml +15 -0
  6. data/lib/hawkular/alerts/alerts_api.rb +24 -0
  7. data/lib/hawkular/base_client.rb +7 -0
  8. data/lib/hawkular/inventory/entities.rb +3 -0
  9. data/lib/hawkular/metrics/metric_api.rb +38 -3
  10. data/lib/hawkular/metrics/metrics_client.rb +3 -0
  11. data/lib/hawkular/metrics/tenant_api.rb +2 -2
  12. data/lib/hawkular/version.rb +1 -1
  13. data/spec/integration/alert-resources/alerts-test-data.json +40 -0
  14. data/spec/integration/alert-resources/events-test-data.json +78 -0
  15. data/spec/integration/alert-resources/triggers-test-data.json +66 -0
  16. data/spec/integration/alerts_spec.rb +192 -83
  17. data/spec/integration/hello-world-definitions.json +1 -2
  18. data/spec/integration/inventory_spec.rb +18 -5
  19. data/spec/integration/metric_spec.rb +201 -40
  20. data/spec/integration/operations_spec.rb +45 -1
  21. data/spec/spec_helper.rb +25 -6
  22. data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_acknowledge_an_alert.yml +205 -0
  23. data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_fetch_single_alert.yml +108 -0
  24. data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_list_alerts.yml +59 -0
  25. data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_list_alerts_for_trigger.yml +58 -0
  26. data/spec/vcr_cassettes/Alert/Alerts/{Should_list_alerts_for_unknown_trigger.yml → Templates/Should_list_alerts_for_unknown_trigger.yml} +13 -9
  27. data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_list_open_alerts.yml +59 -0
  28. data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_resolve_an_alert.yml +207 -0
  29. data/spec/vcr_cassettes/Alert/Alerts/Templates/setup.yml +255 -0
  30. data/spec/vcr_cassettes/Alert/Alerts/Templates/setup_cleanup.yml +302 -0
  31. data/spec/vcr_cassettes/Alert/EndToEnd/Templates/Should_create_and_fire_a_trigger.yml +527 -0
  32. data/spec/vcr_cassettes/{Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_return_periods.yml → Alert/Events/Templates/Should_create_an_event.yml} +22 -18
  33. data/spec/vcr_cassettes/{Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml → Alert/Events/Templates/Should_delete_an_event.yml} +28 -24
  34. data/spec/vcr_cassettes/Alert/Events/Templates/Should_list_events.yml +91 -0
  35. data/spec/vcr_cassettes/Alert/Events/Templates/Should_list_events_using_criteria.yml +60 -0
  36. data/spec/vcr_cassettes/Alert/Events/{Should_not_list_events_using_criteria.yml → Templates/Should_not_list_events_using_criteria.yml} +14 -13
  37. data/spec/vcr_cassettes/Alert/Events/Templates/setup.yml +615 -0
  38. data/spec/vcr_cassettes/Alert/Events/Templates/setup_cleanup.yml +567 -0
  39. data/spec/vcr_cassettes/Alert/Groups/{Should_operate_a_complex_group_trigger.yml → Templates/Should_operate_a_complex_group_trigger.yml} +508 -352
  40. data/spec/vcr_cassettes/{Alerts → Alert/Templates}/Should_return_the_version.yml +10 -8
  41. data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_List_Triggers.yml +55 -0
  42. data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_List_Triggers_for_ID.yml +56 -0
  43. data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_List_Triggers_for_Tag.yml +56 -0
  44. data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_List_Triggers_for_Tags.yml +56 -0
  45. data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_bulk_load_triggers.yml +243 -0
  46. data/spec/vcr_cassettes/Alert/Triggers/{Should_create_a_basic_trigger_with_action.yml → Templates/Should_create_a_basic_trigger_with_action.yml} +107 -76
  47. data/spec/vcr_cassettes/Alert/Triggers/{Should_create_a_firing_ALL_ANY_trigger.yml → Templates/Should_create_a_firing_ALL_ANY_trigger.yml} +81 -61
  48. data/spec/vcr_cassettes/{Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml → Alert/Triggers/Templates/Should_create_an_action.yml} +32 -30
  49. data/spec/vcr_cassettes/{Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml → Alert/Triggers/Templates/Should_get_a_single_Trigger_with_conditions.yml} +29 -29
  50. data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_get_a_single_metric_Trigger.yml +50 -0
  51. data/spec/vcr_cassettes/Alert/Triggers/{Should_get_the_action_definitions.yml → Templates/Should_get_the_action_definitions.yml} +46 -73
  52. data/spec/vcr_cassettes/Alert/Triggers/{Should_not_create_an_action_for_unknown_plugin.yml → Templates/Should_not_create_an_action_for_unknown_plugin.yml} +12 -8
  53. data/spec/vcr_cassettes/{Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml → Alert/Triggers/Templates/Should_not_create_an_action_for_unknown_properties.yml} +27 -26
  54. data/spec/vcr_cassettes/Alert/Triggers/Templates/setup.yml +52 -0
  55. data/spec/vcr_cassettes/{Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml → Alert/Triggers/Templates/setup_cleanup.yml} +51 -51
  56. data/spec/vcr_cassettes/Inventory/NonSecure/inventory_0_17/Templates/Should_list_metrics_of_given_metric_type.yml +29 -25
  57. data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Get_metric_definition_by_id.yml +3 -3
  58. data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Retrieve_metric_rate_points.yml +5 -5
  59. data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_Availability_definition.yml +4 -4
  60. data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_Counter_definition.yml +4 -4
  61. data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_gauge_definition.yml +4 -4
  62. data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_push_metric_data_to_existing_gauge.yml +4 -4
  63. data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_update_tags_for_Availability_definition.yml +6 -6
  64. data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_update_tags_for_gauge_definition.yml +8 -8
  65. data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/setup_client.yml +44 -0
  66. data/spec/vcr_cassettes/Metrics/NonSecure/{metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml → metrics_services/Templates/All_Tags_for_metrics/Should_fetch_all_metric_tags_for_metrics_definitions.yml} +159 -53
  67. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/Should_group_contiguous_values.yml +47 -6
  68. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml +12 -12
  69. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/setup_client.yml +44 -0
  70. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +17 -17
  71. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +23 -23
  72. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml +19 -19
  73. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml +12 -12
  74. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/setup_client.yml +44 -0
  75. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml +19 -19
  76. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml +12 -12
  77. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_periods.yml +5 -5
  78. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory.yml +151 -5
  79. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory_def.yml +152 -6
  80. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/setup_client.yml +44 -0
  81. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_fetch_rate_stats_for_mixed_metric.yml +33 -33
  82. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_fetch_stats_for_mixed_metric.yml +31 -32
  83. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +108 -20
  84. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +26 -26
  85. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml +27 -27
  86. data/spec/vcr_cassettes/Metrics/NonSecure/{metrics_0_16_0/Templates/Status/Should_return_the_version.yml → metrics_services/Templates/Mixed_metrics/setup_client.yml} +3 -3
  87. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/No_Tenant/Should_fail.yml +43 -4
  88. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Status/Should_return_the_version.yml +44 -3
  89. data/spec/vcr_cassettes/Metrics/NonSecure/{metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_Hash.yml → metrics_services/Templates/String_metrics/Should_create_string_definition_using_Hash.yml} +9 -9
  90. data/spec/vcr_cassettes/Metrics/NonSecure/{metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_MetricDefinition.yml → metrics_services/Templates/String_metrics/Should_create_string_definition_using_MetricDefinition.yml} +9 -9
  91. data/spec/vcr_cassettes/Metrics/NonSecure/{metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml → metrics_services/Templates/String_metrics/Should_push_metric_data_to_existing_string.yml} +27 -27
  92. data/spec/vcr_cassettes/Metrics/NonSecure/{metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml → metrics_services/Templates/String_metrics/Should_push_metric_data_to_non-existing_string.yml} +15 -15
  93. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/String_metrics/setup_client.yml +44 -0
  94. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Tags_Metrics/setup_client.yml +44 -0
  95. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Tenants/Should_create_and_return_tenant.yml +10 -6
  96. data/spec/vcr_cassettes/Metrics/{Secure/metrics_0_16_0/Templates/Status/Should_return_the_version.yml → NonSecure/metrics_services/Templates/Tenants/setup_client.yml} +5 -5
  97. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/setup_client.yml +44 -0
  98. data/spec/vcr_cassettes/Metrics/Secure/metrics_services/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +80 -33
  99. data/spec/vcr_cassettes/Operation/NonSecure/Operation/Add_XA_datasource_should_be_doable.json +23 -0
  100. data/spec/vcr_cassettes/Operation/NonSecure/Operation/{Add_datasource_should_be_doable.json → Add_non-XA_datasource_should_be_doable.json} +0 -0
  101. metadata +111 -156
  102. data/spec/vcr_cassettes/Alert/Alerts/Should_acknowledge_an_alert.yml +0 -183
  103. data/spec/vcr_cassettes/Alert/Alerts/Should_fetch_single_alert.yml +0 -69
  104. data/spec/vcr_cassettes/Alert/Alerts/Should_list_alerts.yml +0 -85
  105. data/spec/vcr_cassettes/Alert/Alerts/Should_list_alerts_for_trigger.yml +0 -142
  106. data/spec/vcr_cassettes/Alert/Alerts/Should_resolve_an_alert.yml +0 -181
  107. data/spec/vcr_cassettes/Alert/Alerts/Should_resolve_an_alert2.yml +0 -49
  108. data/spec/vcr_cassettes/Alert/EndToEnd/Should_create_and_fire_a_trigger.yml +0 -1187
  109. data/spec/vcr_cassettes/Alert/Events/Should_create_an_event.yml +0 -50
  110. data/spec/vcr_cassettes/Alert/Events/Should_list_events.yml +0 -101
  111. data/spec/vcr_cassettes/Alert/Events/Should_list_events_using_criteria.yml +0 -79
  112. data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers.yml +0 -62
  113. data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_ID.yml +0 -55
  114. data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_Tag.yml +0 -68
  115. data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_Tags.yml +0 -68
  116. data/spec/vcr_cassettes/Alert/Triggers/Should_bulk_load_triggers.yml +0 -225
  117. data/spec/vcr_cassettes/Alert/Triggers/Should_create_an_action.yml +0 -134
  118. data/spec/vcr_cassettes/Alert/Triggers/Should_create_an_action_for_webhooks.yml +0 -220
  119. data/spec/vcr_cassettes/Alert/Triggers/Should_get_a_single_Trigger_with_conditions.yml +0 -138
  120. data/spec/vcr_cassettes/Alert/Triggers/Should_get_a_single_metric_Trigger.yml +0 -50
  121. data/spec/vcr_cassettes/Alert/Triggers/Should_not_create_an_action_for_unknown_properties.yml +0 -134
  122. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml +0 -99
  123. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_group_contiguous_values.yml +0 -97
  124. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml +0 -240
  125. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml +0 -99
  126. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml +0 -99
  127. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +0 -240
  128. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml +0 -281
  129. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml +0 -240
  130. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +0 -326
  131. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +0 -314
  132. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/No_Tenant/Should_fail.yml +0 -50
  133. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Simple/Should_be_Cool.yml +0 -48
  134. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Tenants/Should_create_and_return_tenant.yml +0 -99
  135. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml +0 -99
  136. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml +0 -99
  137. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_group_contiguous_values.yml +0 -97
  138. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml +0 -240
  139. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml +0 -99
  140. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml +0 -99
  141. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +0 -240
  142. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +0 -328
  143. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml +0 -281
  144. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml +0 -144
  145. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_Hash.yml +0 -99
  146. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_MetricDefinition.yml +0 -99
  147. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml +0 -281
  148. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml +0 -144
  149. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_return_periods.yml +0 -97
  150. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml +0 -240
  151. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +0 -326
  152. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +0 -314
  153. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml +0 -285
  154. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/No_Tenant/Should_fail.yml +0 -50
  155. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Simple/Should_be_Cool.yml +0 -48
  156. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Tenants/Should_create_and_return_tenant.yml +0 -99
@@ -1,8 +1,49 @@
1
1
  ---
2
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
+ - identity
14
+ User-Agent:
15
+ - hawkular-client-ruby
16
+ Hawkular-Tenant:
17
+ - <%= vcr_test_tenant %>
18
+ Content-Type:
19
+ - application/json
20
+ Host:
21
+ - localhost:8080
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Connection:
28
+ - keep-alive
29
+ X-Powered-By:
30
+ - Undertow/1
31
+ Server:
32
+ - WildFly/10
33
+ Content-Type:
34
+ - application/json
35
+ Content-Length:
36
+ - '133'
37
+ Date:
38
+ - Thu, 13 Oct 2016 03:23:56 GMT
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"MetricsService":"STARTED","Implementation-Version":"0.20.1.Final","Built-From-Git-SHA1":"f23946235446d3425db31d262b47b4f950ddabb3"}'
42
+ http_version:
43
+ recorded_at: Thu, 13 Oct 2016 03:23:56 GMT
3
44
  - request:
4
45
  method: post
5
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/data
46
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw
6
47
  body:
7
48
  encoding: UTF-8
8
49
  string: '[{"timestamp":<%= minus50 %>,"value":"up"},{"timestamp":<%= minus40 %>,"value":"up"},{"timestamp":<%= minus30 %>,"value":"down"},{"timestamp":<%= minus20 %>,"value":"down"},{"timestamp":<%= minus10 %>,"value":"down"},{"timestamp":<%= now %>,"value":"up"}]'
@@ -41,15 +82,15 @@ http_interactions:
41
82
  Content-Length:
42
83
  - '0'
43
84
  Date:
44
- - Mon, 15 Aug 2016 15:20:37 GMT
85
+ - Thu, 13 Oct 2016 03:23:56 GMT
45
86
  body:
46
87
  encoding: UTF-8
47
88
  string: ''
48
89
  http_version:
49
- recorded_at: Mon, 15 Aug 2016 15:20:37 GMT
90
+ recorded_at: Thu, 13 Oct 2016 03:23:56 GMT
50
91
  - request:
51
92
  method: get
52
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/data/?distinct=true&order=ASC
93
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw/?distinct=true&order=ASC
53
94
  body:
54
95
  encoding: US-ASCII
55
96
  string: ''
@@ -82,7 +123,7 @@ http_interactions:
82
123
  Pragma:
83
124
  - no-cache
84
125
  Date:
85
- - Mon, 15 Aug 2016 15:20:37 GMT
126
+ - Thu, 13 Oct 2016 03:23:56 GMT
86
127
  Connection:
87
128
  - keep-alive
88
129
  Content-Type:
@@ -93,5 +134,5 @@ http_interactions:
93
134
  encoding: UTF-8
94
135
  string: '[{"timestamp":<%= minus50 %>,"value":"up"},{"timestamp":<%= minus30 %>,"value":"down"},{"timestamp":<%= now %>,"value":"up"}]'
95
136
  http_version:
96
- recorded_at: Mon, 15 Aug 2016 15:20:37 GMT
137
+ recorded_at: Thu, 13 Oct 2016 03:23:56 GMT
97
138
  recorded_with: VCR 3.0.3
@@ -2,10 +2,10 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/data
5
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '[{"value":"UP","timestamp":1471274437693}]'
8
+ string: '[{"value":"UP","timestamp":1476329030742}]'
9
9
  headers:
10
10
  Accept:
11
11
  - application/json
@@ -41,15 +41,15 @@ http_interactions:
41
41
  Content-Length:
42
42
  - '0'
43
43
  Date:
44
- - Mon, 15 Aug 2016 15:20:37 GMT
44
+ - Thu, 13 Oct 2016 03:23:50 GMT
45
45
  body:
46
46
  encoding: UTF-8
47
47
  string: ''
48
48
  http_version:
49
- recorded_at: Mon, 15 Aug 2016 15:20:37 GMT
49
+ recorded_at: Thu, 13 Oct 2016 03:23:50 GMT
50
50
  - request:
51
51
  method: get
52
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/data/
52
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw/
53
53
  body:
54
54
  encoding: US-ASCII
55
55
  string: ''
@@ -82,7 +82,7 @@ http_interactions:
82
82
  Pragma:
83
83
  - no-cache
84
84
  Date:
85
- - Mon, 15 Aug 2016 15:20:37 GMT
85
+ - Thu, 13 Oct 2016 03:23:50 GMT
86
86
  Connection:
87
87
  - keep-alive
88
88
  Content-Type:
@@ -91,9 +91,9 @@ http_interactions:
91
91
  - '42'
92
92
  body:
93
93
  encoding: UTF-8
94
- string: '[{"timestamp":1471274437693,"value":"up"}]'
94
+ string: '[{"timestamp":1476329030742,"value":"up"}]'
95
95
  http_version:
96
- recorded_at: Mon, 15 Aug 2016 15:20:37 GMT
96
+ recorded_at: Thu, 13 Oct 2016 03:23:50 GMT
97
97
  - request:
98
98
  method: get
99
99
  uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>
@@ -129,16 +129,16 @@ http_interactions:
129
129
  Pragma:
130
130
  - no-cache
131
131
  Date:
132
- - Mon, 15 Aug 2016 15:20:37 GMT
132
+ - Thu, 13 Oct 2016 03:23:50 GMT
133
133
  Connection:
134
134
  - keep-alive
135
135
  Content-Type:
136
136
  - application/json
137
137
  Content-Length:
138
- - '230'
138
+ - '231'
139
139
  body:
140
140
  encoding: UTF-8
141
- string: '{"id":"<%= id %>","dataRetention":7,"type":"availability","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1471274437693,"maxTimestamp":1471274437693}'
141
+ string: '{"id":"<%= id %>","dataRetention":14,"type":"availability","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1476329030742,"maxTimestamp":1476329030742}'
142
142
  http_version:
143
- recorded_at: Mon, 15 Aug 2016 15:20:37 GMT
143
+ recorded_at: Thu, 13 Oct 2016 03:23:50 GMT
144
144
  recorded_with: VCR 3.0.3
@@ -0,0 +1,44 @@
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
+ - identity
14
+ User-Agent:
15
+ - hawkular-client-ruby
16
+ Hawkular-Tenant:
17
+ - <%= type %>metrics_services-vcr-tenant-bb1eb255-4bcb-4dbe-9253-d32fbcfd134c
18
+ Content-Type:
19
+ - application/json
20
+ Host:
21
+ - localhost:8080
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Connection:
28
+ - keep-alive
29
+ X-Powered-By:
30
+ - Undertow/1
31
+ Server:
32
+ - WildFly/10
33
+ Content-Type:
34
+ - application/json
35
+ Content-Length:
36
+ - '133'
37
+ Date:
38
+ - Thu, 13 Oct 2016 03:23:56 GMT
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"MetricsService":"STARTED","Implementation-Version":"0.20.1.Final","Built-From-Git-SHA1":"f23946235446d3425db31d262b47b4f950ddabb3"}'
42
+ http_version:
43
+ recorded_at: Thu, 13 Oct 2016 03:23:56 GMT
44
+ recorded_with: VCR 3.0.3
@@ -39,7 +39,7 @@ http_interactions:
39
39
  Location:
40
40
  - http://localhost:8080/hawkular/metrics/counters/<%= id %>
41
41
  Date:
42
- - Mon, 15 Aug 2016 15:20:37 GMT
42
+ - Thu, 13 Oct 2016 03:23:11 GMT
43
43
  Connection:
44
44
  - keep-alive
45
45
  Content-Length:
@@ -48,10 +48,10 @@ http_interactions:
48
48
  encoding: UTF-8
49
49
  string: ''
50
50
  http_version:
51
- recorded_at: Mon, 15 Aug 2016 15:20:37 GMT
51
+ recorded_at: Thu, 13 Oct 2016 03:23:11 GMT
52
52
  - request:
53
53
  method: post
54
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data
54
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw
55
55
  body:
56
56
  encoding: UTF-8
57
57
  string: '[{"value":110,"timestamp":<%= minus110 %>},{"value":100,"timestamp":<%= minus100 %>},{"value":90,"timestamp":<%= minus90 %>},{"value":80,"timestamp":<%= minus80 %>},{"value":70,"timestamp":<%= minus70 %>},{"value":60,"timestamp":<%= minus60 %>},{"value":50,"timestamp":<%= minus50 %>},{"value":40,"timestamp":<%= minus40 %>},{"value":30,"timestamp":<%= minus30 %>},{"value":20,"timestamp":<%= minus20 %>},{"value":10,"timestamp":<%= minus10 %>}]'
@@ -90,15 +90,15 @@ http_interactions:
90
90
  Content-Length:
91
91
  - '0'
92
92
  Date:
93
- - Mon, 15 Aug 2016 15:20:37 GMT
93
+ - Thu, 13 Oct 2016 03:23:11 GMT
94
94
  body:
95
95
  encoding: UTF-8
96
96
  string: ''
97
97
  http_version:
98
- recorded_at: Mon, 15 Aug 2016 15:20:37 GMT
98
+ recorded_at: Thu, 13 Oct 2016 03:23:11 GMT
99
99
  - request:
100
100
  method: get
101
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/?buckets=5&end=<%= minus5 %>&start=<%= minus105 %>
101
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/stats/?buckets=5&end=<%= minus5 %>&start=<%= minus105 %>
102
102
  body:
103
103
  encoding: US-ASCII
104
104
  string: ''
@@ -131,7 +131,7 @@ http_interactions:
131
131
  Pragma:
132
132
  - no-cache
133
133
  Date:
134
- - Mon, 15 Aug 2016 15:20:37 GMT
134
+ - Thu, 13 Oct 2016 03:23:11 GMT
135
135
  Connection:
136
136
  - keep-alive
137
137
  Content-Type:
@@ -140,12 +140,12 @@ http_interactions:
140
140
  - '645'
141
141
  body:
142
142
  encoding: UTF-8
143
- string: '[{"start":<%= minus105 %>,"end":1471274437518,"min":90.0,"avg":95.0,"median":90.0,"max":100.0,"sum":190.0,"samples":2,"empty":false},{"start":1471274437518,"end":1471274437538,"min":70.0,"avg":75.0,"median":70.0,"max":80.0,"sum":150.0,"samples":2,"empty":false},{"start":1471274437538,"end":1471274437558,"min":50.0,"avg":55.0,"median":50.0,"max":60.0,"sum":110.0,"samples":2,"empty":false},{"start":1471274437558,"end":1471274437578,"min":30.0,"avg":35.0,"median":30.0,"max":40.0,"sum":70.0,"samples":2,"empty":false},{"start":1471274437578,"end":<%= minus5 %>,"min":10.0,"avg":15.0,"median":10.0,"max":20.0,"sum":30.0,"samples":2,"empty":false}]'
143
+ string: '[{"start":<%= minus105 %>,"end":1476328991210,"min":90.0,"avg":95.0,"median":90.0,"max":100.0,"sum":190.0,"samples":2,"empty":false},{"start":1476328991210,"end":1476328991230,"min":70.0,"avg":75.0,"median":70.0,"max":80.0,"sum":150.0,"samples":2,"empty":false},{"start":1476328991230,"end":1476328991250,"min":50.0,"avg":55.0,"median":50.0,"max":60.0,"sum":110.0,"samples":2,"empty":false},{"start":1476328991250,"end":1476328991270,"min":30.0,"avg":35.0,"median":30.0,"max":40.0,"sum":70.0,"samples":2,"empty":false},{"start":1476328991270,"end":<%= minus5 %>,"min":10.0,"avg":15.0,"median":10.0,"max":20.0,"sum":30.0,"samples":2,"empty":false}]'
144
144
  http_version:
145
- recorded_at: Mon, 15 Aug 2016 15:20:37 GMT
145
+ recorded_at: Thu, 13 Oct 2016 03:23:11 GMT
146
146
  - request:
147
147
  method: get
148
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/?buckets=2&end=<%= minus5 %>&start=<%= minus105 %>
148
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/stats/?buckets=2&end=<%= minus5 %>&start=<%= minus105 %>
149
149
  body:
150
150
  encoding: US-ASCII
151
151
  string: ''
@@ -178,7 +178,7 @@ http_interactions:
178
178
  Pragma:
179
179
  - no-cache
180
180
  Date:
181
- - Mon, 15 Aug 2016 15:20:37 GMT
181
+ - Thu, 13 Oct 2016 03:23:11 GMT
182
182
  Connection:
183
183
  - keep-alive
184
184
  Content-Type:
@@ -187,12 +187,12 @@ http_interactions:
187
187
  - '260'
188
188
  body:
189
189
  encoding: UTF-8
190
- string: '[{"start":<%= minus105 %>,"end":1471274437548,"min":60.0,"avg":80.0,"median":80.0,"max":100.0,"sum":400.0,"samples":5,"empty":false},{"start":1471274437548,"end":<%= minus5 %>,"min":10.0,"avg":30.0,"median":30.0,"max":50.0,"sum":150.0,"samples":5,"empty":false}]'
190
+ string: '[{"start":<%= minus105 %>,"end":1476328991240,"min":60.0,"avg":80.0,"median":80.0,"max":100.0,"sum":400.0,"samples":5,"empty":false},{"start":1476328991240,"end":<%= minus5 %>,"min":10.0,"avg":30.0,"median":30.0,"max":50.0,"sum":150.0,"samples":5,"empty":false}]'
191
191
  http_version:
192
- recorded_at: Mon, 15 Aug 2016 15:20:37 GMT
192
+ recorded_at: Thu, 13 Oct 2016 03:23:11 GMT
193
193
  - request:
194
194
  method: get
195
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/?bucketDuration=50ms&end=<%= minus5 %>&start=<%= minus105 %>
195
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/stats/?bucketDuration=50ms&end=<%= minus5 %>&start=<%= minus105 %>
196
196
  body:
197
197
  encoding: US-ASCII
198
198
  string: ''
@@ -225,7 +225,7 @@ http_interactions:
225
225
  Pragma:
226
226
  - no-cache
227
227
  Date:
228
- - Mon, 15 Aug 2016 15:20:37 GMT
228
+ - Thu, 13 Oct 2016 03:23:11 GMT
229
229
  Connection:
230
230
  - keep-alive
231
231
  Content-Type:
@@ -234,7 +234,7 @@ http_interactions:
234
234
  - '260'
235
235
  body:
236
236
  encoding: UTF-8
237
- string: '[{"start":<%= minus105 %>,"end":1471274437548,"min":60.0,"avg":80.0,"median":80.0,"max":100.0,"sum":400.0,"samples":5,"empty":false},{"start":1471274437548,"end":<%= minus5 %>,"min":10.0,"avg":30.0,"median":30.0,"max":50.0,"sum":150.0,"samples":5,"empty":false}]'
237
+ string: '[{"start":<%= minus105 %>,"end":1476328991240,"min":60.0,"avg":80.0,"median":80.0,"max":100.0,"sum":400.0,"samples":5,"empty":false},{"start":1476328991240,"end":<%= minus5 %>,"min":10.0,"avg":30.0,"median":30.0,"max":50.0,"sum":150.0,"samples":5,"empty":false}]'
238
238
  http_version:
239
- recorded_at: Mon, 15 Aug 2016 15:20:37 GMT
239
+ recorded_at: Thu, 13 Oct 2016 03:23:11 GMT
240
240
  recorded_with: VCR 3.0.3
@@ -39,7 +39,7 @@ http_interactions:
39
39
  Location:
40
40
  - http://localhost:8080/hawkular/metrics/counters/<%= id %>
41
41
  Date:
42
- - Mon, 15 Aug 2016 15:20:37 GMT
42
+ - Thu, 13 Oct 2016 03:23:07 GMT
43
43
  Connection:
44
44
  - keep-alive
45
45
  Content-Length:
@@ -48,10 +48,10 @@ http_interactions:
48
48
  encoding: UTF-8
49
49
  string: ''
50
50
  http_version:
51
- recorded_at: Mon, 15 Aug 2016 15:20:37 GMT
51
+ recorded_at: Thu, 13 Oct 2016 03:23:07 GMT
52
52
  - request:
53
53
  method: post
54
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data
54
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw
55
55
  body:
56
56
  encoding: UTF-8
57
57
  string: '[{"value":1,"timestamp":<%= minus30 %>},{"value":2,"timestamp":<%= minus20 %>},{"value":3,"timestamp":<%= minus10 %>}]'
@@ -90,15 +90,15 @@ http_interactions:
90
90
  Content-Length:
91
91
  - '0'
92
92
  Date:
93
- - Mon, 15 Aug 2016 15:20:37 GMT
93
+ - Thu, 13 Oct 2016 03:23:07 GMT
94
94
  body:
95
95
  encoding: UTF-8
96
96
  string: ''
97
97
  http_version:
98
- recorded_at: Mon, 15 Aug 2016 15:20:37 GMT
98
+ recorded_at: Thu, 13 Oct 2016 03:23:07 GMT
99
99
  - request:
100
100
  method: get
101
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/
101
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/
102
102
  body:
103
103
  encoding: US-ASCII
104
104
  string: ''
@@ -131,7 +131,7 @@ http_interactions:
131
131
  Pragma:
132
132
  - no-cache
133
133
  Date:
134
- - Mon, 15 Aug 2016 15:20:37 GMT
134
+ - Thu, 13 Oct 2016 03:23:07 GMT
135
135
  Connection:
136
136
  - keep-alive
137
137
  Content-Type:
@@ -142,13 +142,13 @@ http_interactions:
142
142
  encoding: UTF-8
143
143
  string: '[{"timestamp":<%= minus10 %>,"value":3},{"timestamp":<%= minus20 %>,"value":2},{"timestamp":<%= minus30 %>,"value":1}]'
144
144
  http_version:
145
- recorded_at: Mon, 15 Aug 2016 15:20:37 GMT
145
+ recorded_at: Thu, 13 Oct 2016 03:23:07 GMT
146
146
  - request:
147
147
  method: post
148
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data
148
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw
149
149
  body:
150
150
  encoding: UTF-8
151
- string: '[{"value":4,"timestamp":1471274437576}]'
151
+ string: '[{"value":4,"timestamp":1476328987926}]'
152
152
  headers:
153
153
  Accept:
154
154
  - application/json
@@ -184,15 +184,15 @@ http_interactions:
184
184
  Content-Length:
185
185
  - '0'
186
186
  Date:
187
- - Mon, 15 Aug 2016 15:20:37 GMT
187
+ - Thu, 13 Oct 2016 03:23:07 GMT
188
188
  body:
189
189
  encoding: UTF-8
190
190
  string: ''
191
191
  http_version:
192
- recorded_at: Mon, 15 Aug 2016 15:20:37 GMT
192
+ recorded_at: Thu, 13 Oct 2016 03:23:07 GMT
193
193
  - request:
194
194
  method: get
195
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/
195
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/
196
196
  body:
197
197
  encoding: US-ASCII
198
198
  string: ''
@@ -225,7 +225,7 @@ http_interactions:
225
225
  Pragma:
226
226
  - no-cache
227
227
  Date:
228
- - Mon, 15 Aug 2016 15:20:37 GMT
228
+ - Thu, 13 Oct 2016 03:23:07 GMT
229
229
  Connection:
230
230
  - keep-alive
231
231
  Content-Type:
@@ -234,12 +234,12 @@ http_interactions:
234
234
  - '153'
235
235
  body:
236
236
  encoding: UTF-8
237
- string: '[{"timestamp":1471274437576,"value":4},{"timestamp":<%= minus10 %>,"value":3},{"timestamp":<%= minus20 %>,"value":2},{"timestamp":<%= minus30 %>,"value":1}]'
237
+ string: '[{"timestamp":1476328987926,"value":4},{"timestamp":<%= minus10 %>,"value":3},{"timestamp":<%= minus20 %>,"value":2},{"timestamp":<%= minus30 %>,"value":1}]'
238
238
  http_version:
239
- recorded_at: Mon, 15 Aug 2016 15:20:37 GMT
239
+ recorded_at: Thu, 13 Oct 2016 03:23:07 GMT
240
240
  - request:
241
241
  method: get
242
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/?limit=1&order=DESC
242
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/?limit=1&order=DESC
243
243
  body:
244
244
  encoding: US-ASCII
245
245
  string: ''
@@ -272,7 +272,7 @@ http_interactions:
272
272
  Pragma:
273
273
  - no-cache
274
274
  Date:
275
- - Mon, 15 Aug 2016 15:20:37 GMT
275
+ - Thu, 13 Oct 2016 03:23:07 GMT
276
276
  Connection:
277
277
  - keep-alive
278
278
  Content-Type:
@@ -281,12 +281,12 @@ http_interactions:
281
281
  - '39'
282
282
  body:
283
283
  encoding: UTF-8
284
- string: '[{"timestamp":1471274437576,"value":4}]'
284
+ string: '[{"timestamp":1476328987926,"value":4}]'
285
285
  http_version:
286
- recorded_at: Mon, 15 Aug 2016 15:20:37 GMT
286
+ recorded_at: Thu, 13 Oct 2016 03:23:07 GMT
287
287
  - request:
288
288
  method: get
289
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/?end=<%= minus4h %>&start=<%= minus8h %>
289
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/?end=<%= minus4h %>&start=<%= minus8h %>
290
290
  body:
291
291
  encoding: US-ASCII
292
292
  string: ''
@@ -319,10 +319,10 @@ http_interactions:
319
319
  Pragma:
320
320
  - no-cache
321
321
  Date:
322
- - Mon, 15 Aug 2016 15:20:37 GMT
322
+ - Thu, 13 Oct 2016 03:23:07 GMT
323
323
  body:
324
324
  encoding: UTF-8
325
325
  string: ''
326
326
  http_version:
327
- recorded_at: Mon, 15 Aug 2016 15:20:37 GMT
327
+ recorded_at: Thu, 13 Oct 2016 03:23:07 GMT
328
328
  recorded_with: VCR 3.0.3