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
@@ -2,10 +2,11 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/raw
5
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/events
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '[{"value":1,"timestamp":<%= minus30 %>},{"value":2,"timestamp":<%= minus20 %>},{"value":3,"timestamp":<%= start %>}]'
8
+ string: '{"id":"<%= id %>","ctime":1475000238000,"category":"MyCategory","text":"Li
9
+ la lu","context":{"message":"This is a test"},"tags":{"tag_name":"tag-value"}}'
9
10
  headers:
10
11
  Accept:
11
12
  - application/json
@@ -14,11 +15,11 @@ http_interactions:
14
15
  User-Agent:
15
16
  - hawkular-client-ruby
16
17
  Hawkular-Tenant:
17
- - <%= vcr_test_tenant %>
18
+ - hawkular
18
19
  Content-Type:
19
20
  - application/json
20
21
  Content-Length:
21
- - '115'
22
+ - '165'
22
23
  Host:
23
24
  - localhost:8080
24
25
  response:
@@ -28,8 +29,6 @@ http_interactions:
28
29
  headers:
29
30
  Expires:
30
31
  - '0'
31
- Connection:
32
- - keep-alive
33
32
  Cache-Control:
34
33
  - no-cache, no-store, must-revalidate
35
34
  X-Powered-By:
@@ -38,18 +37,23 @@ http_interactions:
38
37
  - WildFly/10
39
38
  Pragma:
40
39
  - no-cache
41
- Content-Length:
42
- - '0'
43
40
  Date:
44
- - Mon, 15 Aug 2016 15:20:38 GMT
41
+ - Tue, 27 Sep 2016 18:17:18 GMT
42
+ Connection:
43
+ - keep-alive
44
+ Content-Type:
45
+ - application/json
46
+ Content-Length:
47
+ - '229'
45
48
  body:
46
49
  encoding: UTF-8
47
- string: ''
50
+ string: '{"eventType":"EVENT","tenantId":"hawkular","id":"<%= id %>","ctime":1475000238000,"dataSource":"_none_","category":"MyCategory","text":"Li
51
+ la lu","context":{"message":"This is a test"},"tags":{"tag_name":"tag-value"}}'
48
52
  http_version:
49
- recorded_at: Mon, 15 Aug 2016 15:20:38 GMT
53
+ recorded_at: Tue, 27 Sep 2016 18:17:18 GMT
50
54
  - request:
51
- method: get
52
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/gauges/<%= id %>/periods?op=lte&start=<%= before4h %>&threshold=4
55
+ method: delete
56
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/events/<%= id %>
53
57
  body:
54
58
  encoding: US-ASCII
55
59
  string: ''
@@ -61,7 +65,7 @@ http_interactions:
61
65
  User-Agent:
62
66
  - hawkular-client-ruby
63
67
  Hawkular-Tenant:
64
- - <%= vcr_test_tenant %>
68
+ - hawkular
65
69
  Content-Type:
66
70
  - application/json
67
71
  Host:
@@ -82,16 +86,16 @@ http_interactions:
82
86
  Pragma:
83
87
  - no-cache
84
88
  Date:
85
- - Mon, 15 Aug 2016 15:20:38 GMT
89
+ - Tue, 27 Sep 2016 18:17:18 GMT
86
90
  Connection:
87
91
  - keep-alive
88
92
  Content-Type:
89
93
  - application/json
90
94
  Content-Length:
91
- - '31'
95
+ - '0'
92
96
  body:
93
97
  encoding: UTF-8
94
- string: "[[<%= minus30 %>,<%= start %>]]"
98
+ string: ''
95
99
  http_version:
96
- recorded_at: Mon, 15 Aug 2016 15:20:38 GMT
100
+ recorded_at: Tue, 27 Sep 2016 18:17:18 GMT
97
101
  recorded_with: VCR 3.0.3
@@ -2,10 +2,11 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw
5
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/events
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '[{"value":"UP","timestamp":1471274438334}]'
8
+ string: '{"id":"<%= id %>","ctime":1475000238000,"category":"MyCategory","text":"Li
9
+ la lu","context":{"message":"This is a test"},"tags":{"tag_name":"tag-value"}}'
9
10
  headers:
10
11
  Accept:
11
12
  - application/json
@@ -14,11 +15,11 @@ http_interactions:
14
15
  User-Agent:
15
16
  - hawkular-client-ruby
16
17
  Hawkular-Tenant:
17
- - <%= vcr_test_tenant %>
18
+ - hawkular
18
19
  Content-Type:
19
20
  - application/json
20
21
  Content-Length:
21
- - '42'
22
+ - '165'
22
23
  Host:
23
24
  - localhost:8080
24
25
  response:
@@ -28,8 +29,6 @@ http_interactions:
28
29
  headers:
29
30
  Expires:
30
31
  - '0'
31
- Connection:
32
- - keep-alive
33
32
  Cache-Control:
34
33
  - no-cache, no-store, must-revalidate
