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,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/plugins/email
5
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/plugins/email
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -10,11 +10,15 @@ 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
@@ -31,7 +35,7 @@ http_interactions:
31
35
  Pragma:
32
36
  - no-cache
33
37
  Date:
34
- - Mon, 14 Mar 2016 10:49:44 GMT
38
+ - Tue, 27 Sep 2016 18:17:14 GMT
35
39
  Connection:
36
40
  - keep-alive
37
41
  Content-Type:
@@ -39,27 +43,31 @@ http_interactions:
39
43
  Content-Length:
40
44
  - '87'
41
45
  body:
42
- encoding: ASCII-8BIT
46
+ encoding: UTF-8
43
47
  string: '["cc","from","from-name","template.hawkular.url","template.html","template.plain","to"]'
44
48
  http_version:
45
- recorded_at: Mon, 14 Mar 2016 10:49:44 GMT
49
+ recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
46
50
  - request:
47
51
  method: post
48
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/actions
52
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/actions
49
53
  body:
50
54
  encoding: UTF-8
51
- string: '{"actionId":"send-via-email","actionPlugin":"email","properties":{"notify-to-admins":"joe@acme.org"}}'
55
+ string: '{"actionId":"send-via-email","actionPlugin":"email","properties":{"to":"joe@acme.org"}}'
52
56
  headers:
53
57
  Accept:
54
58
  - application/json
55
59
  Accept-Encoding:
56
- - gzip, deflate
60
+ - identity
61
+ User-Agent:
62
+ - hawkular-client-ruby
63
+ Hawkular-Tenant:
64
+ - hawkular
57
65
  Content-Type:
58
66
  - application/json
59
67
  Content-Length:
60
- - '101'
61
- User-Agent:
62
- - Ruby
68
+ - '87'
69
+ Host:
70
+ - localhost:8080
63
71
  response:
64
72
  status:
65
73
  code: 200
@@ -76,36 +84,40 @@ http_interactions:
76
84
  Pragma:
77
85
  - no-cache
78
86
  Date:
79
- - Mon, 14 Mar 2016 10:49:44 GMT
87
+ - Tue, 27 Sep 2016 18:17:14 GMT
80
88
  Connection:
81
89
  - keep-alive
82
90
  Content-Type:
83
91
  - application/json
84
92
  Content-Length:
85
- - '151'
93
+ - '109'
86
94
  body:
87
- encoding: ASCII-8BIT
88
- string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email","properties":{"notify-to-admins":"joe@acme.org"}}'
95
+ encoding: UTF-8
96
+ string: '{"tenantId":"hawkular","actionPlugin":"email","actionId":"send-via-email","properties":{"to":"joe@acme.org"}}'
89
97
  http_version:
90
- recorded_at: Mon, 14 Mar 2016 10:49:44 GMT
98
+ recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
91
99
  - request:
92
100
  method: post
93
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/trigger
101
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/trigger
94
102
  body:
95
103
  encoding: UTF-8
96
104
  string: '{"trigger":{"id":"my-cool-trigger","name":"Just a trigger","enabled":true,"severity":"HIGH","description":"Just
97
- a test trigger","actions":[{"actionPlugin":"email","actionId":"send-via-email","tenantId":null,"states":null}]},"conditions":[{"conditionId":null,"type":"THRESHOLD","operator":"LT","threshold":5,"triggerMode":"FIRING","dataId":"my-metric-id","triggerId":null}],"dampenings":[]}'
105
+ a test trigger","actions":[{"actionPlugin":"email","actionId":"send-via-email","tenantId":null,"states":null}]},"conditions":[{"conditionId":null,"type":"THRESHOLD","operator":"LT","threshold":5,"triggerMode":"FIRING","dataId":"my-metric-id","data2Id":null,"data2Multiplier":null,"triggerId":null}],"dampenings":[]}'
98
106
  headers:
99
107
  Accept:
100
108
  - application/json
101
109
  Accept-Encoding:
