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
@@ -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/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
|
-
-
|
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,7 +35,7 @@ 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:
|
@@ -39,27 +43,31 @@ http_interactions:
|
|
39
43
|
Content-Length:
|
40
44
|
- '87'
|
41
45
|
body:
|
42
|
-
encoding:
|
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:
|
49
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
46
50
|
- request:
|
47
51
|
method: post
|
48
|
-
uri: http
|
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":{"
|
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
|
-
-
|
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
|
-
- '
|
61
|
-
|
62
|
-
-
|
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
|
-
-
|
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
|
-
- '
|
93
|
+
- '109'
|
86
94
|
body:
|
87
|
-
encoding:
|
88
|
-
string: '{"tenantId":"
|
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:
|
98
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
91
99
|
- request:
|
92
100
|
method: post
|
93
|
-
uri: http
|
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
|
-
-
|
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
|
-
- '
|
107
|
-
|
108
|
-
-
|
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
|
-
-
|
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
|
-
- '
|
143
|
+
- '723'
|
132
144
|
body:
|
133
|
-
encoding:
|
134
|
-
string: '{"trigger":{"tenantId":"
|
135
|
-
a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"
|
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:
|
149
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
138
150
|
- request:
|
139
151
|
method: get
|
140
|
-
uri: http
|
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
|
-
-
|
160
|
+
- identity
|
161
|
+
User-Agent:
|
162
|
+
- hawkular-client-ruby
|
163
|
+
Hawkular-Tenant:
|
164
|
+
- hawkular
|
149
165
|
Content-Type:
|
150
166
|
- application/json
|
151
|
-
|
152
|
-
-
|
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
|
-
-
|
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
|
-
- '
|
191
|
+
- '449'
|
176
192
|
body:
|
177
|
-
encoding:
|
178
|
-
string: '{"tenantId":"
|
179
|
-
a
|
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:
|
197
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
182
198
|
- request:
|
183
199
|
method: get
|
184
|
-
uri: http
|
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
|
-
-
|
208
|
+
- identity
|
209
|
+
User-Agent:
|
210
|
+
- hawkular-client-ruby
|
211
|
+
Hawkular-Tenant:
|
212
|
+
- hawkular
|
193
213
|
Content-Type:
|
194
214
|
- application/json
|
195
|
-
|
196
|
-
-
|
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
|
-
-
|
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
|
-
- '
|
239
|
+
- '248'
|
220
240
|
body:
|
221
|
-
encoding:
|
222
|
-
string: '[{"tenantId":"
|
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:
|
244
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
225
245
|
- request:
|
226
246
|
method: get
|
227
|
-
uri: http
|
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
|
-
-
|
255
|
+
- identity
|
256
|
+
User-Agent:
|
257
|
+
- hawkular-client-ruby
|
258
|
+
Hawkular-Tenant:
|
259
|
+
- hawkular
|
236
260
|
Content-Type:
|
237
261
|
- application/json
|
238
|
-
|
239
|
-
-
|
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
|
-
-
|
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:
|
265
|
-
string:
|
288
|
+
encoding: UTF-8
|
289
|
+
string: "[]"
|
266
290
|
http_version:
|
267
|
-
recorded_at:
|
291
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
268
292
|
- request:
|
269
293
|
method: delete
|
270
|
-
uri: http
|
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
|
-
-
|
302
|
+
- identity
|
303
|
+
User-Agent:
|
304
|
+
- hawkular-client-ruby
|
305
|
+
Hawkular-Tenant:
|
306
|
+
- hawkular
|
279
307
|
Content-Type:
|
280
308
|
- application/json
|
281
|
-
|
282
|
-
-
|
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
|
-
-
|
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:
|
338
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
311
339
|
- request:
|
312
340
|
method: delete
|
313
|
-
uri: http
|
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
|
-
-
|
349
|
+
- identity
|
350
|
+
User-Agent:
|
351
|
+
- hawkular-client-ruby
|
352
|
+
Hawkular-Tenant:
|
353
|
+
- hawkular
|
322
354
|
Content-Type:
|
323
355
|
- application/json
|
324
|
-
|
325
|
-
-
|
356
|
+
Host:
|
357
|
+
- localhost:8080
|
326
358
|
response:
|
327
359
|
status:
|
328
|
-
code:
|
329
|
-
message:
|
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
|
-
-
|
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
|
-
- '
|
380
|
+
- '0'
|
349
381
|
body:
|
350
|
-
encoding:
|
351
|
-
string: '
|
352
|
-
for delete"}'
|
382
|
+
encoding: UTF-8
|
383
|
+
string: ''
|
353
384
|
http_version:
|
354
|
-
recorded_at:
|
355
|
-
recorded_with: VCR 3.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
|
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
|
-
-
|
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
|
-
|
22
|
-
-
|
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
|
-
-
|
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:
|
53
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
52
54
|
- request:
|
53
55
|
method: get
|
54
|
-
uri: http
|
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
|
-
-
|
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
|
-
|
68
|
-
-
|
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
|
-
-
|
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:
|
101
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
98
102
|
- request:
|
99
103
|
method: get
|
100
|
-
uri: http
|
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
|
-
-
|
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
|
-
|
114
|
-
-
|
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
|
-
-
|
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:
|
148
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
143
149
|
- request:
|
144
150
|
method: get
|
145
|
-
uri: http
|
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
|
-
-
|
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
|
-
|
159
|
-
-
|
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
|
-
-
|
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:
|
195
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
188
196
|
- request:
|
189
197
|
method: delete
|
190
|
-
uri: http
|
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
|
-
-
|
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
|
-
|
204
|
-
-
|
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
|
-
-
|
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:
|
242
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
233
243
|
- request:
|
234
244
|
method: post
|
235
|
-
uri: http
|
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
|
-
-
|
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
|
-
|
252
|
-
-
|
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
|
-
-
|
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:
|
293
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
282
294
|
- request:
|
283
295
|
method: get
|
284
|
-
uri: http
|
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
|
-
-
|
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
|
-
|
298
|
-
-
|
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
|
-
-
|
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:
|
341
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
328
342
|
- request:
|
329
343
|
method: get
|
330
|
-
uri: http
|
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
|
-
-
|
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
|
-
|
344
|
-
-
|
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
|
-
-
|
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:
|
388
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
373
389
|
- request:
|
374
390
|
method: get
|
375
|
-
uri: http
|
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
|
-
-
|
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
|
-
|
389
|
-
-
|
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
|
-
-
|
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:
|
435
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
418
436
|
- request:
|
419
437
|
method: delete
|
420
|
-
uri: http
|
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
|
-
-
|
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
|
-
|
434
|
-
-
|
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
|
-
-
|
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:
|
463
|
-
recorded_with: VCR 3.0.
|
482
|
+
recorded_at: Tue, 27 Sep 2016 18:17:14 GMT
|
483
|
+
recorded_with: VCR 3.0.3
|