35
34
  X-Powered-By:
@@ -38,18 +37,23 @@ http_interactions:
38
37
  - WildFly/10
39
38
  Pragma:
40
39
  - no-cache
41
- Content-Length:
42
- - '0'
43
40
  Date:
44
- - Mon, 15 Aug 2016 15:20:38 GMT
41
+ - Tue, 27 Sep 2016 18:17:18 GMT
42
+ Connection:
43
+ - keep-alive
44
+ Content-Type:
45
+ - application/json
46
+ Content-Length:
47
+ - '229'
45
48
  body:
46
49
  encoding: UTF-8
47
- string: ''
50
+ string: '{"eventType":"EVENT","tenantId":"hawkular","id":"<%= id %>","ctime":1475000238000,"dataSource":"_none_","category":"MyCategory","text":"Li
51
+ la lu","context":{"message":"This is a test"},"tags":{"tag_name":"tag-value"}}'
48
52
  http_version:
49
- recorded_at: Mon, 15 Aug 2016 15:20:38 GMT
53
+ recorded_at: Tue, 27 Sep 2016 18:17:18 GMT
50
54
  - request:
51
- method: get
52
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw/
55
+ method: delete
56
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/events/<%= id %>
53
57
  body:
54
58
  encoding: US-ASCII
55
59
  string: ''
@@ -61,7 +65,7 @@ http_interactions:
61
65
  User-Agent:
62
66
  - hawkular-client-ruby
63
67
  Hawkular-Tenant:
64
- - <%= vcr_test_tenant %>
68
+ - hawkular
65
69
  Content-Type:
66
70
  - application/json
67
71
  Host:
@@ -82,21 +86,21 @@ http_interactions:
82
86
  Pragma:
83
87
  - no-cache
84
88
  Date:
85
- - Mon, 15 Aug 2016 15:20:38 GMT
89
+ - Tue, 27 Sep 2016 18:17:18 GMT
86
90
  Connection:
87
91
  - keep-alive
88
92
  Content-Type:
89
93
  - application/json
90
94
  Content-Length:
91
- - '42'
95
+ - '0'
92
96
  body:
93
97
  encoding: UTF-8
94
- string: '[{"timestamp":1471274438334,"value":"up"}]'
98
+ string: ''
95
99
  http_version:
96
- recorded_at: Mon, 15 Aug 2016 15:20:38 GMT
100
+ recorded_at: Tue, 27 Sep 2016 18:17:18 GMT
97
101
  - request:
98
102
  method: get
99
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>
103
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/events?eventIds=<%= id %>&thin=true
100
104
  body:
101
105
  encoding: US-ASCII
102
106
  string: ''
@@ -108,7 +112,7 @@ http_interactions:
108
112
  User-Agent:
109
113
  - hawkular-client-ruby
110
114
  Hawkular-Tenant:
111
- - <%= vcr_test_tenant %>
115
+ - hawkular
112
116
  Content-Type:
113
117
  - application/json
114
118
  Host:
@@ -129,16 +133,16 @@ http_interactions:
129
133
  Pragma:
130
134
  - no-cache
131
135
  Date:
132
- - Mon, 15 Aug 2016 15:20:38 GMT
136
+ - Tue, 27 Sep 2016 18:17:18 GMT
133
137
  Connection:
134
138
  - keep-alive
135
139
  Content-Type:
136
140
  - application/json
137
141
  Content-Length:
138
- - '228'
142
+ - '2'
139
143
  body:
140
144
  encoding: UTF-8
141
- string: '{"id":"<%= id %>","dataRetention":7,"type":"availability","tenantId":"<%= vcr_test_tenant %>","minTimestamp":1471274438334,"maxTimestamp":1471274438334}'
145
+ string: "[]"
142
146
  http_version:
143
- recorded_at: Mon, 15 Aug 2016 15:20:38 GMT
147
+ recorded_at: Tue, 27 Sep 2016 18:17:18 GMT
144
148
  recorded_with: VCR 3.0.3
