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.
- checksums.yaml +4 -4
- data/.travis.yml +19 -2
- data/.travis/wait_for_services.rb +23 -0
- data/CHANGES.rdoc +11 -0
- data/docker-compose.yml +15 -0
- data/lib/hawkular/alerts/alerts_api.rb +24 -0
- data/lib/hawkular/base_client.rb +7 -0
- data/lib/hawkular/inventory/entities.rb +3 -0
- data/lib/hawkular/metrics/metric_api.rb +38 -3
- data/lib/hawkular/metrics/metrics_client.rb +3 -0
- data/lib/hawkular/metrics/tenant_api.rb +2 -2
- data/lib/hawkular/version.rb +1 -1
- data/spec/integration/alert-resources/alerts-test-data.json +40 -0
- data/spec/integration/alert-resources/events-test-data.json +78 -0
- data/spec/integration/alert-resources/triggers-test-data.json +66 -0
- data/spec/integration/alerts_spec.rb +192 -83
- data/spec/integration/hello-world-definitions.json +1 -2
- data/spec/integration/inventory_spec.rb +18 -5
- data/spec/integration/metric_spec.rb +201 -40
- data/spec/integration/operations_spec.rb +45 -1
- data/spec/spec_helper.rb +25 -6
- data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_acknowledge_an_alert.yml +205 -0
- data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_fetch_single_alert.yml +108 -0
- data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_list_alerts.yml +59 -0
- data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_list_alerts_for_trigger.yml +58 -0
- data/spec/vcr_cassettes/Alert/Alerts/{Should_list_alerts_for_unknown_trigger.yml → Templates/Should_list_alerts_for_unknown_trigger.yml} +13 -9
- data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_list_open_alerts.yml +59 -0
- data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_resolve_an_alert.yml +207 -0
- data/spec/vcr_cassettes/Alert/Alerts/Templates/setup.yml +255 -0
- data/spec/vcr_cassettes/Alert/Alerts/Templates/setup_cleanup.yml +302 -0
- data/spec/vcr_cassettes/Alert/EndToEnd/Templates/Should_create_and_fire_a_trigger.yml +527 -0
- 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
- 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
- data/spec/vcr_cassettes/Alert/Events/Templates/Should_list_events.yml +91 -0
- data/spec/vcr_cassettes/Alert/Events/Templates/Should_list_events_using_criteria.yml +60 -0
- data/spec/vcr_cassettes/Alert/Events/{Should_not_list_events_using_criteria.yml → Templates/Should_not_list_events_using_criteria.yml} +14 -13
- data/spec/vcr_cassettes/Alert/Events/Templates/setup.yml +615 -0
- data/spec/vcr_cassettes/Alert/Events/Templates/setup_cleanup.yml +567 -0
- data/spec/vcr_cassettes/Alert/Groups/{Should_operate_a_complex_group_trigger.yml → Templates/Should_operate_a_complex_group_trigger.yml} +508 -352
- data/spec/vcr_cassettes/{Alerts → Alert/Templates}/Should_return_the_version.yml +10 -8
- data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_List_Triggers.yml +55 -0
- data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_List_Triggers_for_ID.yml +56 -0
- data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_List_Triggers_for_Tag.yml +56 -0
- data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_List_Triggers_for_Tags.yml +56 -0
- data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_bulk_load_triggers.yml +243 -0
- 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
- 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
- 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
- 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
- data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_get_a_single_metric_Trigger.yml +50 -0
- data/spec/vcr_cassettes/Alert/Triggers/{Should_get_the_action_definitions.yml → Templates/Should_get_the_action_definitions.yml} +46 -73
- 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
- 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
- data/spec/vcr_cassettes/Alert/Triggers/Templates/setup.yml +52 -0
- 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
- data/spec/vcr_cassettes/Inventory/NonSecure/inventory_0_17/Templates/Should_list_metrics_of_given_metric_type.yml +29 -25
- data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Get_metric_definition_by_id.yml +3 -3
- data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Retrieve_metric_rate_points.yml +5 -5
- data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_Availability_definition.yml +4 -4
- data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_Counter_definition.yml +4 -4
- data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_gauge_definition.yml +4 -4
- data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_push_metric_data_to_existing_gauge.yml +4 -4
- data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_update_tags_for_Availability_definition.yml +6 -6
- data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_update_tags_for_gauge_definition.yml +8 -8
- data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/setup_client.yml +44 -0
- 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
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/Should_group_contiguous_values.yml +47 -6
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml +12 -12
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/setup_client.yml +44 -0
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +17 -17
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +23 -23
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml +19 -19
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml +12 -12
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/setup_client.yml +44 -0
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml +19 -19
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml +12 -12
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_periods.yml +5 -5
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory.yml +151 -5
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory_def.yml +152 -6
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/setup_client.yml +44 -0
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_fetch_rate_stats_for_mixed_metric.yml +33 -33
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_fetch_stats_for_mixed_metric.yml +31 -32
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +108 -20
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +26 -26
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml +27 -27
- 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
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/No_Tenant/Should_fail.yml +43 -4
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Status/Should_return_the_version.yml +44 -3
- 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
- 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
- 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
- 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
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/String_metrics/setup_client.yml +44 -0
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Tags_Metrics/setup_client.yml +44 -0
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Tenants/Should_create_and_return_tenant.yml +10 -6
- 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
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/setup_client.yml +44 -0
- data/spec/vcr_cassettes/Metrics/Secure/metrics_services/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +80 -33
- data/spec/vcr_cassettes/Operation/NonSecure/Operation/Add_XA_datasource_should_be_doable.json +23 -0
- data/spec/vcr_cassettes/Operation/NonSecure/Operation/{Add_datasource_should_be_doable.json → Add_non-XA_datasource_should_be_doable.json} +0 -0
- metadata +111 -156
- data/spec/vcr_cassettes/Alert/Alerts/Should_acknowledge_an_alert.yml +0 -183
- data/spec/vcr_cassettes/Alert/Alerts/Should_fetch_single_alert.yml +0 -69
- data/spec/vcr_cassettes/Alert/Alerts/Should_list_alerts.yml +0 -85
- data/spec/vcr_cassettes/Alert/Alerts/Should_list_alerts_for_trigger.yml +0 -142
- data/spec/vcr_cassettes/Alert/Alerts/Should_resolve_an_alert.yml +0 -181
- data/spec/vcr_cassettes/Alert/Alerts/Should_resolve_an_alert2.yml +0 -49
- data/spec/vcr_cassettes/Alert/EndToEnd/Should_create_and_fire_a_trigger.yml +0 -1187
- data/spec/vcr_cassettes/Alert/Events/Should_create_an_event.yml +0 -50
- data/spec/vcr_cassettes/Alert/Events/Should_list_events.yml +0 -101
- data/spec/vcr_cassettes/Alert/Events/Should_list_events_using_criteria.yml +0 -79
- data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers.yml +0 -62
- data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_ID.yml +0 -55
- data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_Tag.yml +0 -68
- data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_Tags.yml +0 -68
- data/spec/vcr_cassettes/Alert/Triggers/Should_bulk_load_triggers.yml +0 -225
- data/spec/vcr_cassettes/Alert/Triggers/Should_create_an_action.yml +0 -134
- data/spec/vcr_cassettes/Alert/Triggers/Should_create_an_action_for_webhooks.yml +0 -220
- data/spec/vcr_cassettes/Alert/Triggers/Should_get_a_single_Trigger_with_conditions.yml +0 -138
- data/spec/vcr_cassettes/Alert/Triggers/Should_get_a_single_metric_Trigger.yml +0 -50
- data/spec/vcr_cassettes/Alert/Triggers/Should_not_create_an_action_for_unknown_properties.yml +0 -134
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml +0 -99
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_group_contiguous_values.yml +0 -97
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml +0 -240
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml +0 -99
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml +0 -99
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +0 -240
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml +0 -281
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml +0 -240
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +0 -326
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +0 -314
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/No_Tenant/Should_fail.yml +0 -50
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Simple/Should_be_Cool.yml +0 -48
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Tenants/Should_create_and_return_tenant.yml +0 -99
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml +0 -99
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml +0 -99
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_group_contiguous_values.yml +0 -97
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml +0 -240
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml +0 -99
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml +0 -99
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +0 -240
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +0 -328
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml +0 -281
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml +0 -144
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_Hash.yml +0 -99
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_MetricDefinition.yml +0 -99
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml +0 -281
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml +0 -144
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_return_periods.yml +0 -97
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml +0 -240
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +0 -326
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +0 -314
- 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
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/No_Tenant/Should_fail.yml +0 -50
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Simple/Should_be_Cool.yml +0 -48
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Tenants/Should_create_and_return_tenant.yml +0 -99
@@ -1,11 +1,11 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
|
-
method:
|
5
|
-
uri: http
|
4
|
+
method: get
|
5
|
+
uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/plugins/email
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string: '
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- application/json
|
@@ -14,11 +14,9 @@ http_interactions:
|
|
14
14
|
User-Agent:
|
15
15
|
- hawkular-client-ruby
|
16
16
|
Hawkular-Tenant:
|
17
|
-
-
|
17
|
+
- hawkular
|
18
18
|
Content-Type:
|
19
19
|
- application/json
|
20
|
-
Content-Length:
|
21
|
-
- '39'
|
22
20
|
Host:
|
23
21
|
- localhost:8080
|
24
22
|
response:
|
@@ -28,8 +26,6 @@ http_interactions:
|
|
28
26
|
headers:
|
29
27
|
Expires:
|
30
28
|
- '0'
|
31
|
-
Connection:
|
32
|
-
- keep-alive
|
33
29
|
Cache-Control:
|
34
30
|
- no-cache, no-store, must-revalidate
|
35
31
|
X-Powered-By:
|
@@ -38,21 +34,25 @@ http_interactions:
|
|
38
34
|
- WildFly/10
|
39
35
|
Pragma:
|
40
36
|
- no-cache
|
41
|
-
Content-Length:
|
42
|
-
- '0'
|
43
37
|
Date:
|
44
|
-
-
|
38
|
+
- Tue, 27 Sep 2016 18:17:15 GMT
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
Content-Type:
|
42
|
+
- application/json
|
43
|
+
Content-Length:
|
44
|
+
- '87'
|
45
45
|
body:
|
46
46
|
encoding: UTF-8
|
47
|
-
string: ''
|
47
|
+
string: '["cc","from","from-name","template.hawkular.url","template.html","template.plain","to"]'
|
48
48
|
http_version:
|
49
|
-
recorded_at:
|
49
|
+
recorded_at: Tue, 27 Sep 2016 18:17:15 GMT
|
50
50
|
- request:
|
51
|
-
method:
|
52
|
-
uri: http
|
51
|
+
method: post
|
52
|
+
uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/actions
|
53
53
|
body:
|
54
|
-
encoding:
|
55
|
-
string: ''
|
54
|
+
encoding: UTF-8
|
55
|
+
string: '{"actionId":"my-id1","actionPlugin":"email","properties":{"to":"joe@acme.org"}}'
|
56
56
|
headers:
|
57
57
|
Accept:
|
58
58
|
- application/json
|
@@ -61,9 +61,11 @@ http_interactions:
|
|
61
61
|
User-Agent:
|
62
62
|
- hawkular-client-ruby
|
63
63
|
Hawkular-Tenant:
|
64
|
-
-
|
64
|
+
- hawkular
|
65
65
|
Content-Type:
|
66
66
|
- application/json
|
67
|
+
Content-Length:
|
68
|
+
- '79'
|
67
69
|
Host:
|
68
70
|
- localhost:8080
|
69
71
|
response:
|
@@ -82,21 +84,21 @@ http_interactions:
|
|
82
84
|
Pragma:
|
83
85
|
- no-cache
|
84
86
|
Date:
|
85
|
-
-
|
87
|
+
- Tue, 27 Sep 2016 18:17:15 GMT
|
86
88
|
Connection:
|
87
89
|
- keep-alive
|
88
90
|
Content-Type:
|
89
91
|
- application/json
|
90
92
|
Content-Length:
|
91
|
-
- '
|
93
|
+
- '101'
|
92
94
|
body:
|
93
95
|
encoding: UTF-8
|
94
|
-
string: '
|
96
|
+
string: '{"tenantId":"hawkular","actionPlugin":"email","actionId":"my-id1","properties":{"to":"joe@acme.org"}}'
|
95
97
|
http_version:
|
96
|
-
recorded_at:
|
98
|
+
recorded_at: Tue, 27 Sep 2016 18:17:15 GMT
|
97
99
|
- request:
|
98
|
-
method:
|
99
|
-
uri: http
|
100
|
+
method: delete
|
101
|
+
uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/actions/email/my-id1
|
100
102
|
body:
|
101
103
|
encoding: US-ASCII
|
102
104
|
string: ''
|
@@ -108,7 +110,7 @@ http_interactions:
|
|
108
110
|
User-Agent:
|
109
111
|
- hawkular-client-ruby
|
110
112
|
Hawkular-Tenant:
|
111
|
-
-
|
113
|
+
- hawkular
|
112
114
|
Content-Type:
|
113
115
|
- application/json
|
114
116
|
Host:
|
@@ -129,16 +131,16 @@ http_interactions:
|
|
129
131
|
Pragma:
|
130
132
|
- no-cache
|
131
133
|
Date:
|
132
|
-
-
|
134
|
+
- Tue, 27 Sep 2016 18:17:15 GMT
|
133
135
|
Connection:
|
134
136
|
- keep-alive
|
135
137
|
Content-Type:
|
136
138
|
- application/json
|
137
139
|
Content-Length:
|
138
|
-
- '
|
140
|
+
- '0'
|
139
141
|
body:
|
140
142
|
encoding: UTF-8
|
141
|
-
string: '
|
143
|
+
string: ''
|
142
144
|
http_version:
|
143
|
-
recorded_at:
|
145
|
+
recorded_at: Tue, 27 Sep 2016 18:17:15 GMT
|
144
146
|
recorded_with: VCR 3.0.3
|
@@ -1,11 +1,11 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
|
-
method:
|
5
|
-
uri:
|
4
|
+
method: get
|
5
|
+
uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-trigger-01
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string: '
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- application/json
|
@@ -14,13 +14,11 @@ http_interactions:
|
|
14
14
|
User-Agent:
|
15
15
|
- hawkular-client-ruby
|
16
16
|
Hawkular-Tenant:
|
17
|
-
-
|
17
|
+
- hawkular
|
18
18
|
Content-Type:
|
19
19
|
- application/json
|
20
|
-
Content-Length:
|
21
|
-
- '42'
|
22
20
|
Host:
|
23
|
-
-
|
21
|
+
- localhost:8080
|
24
22
|
response:
|
25
23
|
status:
|
26
24
|
code: 200
|
@@ -28,8 +26,6 @@ http_interactions:
|
|
28
26
|
headers:
|
29
27
|
Expires:
|
30
28
|
- '0'
|
31
|
-
Connection:
|
32
|
-
- keep-alive
|
33
29
|
Cache-Control:
|
34
30
|
- no-cache, no-store, must-revalidate
|
35
31
|
X-Powered-By:
|
@@ -38,18 +34,22 @@ http_interactions:
|
|
38
34
|
- WildFly/10
|
39
35
|
Pragma:
|
40
36
|
- no-cache
|
41
|
-
Content-Length:
|
42
|
-
- '0'
|
43
37
|
Date:
|
44
|
-
-
|
38
|
+
- Tue, 27 Sep 2016 18:17:14 GMT
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
Content-Type:
|
42
|
+
- application/json
|
43
|
+
Content-Length:
|
44
|
+
- '377'
|
45
45
|
body:
|
46
46
|
encoding: UTF-8
|
47
|
-
string: ''
|
47
|
+
string: '{"tenantId":"hawkular","id":"my-trigger-01","name":"defaultName","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"MEDIUM","tags":{"app":"MyShop","resourceId":"my-resource01"},"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":false,"firingMatch":"ALL","source":"_none_"}'
|
48
48
|
http_version:
|
49
|
-
recorded_at:
|
49
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
50
50
|
- request:
|
51
51
|
method: get
|
52
|
-
uri:
|
52
|
+
uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-trigger-01/conditions
|
53
53
|
body:
|
54
54
|
encoding: US-ASCII
|
55
55
|
string: ''
|
@@ -61,11 +61,11 @@ http_interactions:
|
|
61
61
|
User-Agent:
|
62
62
|
- hawkular-client-ruby
|
63
63
|
Hawkular-Tenant:
|
64
|
-
-
|
64
|
+
- hawkular
|
65
65
|
Content-Type:
|
66
66
|
- application/json
|
67
67
|
Host:
|
68
|
-
-
|
68
|
+
- localhost:8080
|
69
69
|
response:
|
70
70
|
status:
|
71
71
|
code: 200
|
@@ -82,21 +82,21 @@ http_interactions:
|
|
82
82
|
Pragma:
|
83
83
|
- no-cache
|
84
84
|
Date:
|
85
|
-
-
|
85
|
+
- Tue, 27 Sep 2016 18:17:14 GMT
|
86
86
|
Connection:
|
87
87
|
- keep-alive
|
88
88
|
Content-Type:
|
89
89
|
- application/json
|
90
90
|
Content-Length:
|
91
|
-
- '
|
91
|
+
- '238'
|
92
92
|
body:
|
93
93
|
encoding: UTF-8
|
94
|
-
string: '[{"
|
94
|
+
string: '[{"tenantId":"hawkular","triggerId":"my-trigger-01","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"hawkular-my-trigger-01-FIRING-1-1","dataId":"data-x","operator":"LT","threshold":5.0}]'
|
95
95
|
http_version:
|
96
|
-
recorded_at:
|
96
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
97
97
|
- request:
|
98
98
|
method: get
|
99
|
-
uri:
|
99
|
+
uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-trigger-01/dampenings
|
100
100
|
body:
|
101
101
|
encoding: US-ASCII
|
102
102
|
string: ''
|
@@ -108,11 +108,11 @@ http_interactions:
|
|
108
108
|
User-Agent:
|
109
109
|
- hawkular-client-ruby
|
110
110
|
Hawkular-Tenant:
|
111
|
-
-
|
111
|
+
- hawkular
|
112
112
|
Content-Type:
|
113
113
|
- application/json
|
114
114
|
Host:
|
115
|
-
-
|
115
|
+
- localhost:8080
|
116
116
|
response:
|
117
117
|
status:
|
118
118
|
code: 200
|
@@ -129,16 +129,16 @@ http_interactions:
|
|
129
129
|
Pragma:
|
130
130
|
- no-cache
|
131
131
|
Date:
|
132
|
-
-
|
132
|
+
- Tue, 27 Sep 2016 18:17:14 GMT
|
133
133
|
Connection:
|
134
134
|
- keep-alive
|
135
135
|
Content-Type:
|
136
136
|
- application/json
|
137
137
|
Content-Length:
|
138
|
-
- '
|
138
|
+
- '199'
|
139
139
|
body:
|
140
140
|
encoding: UTF-8
|
141
|
-
string: '{"
|
141
|
+
string: '[{"tenantId":"hawkular","triggerId":"my-trigger-01","triggerMode":"FIRING","type":"STRICT","evalTrueSetting":1,"evalTotalSetting":1,"evalTimeSetting":0,"dampeningId":"hawkular-my-trigger-01-FIRING"}]'
|
142
142
|
http_version:
|
143
|
-
recorded_at:
|
143
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
144
144
|
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,50 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/triggers/my-trigger-01
|
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:14 GMT
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
Content-Type:
|
42
|
+
- application/json
|
43
|
+
Content-Length:
|
44
|
+
- '377'
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"tenantId":"hawkular","id":"my-trigger-01","name":"defaultName","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"MEDIUM","tags":{"app":"MyShop","resourceId":"my-resource01"},"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":false,"firingMatch":"ALL","source":"_none_"}'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
50
|
+
recorded_with: VCR 3.0.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http
|
5
|
+
uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/plugins
|
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
|
-
-
|
13
|
+
- identity
|
14
|
+
User-Agent:
|
15
|
+
- hawkular-client-ruby
|
16
|
+
Hawkular-Tenant:
|
17
|
+
- hawkular
|
14
18
|
Content-Type:
|
15
19
|
- application/json
|
16
|
-
|
17
|
-
-
|
20
|
+
Host:
|
21
|
+
- localhost:8080
|
18
22
|
response:
|
19
23
|
status:
|
20
24
|
code: 200
|
@@ -31,21 +35,21 @@ http_interactions:
|
|
31
35
|
Pragma:
|
32
36
|
- no-cache
|
33
37
|
Date:
|
34
|
-
-
|
38
|
+
- Tue, 27 Sep 2016 18:17:14 GMT
|
35
39
|
Connection:
|
36
40
|
- keep-alive
|
37
41
|
Content-Type:
|
38
42
|
- application/json
|
39
43
|
Content-Length:
|
40
|
-
- '
|
44
|
+
- '9'
|
41
45
|
body:
|
42
|
-
encoding:
|
43
|
-
string: '["email"
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '["email"]'
|
44
48
|
http_version:
|
45
|
-
recorded_at:
|
49
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
46
50
|
- request:
|
47
51
|
method: get
|
48
|
-
uri: http
|
52
|
+
uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/plugins/email
|
49
53
|
body:
|
50
54
|
encoding: US-ASCII
|
51
55
|
string: ''
|
@@ -53,11 +57,15 @@ http_interactions:
|
|
53
57
|
Accept:
|
54
58
|
- application/json
|
55
59
|
Accept-Encoding:
|
56
|
-
-
|
60
|
+
- identity
|
61
|
+
User-Agent:
|
62
|
+
- hawkular-client-ruby
|
63
|
+
Hawkular-Tenant:
|
64
|
+
- hawkular
|
57
65
|
Content-Type:
|
58
66
|
- application/json
|
59
|
-
|
60
|
-
-
|
67
|
+
Host:
|
68
|
+
- localhost:8080
|
61
69
|
response:
|
62
70
|
status:
|
63
71
|
code: 200
|
@@ -74,7 +82,7 @@ http_interactions:
|
|
74
82
|
Pragma:
|
75
83
|
- no-cache
|
76
84
|
Date:
|
77
|
-
-
|
85
|
+
- Tue, 27 Sep 2016 18:17:14 GMT
|
78
86
|
Connection:
|
79
87
|
- keep-alive
|
80
88
|
Content-Type:
|
@@ -82,13 +90,13 @@ http_interactions:
|
|
82
90
|
Content-Length:
|
83
91
|
- '87'
|
84
92
|
body:
|
85
|
-
encoding:
|
93
|
+
encoding: UTF-8
|
86
94
|
string: '["cc","from","from-name","template.hawkular.url","template.html","template.plain","to"]'
|
87
95
|
http_version:
|
88
|
-
recorded_at:
|
96
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
89
97
|
- request:
|
90
98
|
method: get
|
91
|
-
uri: http
|
99
|
+
uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/plugins/email
|
92
100
|
body:
|
93
101
|
encoding: US-ASCII
|
94
102
|
string: ''
|
@@ -96,54 +104,15 @@ http_interactions:
|
|
96
104
|
Accept:
|
97
105
|
- application/json
|
98
106
|
Accept-Encoding:
|
99
|
-
-
|
100
|
-
Content-Type:
|
101
|
-
- application/json
|
107
|
+
- identity
|
102
108
|
User-Agent:
|
103
|
-
-
|
104
|
-
|
105
|
-
|
106
|
-
code: 200
|
107
|
-
message: OK
|
108
|
-
headers:
|
109
|
-
Expires:
|
110
|
-
- '0'
|
111
|
-
Cache-Control:
|
112
|
-
- no-cache, no-store, must-revalidate
|
113
|
-
X-Powered-By:
|
114
|
-
- Undertow/1
|
115
|
-
Server:
|
116
|
-
- WildFly/10
|
117
|
-
Pragma:
|
118
|
-
- no-cache
|
119
|
-
Date:
|
120
|
-
- Mon, 14 Mar 2016 10:36:20 GMT
|
121
|
-
Connection:
|
122
|
-
- keep-alive
|
123
|
-
Content-Type:
|
124
|
-
- application/json
|
125
|
-
Content-Length:
|
126
|
-
- '16'
|
127
|
-
body:
|
128
|
-
encoding: ASCII-8BIT
|
129
|
-
string: '["method","url"]'
|
130
|
-
http_version:
|
131
|
-
recorded_at: Mon, 14 Mar 2016 10:36:20 GMT
|
132
|
-
- request:
|
133
|
-
method: get
|
134
|
-
uri: http://jdoe:password@localhost:8080/hawkular/alerts/plugins/email
|
135
|
-
body:
|
136
|
-
encoding: US-ASCII
|
137
|
-
string: ''
|
138
|
-
headers:
|
139
|
-
Accept:
|
140
|
-
- application/json
|
141
|
-
Accept-Encoding:
|
142
|
-
- gzip, deflate
|
109
|
+
- hawkular-client-ruby
|
110
|
+
Hawkular-Tenant:
|
111
|
+
- hawkular
|
143
112
|
Content-Type:
|
144
113
|
- application/json
|
145
|
-
|
146
|
-
-
|
114
|
+
Host:
|
115
|
+
- localhost:8080
|
147
116
|
response:
|
148
117
|
status:
|
149
118
|
code: 200
|
@@ -160,7 +129,7 @@ http_interactions:
|
|
160
129
|
Pragma:
|
161
130
|
- no-cache
|
162
131
|
Date:
|
163
|
-
-
|
132
|
+
- Tue, 27 Sep 2016 18:17:15 GMT
|
164
133
|
Connection:
|
165
134
|
- keep-alive
|
166
135
|
Content-Type:
|
@@ -168,13 +137,13 @@ http_interactions:
|
|
168
137
|
Content-Length:
|
169
138
|
- '87'
|
170
139
|
body:
|
171
|
-
encoding:
|
140
|
+
encoding: UTF-8
|
172
141
|
string: '["cc","from","from-name","template.hawkular.url","template.html","template.plain","to"]'
|
173
142
|
http_version:
|
174
|
-
recorded_at:
|
143
|
+
recorded_at: Tue, 27 Sep 2016 18:17:15 GMT
|
175
144
|
- request:
|
176
145
|
method: get
|
177
|
-
uri: http
|
146
|
+
uri: http://<%= username %>:<%= password %>@localhost:8080/hawkular/alerts/plugins/-does-not-exist-
|
178
147
|
body:
|
179
148
|
encoding: US-ASCII
|
180
149
|
string: ''
|
@@ -182,11 +151,15 @@ http_interactions:
|
|
182
151
|
Accept:
|
183
152
|
- application/json
|
184
153
|
Accept-Encoding:
|
185
|
-
-
|
154
|
+
- identity
|
155
|
+
User-Agent:
|
156
|
+
- hawkular-client-ruby
|
157
|
+
Hawkular-Tenant:
|
158
|
+
- hawkular
|
186
159
|
Content-Type:
|
187
160
|
- application/json
|
188
|
-
|
189
|
-
-
|
161
|
+
Host:
|
162
|
+
- localhost:8080
|
190
163
|
response:
|
191
164
|
status:
|
192
165
|
code: 404
|
@@ -203,7 +176,7 @@ http_interactions:
|
|
203
176
|
Pragma:
|
204
177
|
- no-cache
|
205
178
|
Date:
|
206
|
-
-
|
179
|
+
- Tue, 27 Sep 2016 18:17:15 GMT
|
207
180
|
Connection:
|
208
181
|
- keep-alive
|
209
182
|
Content-Type:
|
@@ -211,8 +184,8 @@ http_interactions:
|
|
211
184
|
Content-Length:
|
212
185
|
- '55'
|
213
186
|
body:
|
214
|
-
encoding:
|
187
|
+
encoding: UTF-8
|
215
188
|
string: '{"errorMsg":"actionPlugin: -does-not-exist- not found"}'
|
216
189
|
http_version:
|
217
|
-
recorded_at:
|
218
|
-
recorded_with: VCR 3.0.
|
190
|
+
recorded_at: Tue, 27 Sep 2016 18:17:15 GMT
|
191
|
+
recorded_with: VCR 3.0.3
|