102
- - gzip, deflate
110
+ - identity
111
+ User-Agent:
112
+ - hawkular-client-ruby
113
+ Hawkular-Tenant:
114
+ - hawkular
103
115
  Content-Type:
104
116
  - application/json
105
117
  Content-Length:
106
- - '389'
107
- User-Agent:
108
- - Ruby
118
+ - '427'
119
+ Host:
120
+ - localhost:8080
109
121
  response:
110
122
  status:
111
123
  code: 200
@@ -122,22 +134,22 @@ http_interactions:
122
134
  Pragma:
123
135
  - no-cache
124
136
  Date:
125
- - Mon, 14 Mar 2016 10:49:44 GMT
137
+ - Tue, 27 Sep 2016 18:17:14 GMT
126
138
  Connection:
127
139
  - keep-alive
128
140
  Content-Type:
129
141
  - application/json
130
142
  Content-Length:
131
- - '835'
143
+ - '723'
132
144
  body:
133
- encoding: ASCII-8BIT
134
- string: '{"trigger":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-trigger","name":"Just
135
- a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"conditions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-trigger-FIRING-1-1","dataId":"my-metric-id","operator":"LT","threshold":5.0}]}'
145
+ encoding: UTF-8
146
+ string: '{"trigger":{"tenantId":"hawkular","id":"my-cool-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-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"hawkular-my-cool-trigger-FIRING-1-1","dataId":"my-metric-id","operator":"LT","threshold":5.0}]}'
136
148
  http_version:
137
- recorded_at: Mon, 14 Mar 2016 10:49:44 GMT
149
+ recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
138
150
  - request:
139
151
  method: get
140
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/my-cool-trigger
152
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-cool-trigger
141
153
  body:
142
154
  encoding: US-ASCII
143
155
  string: ''
@@ -145,11 +157,15 @@ http_interactions:
145
157
  Accept:
146
158
  - application/json
147
159
  Accept-Encoding:
148
- - gzip, deflate
160
+ - identity
161
+ User-Agent:
162
+ - hawkular-client-ruby
163
+ Hawkular-Tenant:
164
+ - hawkular
149
165
  Content-Type:
150
166
  - application/json
151
- User-Agent:
152
- - Ruby
167
+ Host:
168
+ - localhost:8080
153
169
  response:
154
170
  status:
155
171
  code: 200
@@ -166,22 +182,22 @@ http_interactions:
166
182
  Pragma:
167
183
  - no-cache
168
184
  Date:
169
- - Mon, 14 Mar 2016 10:49:44 GMT
185
+ - Tue, 27 Sep 2016 18:17:14 GMT
170
186
  Connection:
171
187
  - keep-alive
172
188
  Content-Type:
173
189
  - application/json
174
190
  Content-Length:
175
- - '505'
191
+ - '449'
176
192
  body:
177
- encoding: ASCII-8BIT
178
- string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-trigger","name":"Just
179
- a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"}'
193
+ encoding: UTF-8
194
+ string: '{"tenantId":"hawkular","id":"my-cool-trigger","name":"Just a trigger","description":"Just
195
+ 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_"}'
180
196
  http_version:
181
- recorded_at: Mon, 14 Mar 2016 10:49:44 GMT
197
+ recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
182
198
  - request:
183
199
  method: get
184
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/my-cool-trigger/conditions
200
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-cool-trigger/conditions
185
201
  body:
186
202
  encoding: US-ASCII
187
203
  string: ''
@@ -189,11 +205,15 @@ http_interactions:
189
205
  Accept:
190
206
  - application/json
191
207
  Accept-Encoding:
192
- - gzip, deflate
208
+ - identity
209
+ User-Agent:
210
+ - hawkular-client-ruby
211
+ Hawkular-Tenant:
212
+ - hawkular
193
213
  Content-Type:
194
214
  - application/json
195
- User-Agent:
196
- - Ruby
215
+ Host:
216
+ - localhost:8080
197
217
  response:
198
218
  status:
199
219
  code: 200
@@ -210,21 +230,21 @@ http_interactions:
210
230
  Pragma:
211
231
  - no-cache