@@ -0,0 +1,91 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/events?thin=true
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
+ - hawkular
18
+ Content-Type:
19
+ - application/json
20
+ Host:
21
+ - localhost:8080
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
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
+ Date:
38
+ - Fri, 07 Oct 2016 15:36:35 GMT
39
+ X-Total-Count:
40
+ - '24'
41
+ Connection:
42
+ - keep-alive
43
+ Content-Type:
44
+ - application/json
45
+ Content-Length:
46
+ - '9827'
47
+ Link:
48
+ - <http://localhost:8080/hawkular/alerts/events?thin=true>; rel="current", <http://localhost:8080/hawkular/alerts/events?thin=true&page=0>;
49
+ rel="last"
50
+ body:
51
+ encoding: UTF-8
52
+ string: '[{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-12","ctime":1475854595000,"dataSource":"_none_","category":"general-category","text":"some
53
+ text for this event"},{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-11","ctime":1475854595000,"dataSource":"_none_","category":"general-category","text":"some
54
+ text for this event"},{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-10","ctime":1475854595000,"dataSource":"_none_","category":"general-category","text":"some
55
+ text for this event"},{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-09","ctime":1475854595000,"dataSource":"_none_","category":"general-category","text":"some
56
+ text for this event"},{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-08","ctime":1475854595000,"dataSource":"_none_","category":"general-category","text":"some
57
+ text for this event"},{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-07","ctime":1475854595000,"dataSource":"_none_","category":"my-category-01","text":"some
58
+ text for this event"},{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-06","ctime":1475854595000,"dataSource":"_none_","category":"general-category","text":"some
59
+ text for this event"},{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-05","ctime":1475854595000,"dataSource":"_none_","category":"my-category-02","text":"some
60
+ text for this event"},{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-04","ctime":1475854595000,"dataSource":"_none_","category":"general-category","text":"some
61
+ text for this event"},{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-03","ctime":1475854595000,"dataSource":"_none_","category":"my-category-01","text":"some
62
+ text for this event"},{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-02","ctime":1475854595000,"dataSource":"_none_","category":"my-category-01","text":"some
63
+ text for this event"},{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-01","ctime":1475854595000,"dataSource":"_none_","category":"general-category","text":"some
64
+ text for this event"},{"eventType":"ALERT","tenantId":"hawkular","id":"hello-world-trigger-1475854594703-00be41f3-564e-4947-9b3c-47ae155b957f","ctime":1475854594703,"dataSource":"_none_","dataId":"hello-world-trigger","category":"ALERT","text":"A
65
+ mandatory Hello World Trigger","trigger":{"tenantId":"hawkular","id":"hello-world-trigger","name":"Hello
66
+ World Trigger","description":"A mandatory Hello World Trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"severity":null,"status":"OPEN"},{"eventType":"ALERT","tenantId":"hawkular","id":"hello-world-trigger-1475854314589-0865e142-fe65-4a21-94bc-78099abad518","ctime":1475854314589,"dataSource":"_none_","dataId":"hello-world-trigger","category":"ALERT","text":"A
67
+ mandatory Hello World Trigger","trigger":{"tenantId":"hawkular","id":"hello-world-trigger","name":"Hello
68
+ World Trigger","description":"A mandatory Hello World Trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"severity":null,"status":"OPEN"},{"eventType":"ALERT","tenantId":"hawkular","id":"hello-world-trigger-1475854248579-8e6ddbb0-f84d-410b-b330-0e6e3bf22606","ctime":1475854248579,"dataSource":"_none_","dataId":"hello-world-trigger","category":"ALERT","text":"A
69
+ mandatory Hello World Trigger","trigger":{"tenantId":"hawkular","id":"hello-world-trigger","name":"Hello
70
+ World Trigger","description":"A mandatory Hello World Trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"severity":null,"status":"OPEN"},{"eventType":"ALERT","tenantId":"hawkular","id":"hello-world-trigger-1475853996414-45f549ed-8446-4ea6-b9c5-d9ea8b198f8e","ctime":1475853996414,"dataSource":"_none_","dataId":"hello-world-trigger","category":"ALERT","text":"A
71
+ mandatory Hello World Trigger","trigger":{"tenantId":"hawkular","id":"hello-world-trigger","name":"Hello
72
+ World Trigger","description":"A mandatory Hello World Trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"severity":null,"status":"OPEN"},{"eventType":"ALERT","tenantId":"hawkular","id":"hello-world-trigger-1475851553407-cfb818f5-15cf-4b74-b9e4-327d2e7e00d4","ctime":1475851553407,"dataSource":"_none_","dataId":"hello-world-trigger","category":"ALERT","text":"A
73
+ mandatory Hello World Trigger","trigger":{"tenantId":"hawkular","id":"hello-world-trigger","name":"Hello
74
+ World Trigger","description":"A mandatory Hello World Trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"severity":null,"status":"OPEN"},{"eventType":"ALERT","tenantId":"hawkular","id":"hello-world-trigger-1475850883309-de9cf48d-519e-48be-b576-516901da3b18","ctime":1475850883309,"dataSource":"_none_","dataId":"hello-world-trigger","category":"ALERT","text":"A
75
+ mandatory Hello World Trigger","trigger":{"tenantId":"hawkular","id":"hello-world-trigger","name":"Hello
76
+ World Trigger","description":"A mandatory Hello World Trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"severity":null,"status":"OPEN"},{"eventType":"ALERT","tenantId":"hawkular","id":"a-trigger-1475854594704-c90d2b71-6a15-4f7c-8cf8-38d5525bb694","ctime":1475854594704,"dataSource":"_none_","dataId":"a-trigger","category":"ALERT","text":"Just
77
+ a trigger","trigger":{"tenantId":"hawkular","id":"a-trigger","name":"A trigger
78
+ name","description":"Just a trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"severity":null,"status":"OPEN"},{"eventType":"ALERT","tenantId":"hawkular","id":"a-trigger-1475854314589-1aae54bf-f4d4-44de-a111-25dc699730cd","ctime":1475854314589,"dataSource":"_none_","dataId":"a-trigger","category":"ALERT","text":"Just
79
+ a trigger","trigger":{"tenantId":"hawkular","id":"a-trigger","name":"A trigger
80
+ name","description":"Just a trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"severity":null,"status":"OPEN"},{"eventType":"ALERT","tenantId":"hawkular","id":"a-trigger-1475854248579-6ac8cd80-9cea-4208-aed6-27019bc0f2af","ctime":1475854248579,"dataSource":"_none_","dataId":"a-trigger","category":"ALERT","text":"Just
81
+ a trigger","trigger":{"tenantId":"hawkular","id":"a-trigger","name":"A trigger
82
+ name","description":"Just a trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"severity":null,"status":"OPEN"},{"eventType":"ALERT","tenantId":"hawkular","id":"a-trigger-1475853996415-a2309fad-d638-4c3c-9a50-b175495f9f3c","ctime":1475853996415,"dataSource":"_none_","dataId":"a-trigger","category":"ALERT","text":"Just
83
+ a trigger","trigger":{"tenantId":"hawkular","id":"a-trigger","name":"A trigger
84
+ name","description":"Just a trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"severity":null,"status":"OPEN"},{"eventType":"ALERT","tenantId":"hawkular","id":"a-trigger-1475851553407-047dd705-7139-4c7c-8ad8-3ec032081165","ctime":1475851553407,"dataSource":"_none_","dataId":"a-trigger","category":"ALERT","text":"Just
85
+ a trigger","trigger":{"tenantId":"hawkular","id":"a-trigger","name":"A trigger
86
+ name","description":"Just a trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"severity":null,"status":"OPEN"},{"eventType":"ALERT","tenantId":"hawkular","id":"a-trigger-1475850883309-3b3e2129-1ea3-49ab-b5fd-3f64c4186d33","ctime":1475850883309,"dataSource":"_none_","dataId":"a-trigger","category":"ALERT","text":"Just
87
+ a trigger","trigger":{"tenantId":"hawkular","id":"a-trigger","name":"A trigger
88
+ name","description":"Just a trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"severity":null,"status":"OPEN"}]'
89
+ http_version:
90
+ recorded_at: Fri, 07 Oct 2016 15:36:35 GMT
91
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,60 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/events?categories=my-category-01,my-category-02
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
+ - hawkular
18
+ Content-Type:
19
+ - application/json
20
+ Host:
21
+ - localhost:8080
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
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
+ Date:
38
+ - Tue, 27 Sep 2016 18:17:17 GMT
39
+ X-Total-Count:
40
+ - '4'
41
+ Connection:
42
+ - keep-alive
43
+ Content-Type:
44
+ - application/json
45
+ Content-Length:
46
+ - '677'
47
+ Link:
48
+ - <http://localhost:8080/hawkular/alerts/events?categories=my-category-01,my-category-02>;
49
+ rel="current", <http://localhost:8080/hawkular/alerts/events?categories=my-category-01,my-category-02&page=0>;
50
+ rel="last"
51
+ body:
52
+ encoding: UTF-8
53
+ string: '[{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-07","ctime":1475000237000,"dataSource":"_none_","category":"my-category-01","text":"some
54
+ text for this event"},{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-05","ctime":1475000237000,"dataSource":"_none_","category":"my-category-02","text":"some
55
+ text for this event"},{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-03","ctime":1475000237000,"dataSource":"_none_","category":"my-category-01","text":"some
56
+ text for this event"},{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-02","ctime":1475000237000,"dataSource":"_none_","category":"my-category-01","text":"some
57
+ text for this event"}]'
58
+ http_version:
59
+ recorded_at: Tue, 27 Sep 2016 18:17:17 GMT
60
+ recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/events?endTime=1000&startTime=0
5
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/events?endTime=1000&startTime=0
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -10,18 +10,20 @@ http_interactions:
10
10
  Accept:
