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
@@ -0,0 +1,302 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/?triggerIds=hello-world-trigger
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
+ - '1'
41
+ Connection:
42
+ - keep-alive
43
+ Content-Type:
44
+ - application/json
45
+ Content-Length:
46
+ - '1486'
47
+ Link:
48
+ - <http://localhost:8080/hawkular/alerts/?triggerIds=hello-world-trigger>; rel="current",
49
+ <http://localhost:8080/hawkular/alerts/?triggerIds=hello-world-trigger&page=0>;
50
+ rel="last"
51
+ body:
52
+ encoding: UTF-8
53
+ string: '[{"eventType":"ALERT","tenantId":"hawkular","id":"hello-world-trigger-1475854594696-24e7846e-589b-44ba-b8de-7c35de0b0ebf","ctime":1475854594696,"dataSource":"_none_","dataId":"hello-world-trigger","category":"ALERT","text":"A
54
+ mandatory Hello World Trigger","trigger":{"tenantId":"hawkular","id":"hello-world-trigger","name":"Hello
55
+ 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_"},"dampening":{"tenantId":"hawkular","triggerId":"hello-world-trigger","triggerMode":"FIRING","type":"STRICT","evalTrueSetting":1,"evalTotalSetting":1,"evalTimeSetting":0,"dampeningId":"hawkular-hello-world-trigger-FIRING"},"evalSets":[[{"evalTimestamp":1475854594695,"dataTimestamp":1475854594,"type":"THRESHOLD","condition":{"tenantId":"hawkular","triggerId":"hello-world-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"hawkular-hello-world-trigger-FIRING-1-1","dataId":"data-x","operator":"LT","threshold":5.0},"value":4.0}]],"severity":"HIGH","status":"RESOLVED","notes":[{"user":"Heiko","ctime":1475854595312,"text":"Hello
56
+ Ruby World :-)"}],"lifecycle":[{"status":"OPEN","user":"system","stime":1475854594696},{"status":"RESOLVED","user":"Heiko","stime":1475854595312}]}]'
57
+ http_version:
58
+ recorded_at: Fri, 07 Oct 2016 15:36:35 GMT
59
+ - request:
60
+ method: delete
61
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/hello-world-trigger-1475854594696-24e7846e-589b-44ba-b8de-7c35de0b0ebf
62
+ body:
63
+ encoding: US-ASCII
64
+ string: ''
65
+ headers:
66
+ Accept:
67
+ - application/json
68
+ Accept-Encoding:
69
+ - identity
70
+ User-Agent:
71
+ - hawkular-client-ruby
72
+ Hawkular-Tenant:
73
+ - hawkular
74
+ Content-Type:
75
+ - application/json
76
+ Host:
77
+ - localhost:8080
78
+ response:
79
+ status:
80
+ code: 200
81
+ message: OK
82
+ headers:
83
+ Expires:
84
+ - '0'
85
+ Cache-Control:
86
+ - no-cache, no-store, must-revalidate
87
+ X-Powered-By:
88
+ - Undertow/1
89
+ Server:
90
+ - WildFly/10
91
+ Pragma:
92
+ - no-cache
93
+ Date:
94
+ - Fri, 07 Oct 2016 15:36:35 GMT
95
+ Connection:
96
+ - keep-alive
97
+ Content-Type:
98
+ - application/json
99
+ Content-Length:
100
+ - '0'
101
+ body:
102
+ encoding: UTF-8
103
+ string: ''
104
+ http_version:
105
+ recorded_at: Fri, 07 Oct 2016 15:36:35 GMT
106
+ - request:
107
+ method: delete
108
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/hello-world-trigger
109
+ body:
110
+ encoding: US-ASCII
111
+ string: ''
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
+ Host:
124
+ - localhost:8080
125
+ response:
126
+ status:
127
+ code: 200
128
+ message: OK
129
+ headers:
130
+ Expires:
131
+ - '0'
132
+ Cache-Control:
133
+ - no-cache, no-store, must-revalidate
134
+ X-Powered-By:
135
+ - Undertow/1
136
+ Server:
137
+ - WildFly/10
138
+ Pragma:
139
+ - no-cache
140
+ Date:
141
+ - Fri, 07 Oct 2016 15:36:35 GMT
142
+ Connection:
143
+ - keep-alive
144
+ Content-Type:
145
+ - application/json
146
+ Content-Length:
147
+ - '0'
148
+ body:
149
+ encoding: UTF-8
150
+ string: ''
151
+ http_version:
152
+ recorded_at: Fri, 07 Oct 2016 15:36:35 GMT
153
+ - request:
154
+ method: get
155
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/?triggerIds=a-trigger
156
+ body:
157
+ encoding: US-ASCII
158
+ string: ''
159
+ headers:
160
+ Accept:
161
+ - application/json
162
+ Accept-Encoding:
163
+ - identity
164
+ User-Agent:
165
+ - hawkular-client-ruby
166
+ Hawkular-Tenant:
167
+ - hawkular
168
+ Content-Type:
169
+ - application/json
170
+ Host:
171
+ - localhost:8080
172
+ response:
173
+ status:
174
+ code: 200
175
+ message: OK
176
+ headers:
177
+ Expires:
178
+ - '0'
179
+ Cache-Control:
180
+ - no-cache, no-store, must-revalidate
181
+ X-Powered-By:
182
+ - Undertow/1
183
+ Server:
184
+ - WildFly/10
185
+ Pragma:
186
+ - no-cache
187
+ Date:
188
+ - Fri, 07 Oct 2016 15:36:35 GMT
189
+ X-Total-Count:
190
+ - '1'
191
+ Connection:
192
+ - keep-alive
193
+ Content-Type:
194
+ - application/json
195
+ Content-Length:
196
+ - '1385'
197
+ Link:
198
+ - <http://localhost:8080/hawkular/alerts/?triggerIds=a-trigger>; rel="current",
199
+ <http://localhost:8080/hawkular/alerts/?triggerIds=a-trigger&page=0>; rel="last"
200
+ body:
201
+ encoding: UTF-8
202
+ string: '[{"eventType":"ALERT","tenantId":"hawkular","id":"a-trigger-1475854594696-89fe86b0-959c-434f-96c3-e627f2376e90","ctime":1475854594696,"dataSource":"_none_","dataId":"a-trigger","category":"ALERT","text":"Just
203
+ a trigger","trigger":{"tenantId":"hawkular","id":"a-trigger","name":"A trigger
204
+ 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_"},"dampening":{"tenantId":"hawkular","triggerId":"a-trigger","triggerMode":"FIRING","type":"STRICT","evalTrueSetting":1,"evalTotalSetting":1,"evalTimeSetting":0,"dampeningId":"hawkular-a-trigger-FIRING"},"evalSets":[[{"evalTimestamp":1475854594694,"dataTimestamp":1475854594,"type":"THRESHOLD","condition":{"tenantId":"hawkular","triggerId":"a-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"hawkular-a-trigger-FIRING-1-1","dataId":"data-x","operator":"LT","threshold":5.0},"value":4.0}]],"severity":"HIGH","status":"ACKNOWLEDGED","notes":[{"user":"Heiko","ctime":1475854595365,"text":"Hello
205
+ Ruby World :-)"}],"lifecycle":[{"status":"OPEN","user":"system","stime":1475854594696},{"status":"ACKNOWLEDGED","user":"Heiko","stime":1475854595365}]}]'
206
+ http_version:
207
+ recorded_at: Fri, 07 Oct 2016 15:36:35 GMT
208
+ - request:
209
+ method: delete
210
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/a-trigger-1475854594696-89fe86b0-959c-434f-96c3-e627f2376e90
211
+ body:
212
+ encoding: US-ASCII
213
+ string: ''
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
+ Host:
226
+ - localhost:8080
227
+ response:
228
+ status:
229
+ code: 200
230
+ message: OK
231
+ headers:
232
+ Expires:
233
+ - '0'
234
+ Cache-Control:
235
+ - no-cache, no-store, must-revalidate
236
+ X-Powered-By:
237
+ - Undertow/1
238
+ Server:
239
+ - WildFly/10
240
+ Pragma:
241
+ - no-cache
242
+ Date:
243
+ - Fri, 07 Oct 2016 15:36:35 GMT
244
+ Connection:
245
+ - keep-alive
246
+ Content-Type:
247
+ - application/json
248
+ Content-Length:
249
+ - '0'
250
+ body:
251
+ encoding: UTF-8
252
+ string: ''
253
+ http_version:
254
+ recorded_at: Fri, 07 Oct 2016 15:36:35 GMT
255
+ - request:
256
+ method: delete
257
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/a-trigger
258
+ body:
259
+ encoding: US-ASCII
260
+ string: ''
261
+ headers:
262
+ Accept:
263
+ - application/json
264
+ Accept-Encoding:
265
+ - identity
266
+ User-Agent:
267
+ - hawkular-client-ruby
268
+ Hawkular-Tenant:
269
+ - hawkular
270
+ Content-Type:
271
+ - application/json
272
+ Host:
273
+ - localhost:8080
274
+ response:
275
+ status:
276
+ code: 200
277
+ message: OK
278
+ headers:
279
+ Expires:
280
+ - '0'
281
+ Cache-Control:
282
+ - no-cache, no-store, must-revalidate
283
+ X-Powered-By:
284
+ - Undertow/1
285
+ Server:
286
+ - WildFly/10
287
+ Pragma:
288
+ - no-cache
289
+ Date:
290
+ - Fri, 07 Oct 2016 15:36:35 GMT
291
+ Connection:
292
+ - keep-alive
293
+ Content-Type:
294
+ - application/json
295
+ Content-Length:
296
+ - '0'
297
+ body:
298
+ encoding: UTF-8
299
+ string: ''
300
+ http_version:
301
+ recorded_at: Fri, 07 Oct 2016 15:36:35 GMT
302
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,527 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/plugins/email
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:18 GMT
39
+ Connection:
40
+ - keep-alive
41
+ Content-Type:
42
+ - application/json
43
+ Content-Length:
44
+ - '87'
45
+ body:
46
+ encoding: UTF-8
47
+ string: '["cc","from","from-name","template.hawkular.url","template.html","template.plain","to"]'
48
+ http_version:
49
+ recorded_at: Tue, 27 Sep 2016 18:17:18 GMT
50
+ - request:
51
+ method: post
52
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/actions
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{"actionId":"send-via-email","actionPlugin":"email","properties":{"to":"joe@acme.org","from":"admin@acme.org"}}'
56
+ headers:
57
+ Accept:
58
+ - application/json
59
+ Accept-Encoding:
60
+ - identity
61
+ User-Agent:
62
+ - hawkular-client-ruby
63
+ Hawkular-Tenant:
64
+ - hawkular
65
+ Content-Type:
66
+ - application/json
67
+ Content-Length:
68
+ - '111'
69
+ Host:
70
+ - localhost:8080
71
+ response:
72
+ status:
73
+ code: 200
74
+ message: OK
75
+ headers:
76
+ Expires:
77
+ - '0'
78
+ Cache-Control:
79
+ - no-cache, no-store, must-revalidate
80
+ X-Powered-By:
81
+ - Undertow/1
82
+ Server:
83
+ - WildFly/10
84
+ Pragma:
85
+ - no-cache
86
+ Date:
87
+ - Tue, 27 Sep 2016 18:17:18 GMT
88
+ Connection:
89
+ - keep-alive
90
+ Content-Type:
91
+ - application/json
92
+ Content-Length:
93
+ - '133'
94
+ body:
95
+ encoding: UTF-8
96
+ string: '{"tenantId":"hawkular","actionPlugin":"email","actionId":"send-via-email","properties":{"to":"joe@acme.org","from":"admin@acme.org"}}'
97
+ http_version:
98
+ recorded_at: Tue, 27 Sep 2016 18:17:18 GMT
99
+ - request:
100
+ method: post
101
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/trigger
102
+ body:
103
+ encoding: UTF-8
104
+ string: '{"trigger":{"id":"my-cool-email-trigger","name":"Just a trigger","enabled":true,"severity":"HIGH","description":"Just
105
+ a test trigger","actions":[{"actionPlugin":"email","actionId":"send-via-email","tenantId":null,"states":null}]},"conditions":[{"conditionId":null,"type":"THRESHOLD","operator":"GT","threshold":5,"triggerMode":"FIRING","dataId":"my-metric-id1","data2Id":null,"data2Multiplier":null,"triggerId":null}],"dampenings":[]}'
106
+ headers:
107
+ Accept:
108
+ - application/json
109
+ Accept-Encoding:
110
+ - identity
111
+ User-Agent:
112
+ - hawkular-client-ruby
113
+ Hawkular-Tenant:
114
+ - hawkular
115
+ Content-Type:
116
+ - application/json
117
+ Content-Length:
118
+ - '434'
119
+ Host:
120
+ - localhost:8080
121
+ response:
122
+ status:
123
+ code: 200
124
+ message: OK
125
+ headers:
126
+ Expires:
127
+ - '0'
128
+ Cache-Control:
129
+ - no-cache, no-store, must-revalidate
130
+ X-Powered-By:
131
+ - Undertow/1
132
+ Server:
133
+ - WildFly/10
134
+ Pragma:
135
+ - no-cache
136
+ Date:
137
+ - Tue, 27 Sep 2016 18:17:18 GMT
138
+ Connection:
139
+ - keep-alive
140
+ Content-Type:
141
+ - application/json
142
+ Content-Length:
143
+ - '742'
144
+ body:
145
+ encoding: UTF-8
146
+ string: '{"trigger":{"tenantId":"hawkular","id":"my-cool-email-trigger","name":"Just
147
+ a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"hawkular","actionPlugin":"email","actionId":"send-via-email"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"conditions":[{"tenantId":"hawkular","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"hawkular-my-cool-email-trigger-FIRING-1-1","dataId":"my-metric-id1","operator":"GT","threshold":5.0}]}'
148
+ http_version:
149
+ recorded_at: Tue, 27 Sep 2016 18:17:18 GMT
150
+ - request:
151
+ method: get
152
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-cool-email-trigger
153
+ body:
154
+ encoding: US-ASCII
155
+ string: ''
156
+ headers:
157
+ Accept:
158
+ - application/json
159
+ Accept-Encoding:
160
+ - identity
161
+ User-Agent:
162
+ - hawkular-client-ruby
163
+ Hawkular-Tenant:
164
+ - hawkular
165
+ Content-Type:
166
+ - application/json
167
+ Host:
168
+ - localhost:8080
169
+ response:
170
+ status:
171
+ code: 200
172
+ message: OK
173
+ headers:
174
+ Expires:
175
+ - '0'
176
+ Cache-Control:
177
+ - no-cache, no-store, must-revalidate
178
+ X-Powered-By:
179
+ - Undertow/1
180
+ Server:
181
+ - WildFly/10
182
+ Pragma:
183
+ - no-cache
184
+ Date:
185
+ - Tue, 27 Sep 2016 18:17:18 GMT
186
+ Connection:
187
+ - keep-alive
188
+ Content-Type:
189
+ - application/json
190
+ Content-Length:
191
+ - '455'
192
+ body:
193
+ encoding: UTF-8
194
+ string: '{"tenantId":"hawkular","id":"my-cool-email-trigger","name":"Just a
195
+ trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"hawkular","actionPlugin":"email","actionId":"send-via-email"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"}'
196
+ http_version:
197
+ recorded_at: Tue, 27 Sep 2016 18:17:18 GMT
198
+ - request:
199
+ method: get
200
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-cool-email-trigger/conditions
201
+ body:
202
+ encoding: US-ASCII
203
+ string: ''
204
+ headers:
205
+ Accept:
206
+ - application/json
207
+ Accept-Encoding:
208
+ - identity
209
+ User-Agent:
210
+ - hawkular-client-ruby
211
+ Hawkular-Tenant:
212
+ - hawkular
213
+ Content-Type:
214
+ - application/json
215
+ Host:
216
+ - localhost:8080
217
+ response:
218
+ status:
219
+ code: 200
220
+ message: OK
221
+ headers:
222
+ Expires:
223
+ - '0'
224
+ Cache-Control:
225
+ - no-cache, no-store, must-revalidate
226
+ X-Powered-By:
227
+ - Undertow/1
228
+ Server:
229
+ - WildFly/10
230
+ Pragma:
231
+ - no-cache
232
+ Date:
233
+ - Tue, 27 Sep 2016 18:17:18 GMT
234
+ Connection:
235
+ - keep-alive
236
+ Content-Type:
237
+ - application/json
238
+ Content-Length:
239
+ - '261'
240
+ body:
241
+ encoding: UTF-8
242
+ string: '[{"tenantId":"hawkular","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"hawkular-my-cool-email-trigger-FIRING-1-1","dataId":"my-metric-id1","operator":"GT","threshold":5.0}]'
243
+ http_version:
244
+ recorded_at: Tue, 27 Sep 2016 18:17:18 GMT
245
+ - request:
246
+ method: get
247
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-cool-email-trigger/dampenings
248
+ body:
249
+ encoding: US-ASCII
250
+ string: ''
251
+ headers:
252
+ Accept:
253
+ - application/json
254
+ Accept-Encoding:
255
+ - identity
256
+ User-Agent:
257
+ - hawkular-client-ruby
258
+ Hawkular-Tenant:
259
+ - hawkular
260
+ Content-Type:
261
+ - application/json
262
+ Host:
263
+ - localhost:8080
264
+ response:
265
+ status:
266
+ code: 200
267
+ message: OK
268
+ headers:
269
+ Expires:
270
+ - '0'
271
+ Cache-Control:
272
+ - no-cache, no-store, must-revalidate
273
+ X-Powered-By:
274
+ - Undertow/1
275
+ Server:
276
+ - WildFly/10
277
+ Pragma:
278
+ - no-cache
279
+ Date:
280
+ - Tue, 27 Sep 2016 18:17:18 GMT
281
+ Connection:
282
+ - keep-alive
283
+ Content-Type:
284
+ - application/json
285
+ Content-Length:
286
+ - '2'
287
+ body:
288
+ encoding: UTF-8
289
+ string: "[]"
290
+ http_version:
291
+ recorded_at: Tue, 27 Sep 2016 18:17:18 GMT
292
+ - request:
293
+ method: post
294
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/metrics/metrics/data
295
+ body:
296
+ encoding: UTF-8
297
+ string: '{"gauges":[{"id":"my-metric-id1","data":[{"timestamp":1475000238000,"value":42}]}],"counters":[],"availabilities":[],"strings":[]}'
298
+ headers:
299
+ Accept:
300
+ - application/json
301
+ Accept-Encoding:
302
+ - identity
303
+ User-Agent:
304
+ - hawkular-client-ruby
305
+ Hawkular-Tenant:
306
+ - hawkular
307
+ Content-Type:
308
+ - application/json
309
+ Content-Length:
310
+ - '130'
311
+ Host:
312
+ - localhost:8080
313
+ response:
314
+ status:
315
+ code: 200
316
+ message: OK
317
+ headers:
318
+ Expires:
319
+ - '0'
320
+ Connection:
321
+ - keep-alive
322
+ Cache-Control:
323
+ - no-cache, no-store, must-revalidate
324
+ X-Powered-By:
325
+ - Undertow/1
326
+ Server:
327
+ - WildFly/10
328
+ Pragma:
329
+ - no-cache
330
+ Content-Length:
331
+ - '0'
332
+ Date:
333
+ - Tue, 27 Sep 2016 18:17:18 GMT
334
+ body:
335
+ encoding: UTF-8
336
+ string: ''
337
+ http_version:
338
+ recorded_at: Tue, 27 Sep 2016 18:17:18 GMT
339
+ - request:
340
+ method: get
341
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/?triggerIds=my-cool-email-trigger
342
+ body:
343
+ encoding: US-ASCII
344
+ string: ''
345
+ headers:
346
+ Accept:
347
+ - application/json
348
+ Accept-Encoding:
349
+ - identity
350
+ User-Agent:
351
+ - hawkular-client-ruby
352
+ Hawkular-Tenant:
353
+ - hawkular
354
+ Content-Type:
355
+ - application/json
356
+ Host:
357
+ - localhost:8080
358
+ response:
359
+ status:
360
+ code: 200
361
+ message: OK
362
+ headers:
363
+ Expires:
364
+ - '0'
365
+ Cache-Control:
366
+ - no-cache, no-store, must-revalidate
367
+ X-Powered-By:
368
+ - Undertow/1
369
+ Server:
370
+ - WildFly/10
371
+ Pragma:
372
+ - no-cache
373
+ Date:
374
+ - Tue, 27 Sep 2016 18:17:18 GMT
375
+ Connection:
376
+ - keep-alive
377
+ Content-Type:
378
+ - application/json
379
+ Content-Length:
380
+ - '2'
381
+ body:
382
+ encoding: UTF-8
383
+ string: "[]"
384
+ http_version:
385
+ recorded_at: Tue, 27 Sep 2016 18:17:18 GMT
386
+ - request:
387
+ method: get
388
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/?triggerIds=my-cool-email-trigger
389
+ body:
390
+ encoding: US-ASCII
391
+ string: ''
392
+ headers:
393
+ Accept:
394
+ - application/json
395
+ Accept-Encoding:
396
+ - identity
397
+ User-Agent:
398
+ - hawkular-client-ruby
399
+ Hawkular-Tenant:
400
+ - hawkular
401
+ Content-Type:
402
+ - application/json
403
+ Host:
404
+ - localhost:8080
405
+ response:
406
+ status:
407
+ code: 200
408
+ message: OK
409
+ headers:
410
+ Expires:
411
+ - '0'
412
+ Cache-Control:
413
+ - no-cache, no-store, must-revalidate
414
+ X-Powered-By:
415
+ - Undertow/1
416
+ Server:
417
+ - WildFly/10
418
+ Pragma:
419
+ - no-cache
420
+ Date:
421
+ - Tue, 27 Sep 2016 18:17:18 GMT
422
+ Connection:
423
+ - keep-alive
424
+ Content-Type:
425
+ - application/json
426
+ Content-Length:
427
+ - '2'
428
+ body:
429
+ encoding: UTF-8
430
+ string: "[]"
431
+ http_version:
432
+ recorded_at: Tue, 27 Sep 2016 18:17:18 GMT
433
+ - request:
434
+ method: delete
435
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-cool-email-trigger
436
+ body:
437
+ encoding: US-ASCII
438
+ string: ''
439
+ headers:
440
+ Accept:
441
+ - application/json
442
+ Accept-Encoding:
443
+ - identity
444
+ User-Agent:
445
+ - hawkular-client-ruby
446
+ Hawkular-Tenant:
447
+ - hawkular
448
+ Content-Type:
449
+ - application/json
450
+ Host:
451
+ - localhost:8080
452
+ response:
453
+ status:
454
+ code: 200
455
+ message: OK
456
+ headers:
457
+ Expires:
458
+ - '0'
459
+ Cache-Control:
460
+ - no-cache, no-store, must-revalidate
461
+ X-Powered-By:
462
+ - Undertow/1
463
+ Server:
464
+ - WildFly/10
465
+ Pragma:
466
+ - no-cache
467
+ Date:
468
+ - Tue, 27 Sep 2016 18:17:18 GMT
469
+ Connection:
470
+ - keep-alive
471
+ Content-Type:
472
+ - application/json
473
+ Content-Length:
474
+ - '0'
475
+ body:
476
+ encoding: UTF-8
477
+ string: ''
478
+ http_version:
479
+ recorded_at: Tue, 27 Sep 2016 18:17:18 GMT
480
+ - request:
481
+ method: delete
482
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/actions/email/send-via-email
483
+ body:
484
+ encoding: US-ASCII
485
+ string: ''
486
+ headers:
487
+ Accept:
488
+ - application/json
489
+ Accept-Encoding:
490
+ - identity
491
+ User-Agent:
492
+ - hawkular-client-ruby
493
+ Hawkular-Tenant:
494
+ - hawkular
495
+ Content-Type:
496
+ - application/json
497
+ Host:
498
+ - localhost:8080
499
+ response:
500
+ status:
501
+ code: 200
502
+ message: OK
503
+ headers:
504
+ Expires:
505
+ - '0'
506
+ Cache-Control:
507
+ - no-cache, no-store, must-revalidate
508
+ X-Powered-By:
509
+ - Undertow/1
510
+ Server:
511
+ - WildFly/10
512
+ Pragma:
513
+ - no-cache
514
+ Date:
515
+ - Tue, 27 Sep 2016 18:17:18 GMT
516
+ Connection:
517
+ - keep-alive
518
+ Content-Type:
519
+ - application/json
520
+ Content-Length:
521
+ - '0'
522
+ body:
523
+ encoding: UTF-8
524
+ string: ''
525
+ http_version:
526
+ recorded_at: Tue, 27 Sep 2016 18:17:18 GMT
527
+ recorded_with: VCR 3.0.3