212
232
  Date:
213
- - Mon, 14 Mar 2016 10:49:44 GMT
233
+ - Tue, 27 Sep 2016 18:17:14 GMT
214
234
  Connection:
215
235
  - keep-alive
216
236
  Content-Type:
217
237
  - application/json
218
238
  Content-Length:
219
- - '304'
239
+ - '248'
220
240
  body:
221
- encoding: ASCII-8BIT
222
- string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-trigger-FIRING-1-1","dataId":"my-metric-id","operator":"LT","threshold":5.0}]'
241
+ encoding: UTF-8
242
+ string: '[{"tenantId":"hawkular","triggerId":"my-cool-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"hawkular-my-cool-trigger-FIRING-1-1","dataId":"my-metric-id","operator":"LT","threshold":5.0}]'
223
243
  http_version:
224
- recorded_at: Mon, 14 Mar 2016 10:49:44 GMT
244
+ recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
225
245
  - request:
226
246
  method: get
227
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/my-cool-trigger/dampenings
247
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-cool-trigger/dampenings
228
248
  body:
229
249
  encoding: US-ASCII
230
250
  string: ''
@@ -232,11 +252,15 @@ http_interactions:
232
252
  Accept:
233
253
  - application/json
234
254
  Accept-Encoding:
235
- - gzip, deflate
255
+ - identity
256
+ User-Agent:
257
+ - hawkular-client-ruby
258
+ Hawkular-Tenant:
259
+ - hawkular
236
260
  Content-Type:
237
261
  - application/json
238
- User-Agent:
239
- - Ruby
262
+ Host:
263
+ - localhost:8080
240
264
  response:
241
265
  status:
242
266
  code: 200
@@ -253,7 +277,7 @@ http_interactions:
253
277
  Pragma:
254
278
  - no-cache
255
279
  Date:
256
- - Mon, 14 Mar 2016 10:49:44 GMT
280
+ - Tue, 27 Sep 2016 18:17:14 GMT
257
281
  Connection:
258
282
  - keep-alive
259
283
  Content-Type:
@@ -261,13 +285,13 @@ http_interactions:
261
285
  Content-Length:
262
286
  - '2'
263
287
  body:
264
- encoding: ASCII-8BIT
265
- string: '[]'
288
+ encoding: UTF-8
289
+ string: "[]"
266
290
  http_version:
267
- recorded_at: Mon, 14 Mar 2016 10:49:44 GMT
291
+ recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
268
292
  - request:
269
293
  method: delete
270
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/my-cool-trigger
294
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-cool-trigger
271
295
  body:
272
296
  encoding: US-ASCII
273
297
  string: ''
@@ -275,11 +299,15 @@ http_interactions:
275
299
  Accept:
276
300
  - application/json
277
301
  Accept-Encoding:
278
- - gzip, deflate
302
+ - identity
303
+ User-Agent:
304
+ - hawkular-client-ruby
305
+ Hawkular-Tenant:
306
+ - hawkular
279
307
  Content-Type:
280
308
  - application/json
281
- User-Agent:
282
- - Ruby
309
+ Host:
310
+ - localhost:8080
283
311
  response:
284
312
  status:
285
313
  code: 200
@@ -296,7 +324,7 @@ http_interactions:
296
324
  Pragma:
297
325
  - no-cache
298
326
  Date:
299
- - Mon, 14 Mar 2016 10:49:44 GMT
327
+ - Tue, 27 Sep 2016 18:17:14 GMT
300
328
  Connection:
301
329
  - keep-alive
302
330
  Content-Type:
@@ -307,10 +335,10 @@ http_interactions:
307
335
  encoding: UTF-8
308
336
  string: ''
309
337
  http_version:
310
- recorded_at: Mon, 14 Mar 2016 10:49:44 GMT
338
+ recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
311
339
  - request:
312
340
  method: delete
313
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/actions/send-via-email/email
341
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/actions/email/send-via-email
314
342
  body:
315
343
  encoding: US-ASCII
316
344
  string: ''