11
11
  - application/json
12
12
  Accept-Encoding:
13
- - gzip, deflate
13
+ - identity
14
+ User-Agent:
15
+ - hawkular-client-ruby
16
+ Hawkular-Tenant:
17
+ - hawkular
14
18
  Content-Type:
15
19
  - application/json
16
- User-Agent:
17
- - Ruby
20
+ Host:
21
+ - localhost:8080
18
22
  response:
19
23
  status:
20
24
  code: 200
21
25
  message: OK
22
26
  headers:
23
- Content-Encoding:
24
- - gzip
25
27
  Expires:
26
28
  - '0'
27
29
  Cache-Control:
@@ -33,17 +35,16 @@ http_interactions:
33
35
  Pragma:
34
36
  - no-cache
35
37
  Date:
36
- - Thu, 03 Mar 2016 17:12:02 GMT
38
+ - Tue, 27 Sep 2016 18:17:17 GMT
37
39
  Connection:
38
40
  - keep-alive
39
41
  Content-Type:
40
42
  - application/json
41
43
  Content-Length:
42
- - '22'
44
+ - '2'
43
45
  body:
44
- encoding: ASCII-8BIT
45
- string: !binary |-
46
- H4sIAAAAAAAAAIuOBQApu0wNAgAAAA==
46
+ encoding: UTF-8
47
+ string: "[]"
47
48
  http_version:
48
- recorded_at: Thu, 03 Mar 2016 17:12:02 GMT
49
- recorded_with: VCR 3.0.1
49
+ recorded_at: Tue, 27 Sep 2016 18:17:18 GMT
50
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,615 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/events
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"id":"my-event-01","ctime":1475000237000,"category":"general-category","text":"some
9
+ text for this event"}'
10
+ headers:
11
+ Accept:
12
+ - application/json
13
+ Accept-Encoding:
14
+ - identity
15
+ User-Agent:
16
+ - hawkular-client-ruby
17
+ Hawkular-Tenant:
18
+ - hawkular
19
+ Content-Type:
20
+ - application/json
21
+ Content-Length:
22
+ - '106'
23
+ Host:
24
+ - localhost:8080
25
+ response:
26
+ status:
27
+ code: 200
28
+ message: OK
29
+ headers:
30
+ Expires:
31
+ - '0'
32
+ Cache-Control:
33
+ - no-cache, no-store, must-revalidate
34
+ X-Powered-By:
35
+ - Undertow/1
36
+ Server:
37
+ - WildFly/10
38
+ Pragma:
39
+ - no-cache
40
+ Date:
41
+ - Tue, 27 Sep 2016 18:17:17 GMT
42
+ Connection:
43
+ - keep-alive
44
+ Content-Type:
45
+ - application/json
46
+ Content-Length:
47
+ - '170'
48
+ body:
49
+ encoding: UTF-8
50
+ string: '{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-01","ctime":1475000237000,"dataSource":"_none_","category":"general-category","text":"some
51
+ text for this event"}'
52
+ http_version:
53
+ recorded_at: Tue, 27 Sep 2016 18:17:17 GMT
54
+ - request:
55
+ method: post
56
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/events
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"id":"my-event-02","ctime":1475000237000,"category":"my-category-01","text":"some
60
+ text for this event"}'
61
+ headers:
62
+ Accept:
63
+ - application/json
64
+ Accept-Encoding:
65
+ - identity
66
+ User-Agent:
67
+ - hawkular-client-ruby
68
+ Hawkular-Tenant:
69
+ - hawkular
70
+ Content-Type:
71
+ - application/json
72
+ Content-Length:
73
+ - '104'
74
+ Host:
75
+ - localhost:8080
76
+ response:
77
+ status:
78
+ code: 200
79
+ message: OK
80
+ headers:
81
+ Expires:
82
+ - '0'
83
+ Cache-Control:
84
+ - no-cache, no-store, must-revalidate
85
+ X-Powered-By:
86
+ - Undertow/1
87
+ Server:
88
+ - WildFly/10
89
+ Pragma:
90
+ - no-cache
91
+ Date:
92
+ - Tue, 27 Sep 2016 18:17:17 GMT
93
+ Connection:
94
+ - keep-alive
95
+ Content-Type:
96
+ - application/json
97
+ Content-Length:
98
+ - '168'
99
+ body:
100
+ encoding: UTF-8
101
+ string: '{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-02","ctime":1475000237000,"dataSource":"_none_","category":"my-category-01","text":"some
102
+ text for this event"}'
103
+ http_version:
104
+ recorded_at: Tue, 27 Sep 2016 18:17:17 GMT
105
+ - request:
106
+ method: post
107
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/events
108
+ body:
109
+ encoding: UTF-8
110
+ string: '{"id":"my-event-03","ctime":1475000237000,"category":"my-category-01","text":"some
111
+ text for this event"}'
112
+ headers:
113
+ Accept:
114
+ - application/json
115
+ Accept-Encoding:
116
+ - identity
117
+ User-Agent:
118
+ - hawkular-client-ruby
119
+ Hawkular-Tenant:
120
+ - hawkular
121
+ Content-Type:
122
+ - application/json
123
+ Content-Length:
124
+ - '104'
125
+ Host:
126
+ - localhost:8080
127
+ response:
128
+ status:
129
+ code: 200
130
+ message: OK
131
+ headers:
132
+ Expires:
133
+ - '0'
134
+ Cache-Control:
135
+ - no-cache, no-store, must-revalidate
136
+ X-Powered-By:
137
+ - Undertow/1
138
+ Server:
139
+ - WildFly/10
140
+ Pragma:
141
+ - no-cache
142
+ Date:
143
+ - Tue, 27 Sep 2016 18:17:17 GMT
144
+ Connection:
145
+ - keep-alive
146
+ Content-Type:
147
+ - application/json
148
+ Content-Length:
149
+ - '168'
150
+ body:
151
+ encoding: UTF-8
152
+ string: '{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-03","ctime":1475000237000,"dataSource":"_none_","category":"my-category-01","text":"some
153
+ text for this event"}'
154
+ http_version:
155
+ recorded_at: Tue, 27 Sep 2016 18:17:17 GMT
156
+ - request:
157
+ method: post
158
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/events
159
+ body:
160
+ encoding: UTF-8
161
+ string: '{"id":"my-event-04","ctime":1475000237000,"category":"general-category","text":"some
162
+ text for this event"}'
163
+ headers:
164
+ Accept:
165
+ - application/json
166
+ Accept-Encoding:
167
+ - identity
168
+ User-Agent:
169
+ - hawkular-client-ruby
170
+ Hawkular-Tenant:
171
+ - hawkular
172
+ Content-Type:
173
+ - application/json
174
+ Content-Length:
175
+ - '106'
176
+ Host:
177
+ - localhost:8080
178
+ response:
179
+ status:
180
+ code: 200
181
+ message: OK
182
+ headers:
183
+ Expires:
184
+ - '0'
185
+ Cache-Control:
186
+ - no-cache, no-store, must-revalidate
187
+ X-Powered-By:
188
+ - Undertow/1
189
+ Server:
190
+ - WildFly/10
191
+ Pragma:
192
+ - no-cache
193
+ Date:
194
+ - Tue, 27 Sep 2016 18:17:17 GMT
195
+ Connection:
196
+ - keep-alive
197
+ Content-Type:
198
+ - application/json
199
+ Content-Length:
200
+ - '170'
201
+ body:
202
+ encoding: UTF-8
203
+ string: '{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-04","ctime":1475000237000,"dataSource":"_none_","category":"general-category","text":"some
204
+ text for this event"}'
205
+ http_version:
206
+ recorded_at: Tue, 27 Sep 2016 18:17:17 GMT
207
+ - request:
208
+ method: post
209
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/events
210
+ body:
211
+ encoding: UTF-8
212
+ string: '{"id":"my-event-05","ctime":1475000237000,"category":"my-category-02","text":"some
213
+ text for this event"}'
214
+ headers:
215
+ Accept:
216
+ - application/json
217
+ Accept-Encoding:
218
+ - identity
219
+ User-Agent:
220
+ - hawkular-client-ruby
221
+ Hawkular-Tenant:
222
+ - hawkular
223
+ Content-Type:
224
+ - application/json
225
+ Content-Length:
226
+ - '104'
227
+ Host:
228
+ - localhost:8080
229
+ response:
230
+ status:
231
+ code: 200
232
+ message: OK
233
+ headers:
234
+ Expires:
235
+ - '0'
236
+ Cache-Control:
237
+ - no-cache, no-store, must-revalidate
238
+ X-Powered-By:
239
+ - Undertow/1
240
+ Server:
241
+ - WildFly/10
242
+ Pragma:
243
+ - no-cache
244
+ Date:
245
+ - Tue, 27 Sep 2016 18:17:17 GMT
246
+ Connection:
247
+ - keep-alive
248
+ Content-Type:
249
+ - application/json
250
+ Content-Length:
251
+ - '168'
252
+ body:
253
+ encoding: UTF-8
254
+ string: '{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-05","ctime":1475000237000,"dataSource":"_none_","category":"my-category-02","text":"some
255
+ text for this event"}'
256
+ http_version:
257
+ recorded_at: Tue, 27 Sep 2016 18:17:17 GMT
258
+ - request:
259
+ method: post
260
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/events
261
+ body:
262
+ encoding: UTF-8
263
+ string: '{"id":"my-event-06","ctime":1475000237000,"category":"general-category","text":"some
264
+ text for this event"}'
265
+ headers:
266
+ Accept:
267
+ - application/json
268
+ Accept-Encoding:
269
+ - identity
270
+ User-Agent:
271
+ - hawkular-client-ruby
272
+ Hawkular-Tenant:
273
+ - hawkular
274
+ Content-Type:
275
+ - application/json
276
+ Content-Length:
277
+ - '106'
278
+ Host:
279
+ - localhost:8080
280
+ response:
281
+ status:
282
+ code: 200
283
+ message: OK
284
+ headers:
285
+ Expires:
286
+ - '0'
287
+ Cache-Control:
288
+ - no-cache, no-store, must-revalidate
289
+ X-Powered-By:
290
+ - Undertow/1
291
+ Server:
292
+ - WildFly/10
293
+ Pragma:
294
+ - no-cache
295
+ Date:
296
+ - Tue, 27 Sep 2016 18:17:17 GMT
297
+ Connection:
298
+ - keep-alive
299
+ Content-Type:
300
+ - application/json
301
+ Content-Length:
302
+ - '170'
303
+ body:
304
+ encoding: UTF-8
305
+ string: '{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-06","ctime":1475000237000,"dataSource":"_none_","category":"general-category","text":"some
306
+ text for this event"}'
307
+ http_version:
308
+ recorded_at: Tue, 27 Sep 2016 18:17:17 GMT
309
+ - request:
310
+ method: post
311
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/events
312
+ body:
313
+ encoding: UTF-8
314
+ string: '{"id":"my-event-07","ctime":1475000237000,"category":"my-category-01","text":"some
315
+ text for this event"}'
316
+ headers:
317
+ Accept:
318
+ - application/json
319
+ Accept-Encoding:
320
+ - identity
321
+ User-Agent:
322
+ - hawkular-client-ruby
323
+ Hawkular-Tenant:
324
+ - hawkular
325
+ Content-Type:
326
+ - application/json
327
+ Content-Length:
328
+ - '104'
329
+ Host:
330
+ - localhost:8080
331
+ response:
332
+ status:
333
+ code: 200
334
+ message: OK
335
+ headers:
336
+ Expires:
337
+ - '0'
338
+ Cache-Control:
339
+ - no-cache, no-store, must-revalidate
340
+ X-Powered-By:
341
+ - Undertow/1
342
+ Server:
343
+ - WildFly/10
344
+ Pragma:
345
+ - no-cache
346
+ Date:
347
+ - Tue, 27 Sep 2016 18:17:17 GMT
348
+ Connection:
349
+ - keep-alive
350
+ Content-Type:
351
+ - application/json
352
+ Content-Length:
353
+ - '168'
354
+ body:
355
+ encoding: UTF-8
356
+ string: '{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-07","ctime":1475000237000,"dataSource":"_none_","category":"my-category-01","text":"some
357
+ text for this event"}'
358
+ http_version:
359
+ recorded_at: Tue, 27 Sep 2016 18:17:17 GMT
360
+ - request:
361
+ method: post
362
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/events
363
+ body:
364
+ encoding: UTF-8
365
+ string: '{"id":"my-event-08","ctime":1475000237000,"category":"general-category","text":"some
366
+ text for this event"}'
367
+ headers:
368
+ Accept:
369
+ - application/json
370
+ Accept-Encoding:
371
+ - identity
372
+ User-Agent:
373
+ - hawkular-client-ruby
374
+ Hawkular-Tenant:
375
+ - hawkular
376
+ Content-Type:
377
+ - application/json
378
+ Content-Length:
379
+ - '106'
380
+ Host:
381
+ - localhost:8080
382
+ response:
383
+ status:
384
+ code: 200
385
+ message: OK
386
+ headers:
387
+ Expires:
388
+ - '0'
389
+ Cache-Control:
390
+ - no-cache, no-store, must-revalidate
391
+ X-Powered-By:
392
+ - Undertow/1
393
+ Server:
394
+ - WildFly/10
395
+ Pragma:
396
+ - no-cache
397
+ Date:
398
+ - Tue, 27 Sep 2016 18:17:17 GMT
399
+ Connection:
400
+ - keep-alive
401
+ Content-Type:
402
+ - application/json
403
+ Content-Length:
404
+ - '170'
405
+ body:
406
+ encoding: UTF-8
407
+ string: '{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-08","ctime":1475000237000,"dataSource":"_none_","category":"general-category","text":"some
408
+ text for this event"}'
409
+ http_version:
410
+ recorded_at: Tue, 27 Sep 2016 18:17:17 GMT
411
+ - request:
412
+ method: post
413
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/events
414
+ body:
415
+ encoding: UTF-8
416
+ string: '{"id":"my-event-09","ctime":1475000237000,"category":"general-category","text":"some
417
+ text for this event"}'
418
+ headers:
419
+ Accept:
420
+ - application/json
421
+ Accept-Encoding:
422
+ - identity
423
+ User-Agent:
424
+ - hawkular-client-ruby
425
+ Hawkular-Tenant:
426
+ - hawkular
427
+ Content-Type:
428
+ - application/json
429
+ Content-Length:
430
+ - '106'
431
+ Host:
432
+ - localhost:8080
433
+ response:
434
+ status:
435
+ code: 200
436
+ message: OK
437
+ headers:
438
+ Expires:
439
+ - '0'
440
+ Cache-Control:
441
+ - no-cache, no-store, must-revalidate
442
+ X-Powered-By:
443
+ - Undertow/1
444
+ Server:
445
+ - WildFly/10
446
+ Pragma:
447
+ - no-cache
448
+ Date:
449
+ - Tue, 27 Sep 2016 18:17:17 GMT
450
+ Connection:
451
+ - keep-alive
452
+ Content-Type:
453
+ - application/json
454
+ Content-Length:
455
+ - '170'
456
+ body:
457
+ encoding: UTF-8
458
+ string: '{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-09","ctime":1475000237000,"dataSource":"_none_","category":"general-category","text":"some
459
+ text for this event"}'
460
+ http_version:
461
+ recorded_at: Tue, 27 Sep 2016 18:17:17 GMT
462
+ - request:
463
+ method: post
464
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/events
465
+ body:
466
+ encoding: UTF-8
467
+ string: '{"id":"my-event-10","ctime":1475000237000,"category":"general-category","text":"some
468
+ text for this event"}'
469
+ headers:
470
+ Accept:
471
+ - application/json
472
+ Accept-Encoding:
473
+ - identity
474
+ User-Agent:
475
+ - hawkular-client-ruby
476
+ Hawkular-Tenant:
477
+ - hawkular
478
+ Content-Type:
479
+ - application/json
480
+ Content-Length:
481
+ - '106'
482
+ Host:
483
+ - localhost:8080
484
+ response:
485
+ status:
486
+ code: 200
487
+ message: OK
488
+ headers:
489
+ Expires:
490
+ - '0'
491
+ Cache-Control:
492
+ - no-cache, no-store, must-revalidate
493
+ X-Powered-By:
494
+ - Undertow/1
495
+ Server:
496
+ - WildFly/10
497
+ Pragma:
498
+ - no-cache
499
+ Date:
500
+ - Tue, 27 Sep 2016 18:17:17 GMT
501
+ Connection:
502
+ - keep-alive
503
+ Content-Type:
504
+ - application/json
505
+ Content-Length:
506
+ - '170'
507
+ body:
508
+ encoding: UTF-8
509
+ string: '{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-10","ctime":1475000237000,"dataSource":"_none_","category":"general-category","text":"some
510
+ text for this event"}'
511
+ http_version:
512
+ recorded_at: Tue, 27 Sep 2016 18:17:17 GMT
513
+ - request:
514
+ method: post
515
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/events
516
+ body:
517
+ encoding: UTF-8
518
+ string: '{"id":"my-event-11","ctime":1475000237000,"category":"general-category","text":"some
519
+ text for this event"}'
520
+ headers:
521
+ Accept:
522
+ - application/json
523
+ Accept-Encoding:
524
+ - identity
525
+ User-Agent:
526
+ - hawkular-client-ruby
527
+ Hawkular-Tenant:
528
+ - hawkular
529
+ Content-Type:
530
+ - application/json
531
+ Content-Length:
532
+ - '106'
533
+ Host:
534
+ - localhost:8080
535
+ response:
536
+ status:
537
+ code: 200
538
+ message: OK
539
+ headers:
540
+ Expires:
541
+ - '0'
542
+ Cache-Control:
543
+ - no-cache, no-store, must-revalidate
544
+ X-Powered-By:
545
+ - Undertow/1
546
+ Server:
547
+ - WildFly/10
548
+ Pragma:
549
+ - no-cache
550
+ Date:
551
+ - Tue, 27 Sep 2016 18:17:17 GMT
552
+ Connection:
553
+ - keep-alive
554
+ Content-Type:
555
+ - application/json
556
+ Content-Length:
557
+ - '170'
558
+ body:
559
+ encoding: UTF-8
560
+ string: '{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-11","ctime":1475000237000,"dataSource":"_none_","category":"general-category","text":"some
561
+ text for this event"}'
562
+ http_version:
563
+ recorded_at: Tue, 27 Sep 2016 18:17:17 GMT
564
+ - request:
565
+ method: post
566
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/events
567
+ body:
568
+ encoding: UTF-8
569
+ string: '{"id":"my-event-12","ctime":1475000237000,"category":"general-category","text":"some
570
+ text for this event"}'
571
+ headers:
572
+ Accept:
573
+ - application/json
574
+ Accept-Encoding:
575
+ - identity
576
+ User-Agent:
577
+ - hawkular-client-ruby
578
+ Hawkular-Tenant:
579
+ - hawkular
580
+ Content-Type:
581
+ - application/json
582
+ Content-Length:
583
+ - '106'
584
+ Host:
585
+ - localhost:8080
586
+ response:
587
+ status:
588
+ code: 200
589
+ message: OK
590
+ headers:
591
+ Expires:
592
+ - '0'
593
+ Cache-Control:
594
+ - no-cache, no-store, must-revalidate
595
+ X-Powered-By:
596
+ - Undertow/1
597
+ Server:
598
+ - WildFly/10
599
+ Pragma:
600
+ - no-cache
601
+ Date:
602
+ - Tue, 27 Sep 2016 18:17:17 GMT
603
+ Connection:
604
+ - keep-alive
605
+ Content-Type:
606
+ - application/json
607
+ Content-Length:
608
+ - '170'
609
+ body:
610
+ encoding: UTF-8
611
+ string: '{"eventType":"EVENT","tenantId":"hawkular","id":"my-event-12","ctime":1475000237000,"dataSource":"_none_","category":"general-category","text":"some
612
+ text for this event"}'
613
+ http_version:
614
+ recorded_at: Tue, 27 Sep 2016 18:17:17 GMT
615
+ recorded_with: VCR 3.0.3