@@ -318,15 +346,19 @@ http_interactions:
318
346
  Accept:
319
347
  - application/json
320
348
  Accept-Encoding:
321
- - gzip, deflate
349
+ - identity
350
+ User-Agent:
351
+ - hawkular-client-ruby
352
+ Hawkular-Tenant:
353
+ - hawkular
322
354
  Content-Type:
323
355
  - application/json
324
- User-Agent:
325
- - Ruby
356
+ Host:
357
+ - localhost:8080
326
358
  response:
327
359
  status:
328
- code: 404
329
- message: Not Found
360
+ code: 200
361
+ message: OK
330
362
  headers:
331
363
  Expires:
332
364
  - '0'
@@ -339,17 +371,16 @@ http_interactions:
339
371
  Pragma:
340
372
  - no-cache
341
373
  Date:
342
- - Mon, 14 Mar 2016 10:49:44 GMT
374
+ - Tue, 27 Sep 2016 18:17:14 GMT
343
375
  Connection:
344
376
  - keep-alive
345
377
  Content-Type:
346
378
  - application/json
347
379
  Content-Length:
348
- - '80'
380
+ - '0'
349
381
  body:
350
- encoding: ASCII-8BIT
351
- string: '{"errorMsg":"ActionPlugin: send-via-email ActionId: email not found
352
- for delete"}'
382
+ encoding: UTF-8
383
+ string: ''
353
384
  http_version:
354
- recorded_at: Mon, 14 Mar 2016 10:49:44 GMT
355
- recorded_with: VCR 3.0.0
385
+ recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
386
+ recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/trigger
5
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/trigger
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"trigger":{"id":"my-cool-trigger","name":"Just a trigger","enabled":true,"severity":"HIGH","description":"Just
@@ -11,15 +11,17 @@ http_interactions:
11
11
  Accept:
12
12
  - application/json
13
13
  Accept-Encoding:
14
- - gzip, deflate
14
+ - identity
15
+ User-Agent:
16
+ - hawkular-client-ruby
15
17
  Hawkular-Tenant:
16
18
  - hawkular
17
19
  Content-Type:
18
20
  - application/json
19
21
  Content-Length:
20
22
  - '174'
21
- User-Agent:
22
- - Ruby
23
+ Host:
24
+ - localhost:8080
23
25
  response:
24
26
  status:
25
27
  code: 200
@@ -36,7 +38,7 @@ http_interactions:
36
38
  Pragma:
37
39
  - no-cache
38
40
  Date:
39
- - Fri, 01 Jul 2016 13:07:20 GMT
41
+ - Tue, 27 Sep 2016 18:17:14 GMT
40
42
  Connection:
41
43
  - keep-alive
42
44
  Content-Type:
@@ -48,10 +50,10 @@ http_interactions:
48
50
  string: '{"trigger":{"tenantId":"hawkular","id":"my-cool-trigger","name":"Just
49
51
  a trigger","description":"Just a test 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_"}}'
50
52
  http_version:
51
- recorded_at: Fri, 01 Jul 2016 13:07:20 GMT
53
+ recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
52
54
  - request:
53
55
  method: get
54
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/my-cool-trigger
56
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-cool-trigger
55
57
  body:
56
58
  encoding: US-ASCII
57
59
  string: ''
@@ -59,13 +61,15 @@ http_interactions:
59
61
  Accept:
60
62
  - application/json
61
63
  Accept-Encoding:
62
- - gzip, deflate
64
+ - identity
65
+ User-Agent:
66
+ - hawkular-client-ruby
63
67
  Hawkular-Tenant:
64
68
  - hawkular
65
69
  Content-Type:
66
70
  - application/json
67
- User-Agent:
68
- - Ruby
71
+ Host:
72
+ - localhost:8080
69
73
  response:
70
74
  status:
71
75
  code: 200
@@ -82,7 +86,7 @@ http_interactions:
82
86
  Pragma:
83
87
  - no-cache
84
88
  Date:
85
- - Fri, 01 Jul 2016 13:07:20 GMT
89
+ - Tue, 27 Sep 2016 18:17:14 GMT
86
90
  Connection:
87
91
  - keep-alive
88
92
  Content-Type:
@@ -94,10 +98,10 @@ http_interactions:
94
98
  string: '{"tenantId":"hawkular","id":"my-cool-trigger","name":"Just a trigger","description":"Just
95
99
  a test 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_"}'
96
100
  http_version:
97
- recorded_at: Fri, 01 Jul 2016 13:07:20 GMT
101
+ recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
98
102
  - request:
99
103
  method: get
100
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/my-cool-trigger/conditions
104
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-cool-trigger/conditions
101
105
  body:
102
106
  encoding: US-ASCII
103
107
  string: ''
@@ -105,13 +109,15 @@ http_interactions:
105
109
  Accept:
106
110
  - application/json
107
111
  Accept-Encoding:
108
- - gzip, deflate
112
+ - identity
113
+ User-Agent:
114
+ - hawkular-client-ruby
109
115
  Hawkular-Tenant:
110
116
  - hawkular
111
117
  Content-Type:
112
118
  - application/json
113
- User-Agent:
114
- - Ruby
119
+ Host:
120
+ - localhost:8080
115
121
  response:
116
122
  status:
117
123
  code: 200
@@ -128,7 +134,7 @@ http_interactions:
128
134
  Pragma:
129
135
  - no-cache
130
136
  Date:
131
- - Fri, 01 Jul 2016 13:07:20 GMT
137
+ - Tue, 27 Sep 2016 18:17:14 GMT
132
138
  Connection:
133
139
  - keep-alive
134
140
  Content-Type:
@@ -139,10 +145,10 @@ http_interactions:
139
145
  encoding: UTF-8
140
146
  string: "[]"
141
147
  http_version:
142
- recorded_at: Fri, 01 Jul 2016 13:07:20 GMT
148
+ recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
143
149
  - request:
144
150
  method: get
145
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/my-cool-trigger/dampenings
151
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-cool-trigger/dampenings
146
152
  body:
147
153
  encoding: US-ASCII
148
154
  string: ''
@@ -150,13 +156,15 @@ http_interactions:
150
156
  Accept:
151
157
  - application/json
152
158
  Accept-Encoding:
153
- - gzip, deflate
159
+ - identity
160
+ User-Agent:
161
+ - hawkular-client-ruby
154
162
  Hawkular-Tenant:
155
163
  - hawkular
156
164
  Content-Type:
157
165
  - application/json
158
- User-Agent:
159
- - Ruby
166
+ Host:
167
+ - localhost:8080
160
168
  response:
161
169
  status:
162
170
  code: 200
@@ -173,7 +181,7 @@ http_interactions:
173
181
  Pragma:
174
182
  - no-cache
175
183
  Date:
176
- - Fri, 01 Jul 2016 13:07:20 GMT
184
+ - Tue, 27 Sep 2016 18:17:14 GMT
177
185
  Connection:
178
186
  - keep-alive
179
187
  Content-Type:
@@ -184,10 +192,10 @@ http_interactions:
184
192
  encoding: UTF-8
185
193
  string: "[]"
186
194
  http_version:
187
- recorded_at: Fri, 01 Jul 2016 13:07:20 GMT
195
+ recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
188
196
  - request:
189
197
  method: delete
190
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/my-cool-trigger
198
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-cool-trigger
191
199
  body:
192
200
  encoding: US-ASCII
193
201
  string: ''
@@ -195,13 +203,15 @@ http_interactions:
195
203
  Accept:
196
204
  - application/json
197
205
  Accept-Encoding:
198
- - gzip, deflate
206
+ - identity
207
+ User-Agent:
208
+ - hawkular-client-ruby
199
209
  Hawkular-Tenant:
200
210
  - hawkular
201
211
  Content-Type:
202
212
  - application/json
203
- User-Agent:
204
- - Ruby
213
+ Host:
214
+ - localhost:8080
205
215
  response:
206
216
  status:
207
217
  code: 200
@@ -218,7 +228,7 @@ http_interactions:
218
228
  Pragma:
219
229
  - no-cache
220
230
  Date:
221
- - Fri, 01 Jul 2016 13:07:20 GMT
231
+ - Tue, 27 Sep 2016 18:17:14 GMT
222
232
  Connection:
223
233
  - keep-alive
224
234
  Content-Type:
@@ -229,10 +239,10 @@ http_interactions:
229
239
  encoding: UTF-8
230
240
  string: ''
231
241
  http_version:
232
- recorded_at: Fri, 01 Jul 2016 13:07:20 GMT
242
+ recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
233
243
  - request:
234
244
  method: post
235
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/trigger
245
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/trigger
236
246
  body:
237
247
  encoding: UTF-8
238
248
  string: '{"trigger":{"id":"my-cool-trigger","name":"Just a trigger","enabled":true,"severity":"HIGH","description":"Just
@@ -241,15 +251,17 @@ http_interactions:
241
251
  Accept:
242
252
  - application/json
243
253
  Accept-Encoding:
244
- - gzip, deflate
254
+ - identity
255
+ User-Agent:
256
+ - hawkular-client-ruby
245
257
  Hawkular-Tenant:
246
258
  - hawkular
247
259
  Content-Type:
248
260
  - application/json
249
261
  Content-Length:
250
262
  - '219'
251
- User-Agent:
252
- - Ruby
263
+ Host:
264
+ - localhost:8080
253
265
  response:
254
266
  status:
255
267
  code: 200
@@ -266,7 +278,7 @@ http_interactions:
266
278
  Pragma:
267
279
  - no-cache
268
280
  Date:
269
- - Fri, 01 Jul 2016 13:07:20 GMT
281
+ - Tue, 27 Sep 2016 18:17:14 GMT
270
282
  Connection:
271
283
  - keep-alive
272
284
  Content-Type:
@@ -278,10 +290,10 @@ http_interactions:
278
290
  string: '{"trigger":{"tenantId":"hawkular","id":"my-cool-trigger","name":"Just
279
291
  a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ANY","enabled":true,"firingMatch":"ANY","source":"_none_"}}'
280
292
  http_version:
281
- recorded_at: Fri, 01 Jul 2016 13:07:20 GMT
293
+ recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
282
294
  - request:
283
295
  method: get
284
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/my-cool-trigger
296
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-cool-trigger
285
297
  body:
286
298
  encoding: US-ASCII
287
299
  string: ''
@@ -289,13 +301,15 @@ http_interactions:
289
301
  Accept:
290
302
  - application/json
291
303
  Accept-Encoding:
292
- - gzip, deflate
304
+ - identity
305
+ User-Agent:
306
+ - hawkular-client-ruby
293
307
  Hawkular-Tenant:
294
308
  - hawkular
295
309
  Content-Type:
296
310
  - application/json
297
- User-Agent:
298
- - Ruby
311
+ Host:
312
+ - localhost:8080
299
313
  response:
300
314
  status:
301
315
  code: 200
@@ -312,7 +326,7 @@ http_interactions:
312
326
  Pragma:
313
327
  - no-cache
314
328
  Date:
315
- - Fri, 01 Jul 2016 13:07:20 GMT
329
+ - Tue, 27 Sep 2016 18:17:14 GMT
316
330
  Connection:
317
331
  - keep-alive
318
332
  Content-Type:
@@ -324,10 +338,10 @@ http_interactions:
324
338
  string: '{"tenantId":"hawkular","id":"my-cool-trigger","name":"Just a trigger","description":"Just
325
339
  a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ANY","enabled":true,"firingMatch":"ANY","source":"_none_"}'
326
340
  http_version:
327
- recorded_at: Fri, 01 Jul 2016 13:07:20 GMT
341
+ recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
328
342
  - request:
329
343
  method: get
330
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/my-cool-trigger/conditions
344
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-cool-trigger/conditions
331
345
  body:
332
346
  encoding: US-ASCII
333
347
  string: ''
@@ -335,13 +349,15 @@ http_interactions:
335
349
  Accept:
336
350
  - application/json
337
351
  Accept-Encoding:
338
- - gzip, deflate
352
+ - identity
353
+ User-Agent:
354
+ - hawkular-client-ruby
339
355
  Hawkular-Tenant:
340
356
  - hawkular
341
357
  Content-Type:
342
358
  - application/json
343
- User-Agent:
344
- - Ruby
359
+ Host:
360
+ - localhost:8080
345
361
  response:
346
362
  status:
347
363
  code: 200
@@ -358,7 +374,7 @@ http_interactions:
358
374
  Pragma:
359
375
  - no-cache
360
376
  Date:
361
- - Fri, 01 Jul 2016 13:07:20 GMT
377
+ - Tue, 27 Sep 2016 18:17:14 GMT
362
378
  Connection:
363
379
  - keep-alive
364
380
  Content-Type:
@@ -369,10 +385,10 @@ http_interactions:
369
385
  encoding: UTF-8
370
386
  string: "[]"
371
387
  http_version:
372
- recorded_at: Fri, 01 Jul 2016 13:07:20 GMT
388
+ recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
373
389
  - request:
374
390
  method: get
375
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/my-cool-trigger/dampenings
391
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-cool-trigger/dampenings
376
392
  body:
377
393
  encoding: US-ASCII
378
394
  string: ''
@@ -380,13 +396,15 @@ http_interactions:
380
396
  Accept:
381
397
  - application/json
382
398
  Accept-Encoding:
383
- - gzip, deflate
399
+ - identity
400
+ User-Agent:
401
+ - hawkular-client-ruby
384
402
  Hawkular-Tenant:
385
403
  - hawkular
386
404
  Content-Type:
387
405
  - application/json
388
- User-Agent:
389
- - Ruby
406
+ Host:
407
+ - localhost:8080
390
408
  response:
391
409
  status:
392
410
  code: 200
@@ -403,7 +421,7 @@ http_interactions:
403
421
  Pragma:
404
422
  - no-cache
405
423
  Date:
406
- - Fri, 01 Jul 2016 13:07:20 GMT
424
+ - Tue, 27 Sep 2016 18:17:14 GMT
407
425
  Connection:
408
426
  - keep-alive
409
427
  Content-Type:
@@ -414,10 +432,10 @@ http_interactions:
414
432
  encoding: UTF-8
415
433
  string: "[]"
416
434
  http_version:
417
- recorded_at: Fri, 01 Jul 2016 13:07:20 GMT
435
+ recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
418
436
  - request:
419
437
  method: delete
420
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/my-cool-trigger
438
+ uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-cool-trigger
421
439
  body:
422
440
  encoding: US-ASCII
423
441
  string: ''
@@ -425,13 +443,15 @@ http_interactions:
425
443
  Accept:
426
444
  - application/json
427
445
  Accept-Encoding:
428
- - gzip, deflate
446
+ - identity
447
+ User-Agent:
448
+ - hawkular-client-ruby
429
449
  Hawkular-Tenant:
430
450
  - hawkular
431
451
  Content-Type:
432
452
  - application/json
433
- User-Agent:
434
- - Ruby
453
+ Host:
454
+ - localhost:8080
435
455
  response:
436
456
  status:
437
457
  code: 200
@@ -448,7 +468,7 @@ http_interactions:
448
468
  Pragma:
449
469
  - no-cache
450
470
  Date:
451
- - Fri, 01 Jul 2016 13:07:20 GMT
471
+ - Tue, 27 Sep 2016 18:17:14 GMT
452
472
  Connection:
453
473
  - keep-alive
454
474
  Content-Type:
@@ -459,5 +479,5 @@ http_interactions:
459
479
  encoding: UTF-8
460
480
  string: ''
461
481
  http_version:
462
- recorded_at: Fri, 01 Jul 2016 13:07:20 GMT
463
- recorded_with: VCR 3.0.1
482
+ recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
483
+ recorded_with: VCR 3.0.3