hawkular-client 0.2.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +3 -0
  3. data/.yardopts +1 -0
  4. data/CHANGES.rdoc +17 -4
  5. data/README.rdoc +15 -6
  6. data/api_breaking_changes.rdoc +79 -0
  7. data/hawkularclient.gemspec +6 -5
  8. data/lib/{alerts → hawkular/alerts}/alerts_api.rb +168 -7
  9. data/lib/{hawkular.rb → hawkular/base_client.rb} +7 -44
  10. data/lib/hawkular/hawkular_client.rb +60 -0
  11. data/lib/hawkular/hawkular_client_utils.rb +40 -0
  12. data/lib/{inventory → hawkular/inventory}/inventory_api.rb +167 -142
  13. data/lib/{metrics → hawkular/metrics}/metric_api.rb +1 -0
  14. data/lib/{metrics → hawkular/metrics}/metrics_client.rb +4 -4
  15. data/lib/{metrics → hawkular/metrics}/tenant_api.rb +0 -0
  16. data/lib/{metrics → hawkular/metrics}/types.rb +0 -0
  17. data/lib/{operations → hawkular/operations}/operations_api.rb +11 -8
  18. data/lib/{tokens → hawkular/tokens}/tokens_api.rb +1 -1
  19. data/lib/{version.rb → hawkular/version.rb} +1 -1
  20. data/spec/integration/alerts_spec.rb +200 -0
  21. data/spec/integration/hawkular_client_spec.rb +228 -0
  22. data/spec/integration/inventory_spec.rb +246 -160
  23. data/spec/integration/metric_spec.rb +52 -59
  24. data/spec/integration/operations_spec.rb +53 -29
  25. data/spec/spec_helper.rb +109 -8
  26. data/spec/unit/base_spec.rb +9 -0
  27. data/spec/unit/canonical_path_spec.rb +2 -2
  28. data/spec/vcr/vcr_setup.rb +6 -0
  29. data/spec/vcr_cassettes/Alert/Events/Should_create_an_event.yml +50 -0
  30. data/spec/vcr_cassettes/Alert/Groups/Should_operate_a_complex_group_trigger.yml +1726 -0
  31. data/spec/vcr_cassettes/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +190 -0
  32. data/spec/vcr_cassettes/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +30 -42
  33. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_both_create_and_delete_feed.yml +287 -0
  34. data/spec/vcr_cassettes/{Inventory/Should_list_URLs.yml → HawkularClient/and_Inventory_client/Should_both_list_WildFlys.yml} +35 -33
  35. data/spec/vcr_cassettes/{Inventory/Should_list_types_with_bad_feed.yml → HawkularClient/and_Inventory_client/Should_both_list_types_with_bad_feed.yml} +16 -19
  36. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_list_same_types_when_param_is_given.yml +245 -0
  37. data/spec/vcr_cassettes/{Inventory/Should_list_feeds.yml → HawkularClient/and_Inventory_client/Should_list_the_same_feeds.yml} +20 -20
  38. data/spec/vcr_cassettes/HawkularClient/and_Inventory_client/Should_list_the_same_resource_types.yml +249 -0
  39. data/spec/vcr_cassettes/HawkularClient/and_Metrics_client/Should_both_create_and_retrieve_tags_for_Availability.yml +155 -0
  40. data/spec/vcr_cassettes/HawkularClient/and_Metrics_client/Should_both_create_and_return_Availability_using_Hash_parameter.yml +155 -0
  41. data/spec/vcr_cassettes/HawkularClient/and_Metrics_client/Should_both_return_the_version.yml +89 -0
  42. data/spec/vcr_cassettes/HawkularClient/and_Metrics_client/Should_both_work_the_same_way_when_pushing_metric_data_to_non-existing_counter.yml +114 -0
  43. data/spec/vcr_cassettes/{Inventory/Should_list_WildFlys_with_props.yml → HawkularClient/and_Operations_client/Should_both_work_the_same_way.yml} +28 -50
  44. data/spec/vcr_cassettes/HawkularClient/and_Operations_client_Should_both_work_the_same_way.json +44 -0
  45. data/spec/vcr_cassettes/Inventory/Helpers/create_url.yml +48 -0
  46. data/spec/vcr_cassettes/Inventory/Helpers/generate_some_events_for_websocket.yml +4446 -0
  47. data/spec/vcr_cassettes/Inventory/Helpers/get_feeds.yml +54 -0
  48. data/spec/vcr_cassettes/Inventory/Templates/Client_should_listen_on_various_inventory_events.json +47 -0
  49. data/spec/vcr_cassettes/Inventory/{Should_create_a_resourcetype.yml → Templates/Client_should_listen_on_various_inventory_events.yml} +47 -61
  50. data/spec/vcr_cassettes/Inventory/Templates/Helpers/generate_some_events_for_websocket.yml +542 -0
  51. data/spec/vcr_cassettes/Inventory/{Should_List_datasources_with_no_props.yml → Templates/Should_List_datasources_with_no_props.yml} +26 -85
  52. data/spec/vcr_cassettes/Inventory/Templates/Should_create_a_feed.yml +54 -0
  53. data/spec/vcr_cassettes/Inventory/Templates/Should_create_a_feed_again.yml +164 -0
  54. data/spec/vcr_cassettes/Inventory/{Should_create_a_nested_resource_and_metric_on_it.yml → Templates/Should_create_a_nested_resource_and_metric_on_it.yml} +93 -74
  55. data/spec/vcr_cassettes/Inventory/{Should_create_a_resource_.yml → Templates/Should_create_a_resource.yml} +103 -76
  56. data/spec/vcr_cassettes/Inventory/{Should_create_a_resource_with_metric.yml → Templates/Should_create_a_resource_with_metric.yml} +91 -197
  57. data/spec/vcr_cassettes/Inventory/Templates/Should_create_a_resourcetype.yml +154 -0
  58. data/spec/vcr_cassettes/Inventory/Templates/Should_create_and_delete_feed.yml +145 -0
  59. data/spec/vcr_cassettes/Inventory/{Should_create_and_get_a_resource.yml → Templates/Should_create_and_get_a_resource.yml} +35 -20
  60. data/spec/vcr_cassettes/Inventory/Templates/Should_list_URLs.yml +65 -0
  61. data/spec/vcr_cassettes/Inventory/Templates/Should_list_WildFlys.yml +61 -0
  62. data/spec/vcr_cassettes/Inventory/{Should_list_WildFlys.yml → Templates/Should_list_WildFlys_with_props.yml} +36 -33
  63. data/spec/vcr_cassettes/Inventory/Templates/Should_list_all_the_resource_types.yml +126 -0
  64. data/spec/vcr_cassettes/Inventory/{Should_list_children_of_WildFly.yml → Templates/Should_list_children_of_WildFly.yml} +66 -112
  65. data/spec/vcr_cassettes/Inventory/{Should_list_children_of_nested_resource.yml → Templates/Should_list_children_of_nested_resource.yml} +13 -13
  66. data/spec/vcr_cassettes/Inventory/Templates/Should_list_feeds.yml +54 -0
  67. data/spec/vcr_cassettes/Inventory/Templates/Should_list_heap_metrics_for_WildFlys.yml +712 -0
  68. data/spec/vcr_cassettes/Inventory/Templates/Should_list_metrics_for_WildFlys.yml +278 -0
  69. data/spec/vcr_cassettes/Inventory/Templates/Should_list_metrics_of_given_metric_type.yml +530 -0
  70. data/spec/vcr_cassettes/Inventory/Templates/Should_list_metrics_of_given_resource_type.yml +278 -0
  71. data/spec/vcr_cassettes/Inventory/Templates/Should_list_operation_definitions_of_given_resource.yml +185 -0
  72. data/spec/vcr_cassettes/Inventory/Templates/Should_list_operation_definitions_of_given_resource_type.yml +126 -0
  73. data/spec/vcr_cassettes/Inventory/Templates/Should_list_recursive_children_of_WildFly.yml +2369 -0
  74. data/spec/vcr_cassettes/Inventory/Templates/Should_list_relationships_of_WildFly.yml +415 -0
  75. data/spec/vcr_cassettes/Inventory/Templates/Should_list_types_with_bad_feed.yml +51 -0
  76. data/spec/vcr_cassettes/Inventory/Templates/Should_list_types_with_feed.yml +124 -0
  77. data/spec/vcr_cassettes/Inventory/{Should_not_find_an_unknown_resource.yml → Templates/Should_not_find_an_unknown_resource.yml} +14 -13
  78. data/spec/vcr_cassettes/Inventory/{Should_return_config_data_of_given_nested_resource.yml → Templates/Should_return_config_data_of_given_nested_resource.yml} +4 -4
  79. data/spec/vcr_cassettes/Inventory/{Should_return_config_data_of_given_resource.yml → Templates/Should_return_config_data_of_given_resource.yml} +4 -4
  80. data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Explicit_Credentials.yml +50 -0
  81. data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Implicit_Credentials.yml +50 -0
  82. data/spec/vcr_cassettes/Operation/Helpers/get_feed.yml +54 -0
  83. data/spec/vcr_cassettes/Operation/Helpers/get_tenant.yml +50 -0
  84. data/spec/vcr_cassettes/Operation/Operation/Add_JDBC_driver_should_add_the_driver.json +26 -0
  85. data/spec/vcr_cassettes/Operation/Operation/Add_datasource_should_be_doable.json +26 -0
  86. data/spec/vcr_cassettes/Operation/Operation/Add_deployment_should_be_doable.json +26 -0
  87. data/spec/vcr_cassettes/Operation/Operation/Redeploy_can_be_run_multiple_times_in_parallel.json +40 -0
  88. data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_be_performed_and_eventually_respond_with_success.json +26 -0
  89. data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_not_be_performed_if_resource_path_is_wrong.json +26 -0
  90. data/spec/vcr_cassettes/Operation/Operation/Remove_JDBC_driver_should_be_performed_and_eventually_respond_with_success.json +26 -0
  91. data/spec/vcr_cassettes/Operation/Operation/Remove_datasource_should_be_performed_and_eventually_respond_with_success.json +26 -0
  92. data/spec/vcr_cassettes/Operation/Operation/Remove_deployment_should_be_performed_and_eventually_respond_with_success.json +26 -0
  93. data/spec/vcr_cassettes/Operation/Operation/Undeploy_should_be_performed_and_eventually_respond_with_success.json +26 -0
  94. data/spec/vcr_cassettes/Operation/Operation/should_not_be_possible_to_perform_on_closed_client.json +12 -0
  95. data/spec/vcr_cassettes/Operation/Websocket_connection/should_be_established.json +9 -0
  96. metadata +171 -72
  97. data/lib/hawkular_all.rb +0 -9
  98. data/spec/vcr_cassettes/Inventory/Should_create_a_feed.yml +0 -107
  99. data/spec/vcr_cassettes/Inventory/Should_create_a_feed_again.yml +0 -211
  100. data/spec/vcr_cassettes/Inventory/Should_create_and_delete_feed.yml +0 -201
  101. data/spec/vcr_cassettes/Inventory/Should_list_all_the_resource_types.yml +0 -177
  102. data/spec/vcr_cassettes/Inventory/Should_list_heap_metrics_for_WildFlys.yml +0 -775
  103. data/spec/vcr_cassettes/Inventory/Should_list_metrics_for_WildFlys.yml +0 -333
  104. data/spec/vcr_cassettes/Inventory/Should_list_metrics_of_given_metric_type.yml +0 -613
  105. data/spec/vcr_cassettes/Inventory/Should_list_metrics_of_given_resource_type.yml +0 -333
  106. data/spec/vcr_cassettes/Inventory/Should_list_recursive_children_of_WildFly.yml +0 -2064
  107. data/spec/vcr_cassettes/Inventory/Should_list_relationships_of_WildFly.yml +0 -460
  108. data/spec/vcr_cassettes/Inventory/Should_list_types_with_feed.yml +0 -175
@@ -75,11 +75,11 @@ describe 'CanonicalPath' do
75
75
  end
76
76
 
77
77
  context 'with no tenant id' do
78
- it 'should not be parseable' do
78
+ xit 'should not be parseable' do
79
79
  expect { CanonicalPath.parse('/f;myFeed/rt;resType') }.to raise_error(RuntimeError)
80
80
  end
81
81
 
82
- it 'should not be constructed' do
82
+ xit 'should not be constructed' do
83
83
  expect { CanonicalPath.new(feed_id: 'something') }.to raise_error(RuntimeError)
84
84
  end
85
85
  end
@@ -1,4 +1,5 @@
1
1
  require 'vcr'
2
+ require 'simple_websocket_vcr'
2
3
  require 'webmock'
3
4
 
4
5
  VCR.configure do |c|
@@ -8,3 +9,8 @@ VCR.configure do |c|
8
9
  c.debug_logger = File.open('spec/vcr.log', 'w')
9
10
  c.configure_rspec_metadata!
10
11
  end
12
+
13
+ WebSocketVCR.configure do |c|
14
+ c.json_cassettes = true
15
+ c.cassette_library_dir = VCR.configuration.cassette_library_dir
16
+ end
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/events
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"id":"<%= id %>","ctime":1462300161000,"category":"MyCategory","text":"Li
9
+ la lu","context":{"message":"This is a test"},"tags":{"tag_name":"tag-value"}}'
10
+ headers:
11
+ Accept:
12
+ - application/json
13
+ Accept-Encoding:
14
+ - gzip, deflate
15
+ Content-Type:
16
+ - application/json
17
+ Content-Length:
18
+ - '165'
19
+ User-Agent:
20
+ - Ruby
21
+ response:
22
+ status:
23
+ code: 200
24
+ message: OK
25
+ headers:
26
+ Expires:
27
+ - '0'
28
+ Cache-Control:
29
+ - no-cache, no-store, must-revalidate
30
+ X-Powered-By:
31
+ - Undertow/1
32
+ Server:
33
+ - WildFly/10
34
+ Pragma:
35
+ - no-cache
36
+ Date:
37
+ - Tue, 03 May 2016 18:29:21 GMT
38
+ Connection:
39
+ - keep-alive
40
+ Content-Type:
41
+ - application/json
42
+ Content-Length:
43
+ - '257'
44
+ body:
45
+ encoding: ASCII-8BIT
46
+ string: '{"eventType":"EVENT","tenantId":"c48db2a6-f820-4e95-a3af-463ef4c10333","id":"<%= id %>","ctime":1462300161000,"dataSource":"_none_","category":"MyCategory","text":"Li
47
+ la lu","context":{"message":"This is a test"},"tags":{"tag_name":"tag-value"}}'
48
+ http_version:
49
+ recorded_at: Tue, 03 May 2016 18:29:21 GMT
50
+ recorded_with: VCR 3.0.1
@@ -0,0 +1,1726 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/groups
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"id":"a-group-trigger","name":"A Group Trigger","enabled":false,"severity":"HIGH","description":"A
9
+ Group Trigger generated from test","actions":[]}'
10
+ headers:
11
+ Accept:
12
+ - application/json
13
+ Accept-Encoding:
14
+ - gzip, deflate
15
+ Content-Type:
16
+ - application/json
17
+ Content-Length:
18
+ - '148'
19
+ User-Agent:
20
+ - Ruby
21
+ response:
22
+ status:
23
+ code: 200
24
+ message: OK
25
+ headers:
26
+ Expires:
27
+ - '0'
28
+ Cache-Control:
29
+ - no-cache, no-store, must-revalidate
30
+ X-Powered-By:
31
+ - Undertow/1
32
+ Server:
33
+ - WildFly/10
34
+ Pragma:
35
+ - no-cache
36
+ Date:
37
+ - Fri, 06 May 2016 13:28:05 GMT
38
+ Connection:
39
+ - keep-alive
40
+ Content-Type:
41
+ - application/json
42
+ Content-Length:
43
+ - '405'
44
+ body:
45
+ encoding: ASCII-8BIT
46
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"a-group-trigger","name":"A
47
+ Group Trigger","description":"A Group Trigger generated from test","type":"GROUP","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":false,"firingMatch":"ALL","source":"_none_"}'
48
+ http_version:
49
+ recorded_at: Fri, 06 May 2016 13:28:05 GMT
50
+ - request:
51
+ method: put
52
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/groups/a-group-trigger/conditions/FIRING
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{"conditions":[{"conditionId":null,"type":"THRESHOLD","operator":"LT","threshold":5,"triggerMode":"FIRING","dataId":"my-metric-id","data2Id":null,"data2Multiplier":null,"triggerId":null}],"dataIdMemberMap":{}}'
56
+ headers:
57
+ Accept:
58
+ - application/json
59
+ Accept-Encoding:
60
+ - gzip, deflate
61
+ Content-Type:
62
+ - application/json
63
+ Content-Length:
64
+ - '209'
65
+ User-Agent:
66
+ - Ruby
67
+ response:
68
+ status:
69
+ code: 200
70
+ message: OK
71
+ headers:
72
+ Expires:
73
+ - '0'
74
+ Cache-Control:
75
+ - no-cache, no-store, must-revalidate
76
+ X-Powered-By:
77
+ - Undertow/1
78
+ Server:
79
+ - WildFly/10
80
+ Pragma:
81
+ - no-cache
82
+ Date:
83
+ - Fri, 06 May 2016 13:28:05 GMT
84
+ Connection:
85
+ - keep-alive
86
+ Content-Type:
87
+ - application/json
88
+ Content-Length:
89
+ - '304'
90
+ body:
91
+ encoding: ASCII-8BIT
92
+ string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"a-group-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-a-group-trigger-FIRING-1-1","dataId":"my-metric-id","operator":"LT","threshold":5.0}]'
93
+ http_version:
94
+ recorded_at: Fri, 06 May 2016 13:28:05 GMT
95
+ - request:
96
+ method: post
97
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/groups/members
98
+ body:
99
+ encoding: UTF-8
100
+ string: '{"groupId":"a-group-trigger","memberId":"member1","memberName":"Member
101
+ One","memberDescription":null,"memberContext":null,"memberTags":null,"dataIdMap":{"my-metric-id":"my-metric-id-member1"}}'
102
+ headers:
103
+ Accept:
104
+ - application/json
105
+ Accept-Encoding:
106
+ - gzip, deflate
107
+ Content-Type:
108
+ - application/json
109
+ Content-Length:
110
+ - '192'
111
+ User-Agent:
112
+ - Ruby
113
+ response:
114
+ status:
115
+ code: 200
116
+ message: OK
117
+ headers:
118
+ Expires:
119
+ - '0'
120
+ Cache-Control:
121
+ - no-cache, no-store, must-revalidate
122
+ X-Powered-By:
123
+ - Undertow/1
124
+ Server:
125
+ - WildFly/10
126
+ Pragma:
127
+ - no-cache
128
+ Date:
129
+ - Fri, 06 May 2016 13:28:05 GMT
130
+ Connection:
131
+ - keep-alive
132
+ Content-Type:
133
+ - application/json
134
+ Content-Length:
135
+ - '474'
136
+ body:
137
+ encoding: ASCII-8BIT
138
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"member1","name":"Member
139
+ One","description":"A Group Trigger generated from test","type":"MEMBER","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","dataIdMap":{"my-metric-id":"my-metric-id-member1"},"memberOf":"a-group-trigger","enabled":false,"firingMatch":"ALL","source":"_none_"}'
140
+ http_version:
141
+ recorded_at: Fri, 06 May 2016 13:28:05 GMT
142
+ - request:
143
+ method: get
144
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/member1
145
+ body:
146
+ encoding: US-ASCII
147
+ string: ''
148
+ headers:
149
+ Accept:
150
+ - application/json
151
+ Accept-Encoding:
152
+ - gzip, deflate
153
+ Content-Type:
154
+ - application/json
155
+ User-Agent:
156
+ - Ruby
157
+ response:
158
+ status:
159
+ code: 200
160
+ message: OK
161
+ headers:
162
+ Expires:
163
+ - '0'
164
+ Cache-Control:
165
+ - no-cache, no-store, must-revalidate
166
+ X-Powered-By:
167
+ - Undertow/1
168
+ Server:
169
+ - WildFly/10
170
+ Pragma:
171
+ - no-cache
172
+ Date:
173
+ - Fri, 06 May 2016 13:28:05 GMT
174
+ Connection:
175
+ - keep-alive
176
+ Content-Type:
177
+ - application/json
178
+ Content-Length:
179
+ - '474'
180
+ body:
181
+ encoding: ASCII-8BIT
182
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"member1","name":"Member
183
+ One","description":"A Group Trigger generated from test","type":"MEMBER","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","dataIdMap":{"my-metric-id":"my-metric-id-member1"},"memberOf":"a-group-trigger","enabled":false,"firingMatch":"ALL","source":"_none_"}'
184
+ http_version:
185
+ recorded_at: Fri, 06 May 2016 13:28:05 GMT
186
+ - request:
187
+ method: get
188
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/member1/conditions
189
+ body:
190
+ encoding: US-ASCII
191
+ string: ''
192
+ headers:
193
+ Accept:
194
+ - application/json
195
+ Accept-Encoding:
196
+ - gzip, deflate
197
+ Content-Type:
198
+ - application/json
199
+ User-Agent:
200
+ - Ruby
201
+ response:
202
+ status:
203
+ code: 200
204
+ message: OK
205
+ headers:
206
+ Expires:
207
+ - '0'
208
+ Cache-Control:
209
+ - no-cache, no-store, must-revalidate
210
+ X-Powered-By:
211
+ - Undertow/1
212
+ Server:
213
+ - WildFly/10
214
+ Pragma:
215
+ - no-cache
216
+ Date:
217
+ - Fri, 06 May 2016 13:28:05 GMT
218
+ Connection:
219
+ - keep-alive
220
+ Content-Type:
221
+ - application/json
222
+ Content-Length:
223
+ - '296'
224
+ body:
225
+ encoding: ASCII-8BIT
226
+ string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"member1","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-member1-FIRING-1-1","dataId":"my-metric-id-member1","operator":"LT","threshold":5.0}]'
227
+ http_version:
228
+ recorded_at: Fri, 06 May 2016 13:28:05 GMT
229
+ - request:
230
+ method: get
231
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/member1/dampenings
232
+ body:
233
+ encoding: US-ASCII
234
+ string: ''
235
+ headers:
236
+ Accept:
237
+ - application/json
238
+ Accept-Encoding:
239
+ - gzip, deflate
240
+ Content-Type:
241
+ - application/json
242
+ User-Agent:
243
+ - Ruby
244
+ response:
245
+ status:
246
+ code: 200
247
+ message: OK
248
+ headers:
249
+ Expires:
250
+ - '0'
251
+ Cache-Control:
252
+ - no-cache, no-store, must-revalidate
253
+ X-Powered-By:
254
+ - Undertow/1
255
+ Server:
256
+ - WildFly/10
257
+ Pragma:
258
+ - no-cache
259
+ Date:
260
+ - Fri, 06 May 2016 13:28:05 GMT
261
+ Connection:
262
+ - keep-alive
263
+ Content-Type:
264
+ - application/json
265
+ Content-Length:
266
+ - '2'
267
+ body:
268
+ encoding: ASCII-8BIT
269
+ string: "[]"
270
+ http_version:
271
+ recorded_at: Fri, 06 May 2016 13:28:05 GMT
272
+ - request:
273
+ method: get
274
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/groups/a-group-trigger/members?includeOrphans=false
275
+ body:
276
+ encoding: US-ASCII
277
+ string: ''
278
+ headers:
279
+ Accept:
280
+ - application/json
281
+ Accept-Encoding:
282
+ - gzip, deflate
283
+ Content-Type:
284
+ - application/json
285
+ User-Agent:
286
+ - Ruby
287
+ response:
288
+ status:
289
+ code: 200
290
+ message: OK
291
+ headers:
292
+ Expires:
293
+ - '0'
294
+ Cache-Control:
295
+ - no-cache, no-store, must-revalidate
296
+ X-Powered-By:
297
+ - Undertow/1
298
+ Server:
299
+ - WildFly/10
300
+ Pragma:
301
+ - no-cache
302
+ Date:
303
+ - Fri, 06 May 2016 13:28:05 GMT
304
+ Connection:
305
+ - keep-alive
306
+ Content-Type:
307
+ - application/json
308
+ Content-Length:
309
+ - '476'
310
+ body:
311
+ encoding: ASCII-8BIT
312
+ string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"member1","name":"Member
313
+ One","description":"A Group Trigger generated from test","type":"MEMBER","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","dataIdMap":{"my-metric-id":"my-metric-id-member1"},"memberOf":"a-group-trigger","enabled":false,"firingMatch":"ALL","source":"_none_"}]'
314
+ http_version:
315
+ recorded_at: Fri, 06 May 2016 13:28:05 GMT
316
+ - request:
317
+ method: post
318
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/groups/members
319
+ body:
320
+ encoding: UTF-8
321
+ string: '{"groupId":"a-group-trigger","memberId":"member2","memberName":"Member
322
+ Two","memberDescription":null,"memberContext":null,"memberTags":null,"dataIdMap":{"my-metric-id":"my-metric-id-member2"}}'
323
+ headers:
324
+ Accept:
325
+ - application/json
326
+ Accept-Encoding:
327
+ - gzip, deflate
328
+ Content-Type:
329
+ - application/json
330
+ Content-Length:
331
+ - '192'
332
+ User-Agent:
333
+ - Ruby
334
+ response:
335
+ status:
336
+ code: 200
337
+ message: OK
338
+ headers:
339
+ Expires:
340
+ - '0'
341
+ Cache-Control:
342
+ - no-cache, no-store, must-revalidate
343
+ X-Powered-By:
344
+ - Undertow/1
345
+ Server:
346
+ - WildFly/10
347
+ Pragma:
348
+ - no-cache
349
+ Date:
350
+ - Fri, 06 May 2016 13:28:05 GMT
351
+ Connection:
352
+ - keep-alive
353
+ Content-Type:
354
+ - application/json
355
+ Content-Length:
356
+ - '474'
357
+ body:
358
+ encoding: ASCII-8BIT
359
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"member2","name":"Member
360
+ Two","description":"A Group Trigger generated from test","type":"MEMBER","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","dataIdMap":{"my-metric-id":"my-metric-id-member2"},"memberOf":"a-group-trigger","enabled":false,"firingMatch":"ALL","source":"_none_"}'
361
+ http_version:
362
+ recorded_at: Fri, 06 May 2016 13:28:05 GMT
363
+ - request:
364
+ method: get
365
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/member2
366
+ body:
367
+ encoding: US-ASCII
368
+ string: ''
369
+ headers:
370
+ Accept:
371
+ - application/json
372
+ Accept-Encoding:
373
+ - gzip, deflate
374
+ Content-Type:
375
+ - application/json
376
+ User-Agent:
377
+ - Ruby
378
+ response:
379
+ status:
380
+ code: 200
381
+ message: OK
382
+ headers:
383
+ Expires:
384
+ - '0'
385
+ Cache-Control:
386
+ - no-cache, no-store, must-revalidate
387
+ X-Powered-By:
388
+ - Undertow/1
389
+ Server:
390
+ - WildFly/10
391
+ Pragma:
392
+ - no-cache
393
+ Date:
394
+ - Fri, 06 May 2016 13:28:05 GMT
395
+ Connection:
396
+ - keep-alive
397
+ Content-Type:
398
+ - application/json
399
+ Content-Length:
400
+ - '474'
401
+ body:
402
+ encoding: ASCII-8BIT
403
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"member2","name":"Member
404
+ Two","description":"A Group Trigger generated from test","type":"MEMBER","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","dataIdMap":{"my-metric-id":"my-metric-id-member2"},"memberOf":"a-group-trigger","enabled":false,"firingMatch":"ALL","source":"_none_"}'
405
+ http_version:
406
+ recorded_at: Fri, 06 May 2016 13:28:05 GMT
407
+ - request:
408
+ method: get
409
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/member2/conditions
410
+ body:
411
+ encoding: US-ASCII
412
+ string: ''
413
+ headers:
414
+ Accept:
415
+ - application/json
416
+ Accept-Encoding:
417
+ - gzip, deflate
418
+ Content-Type:
419
+ - application/json
420
+ User-Agent:
421
+ - Ruby
422
+ response:
423
+ status:
424
+ code: 200
425
+ message: OK
426
+ headers:
427
+ Expires:
428
+ - '0'
429
+ Cache-Control:
430
+ - no-cache, no-store, must-revalidate
431
+ X-Powered-By:
432
+ - Undertow/1
433
+ Server:
434
+ - WildFly/10
435
+ Pragma:
436
+ - no-cache
437
+ Date:
438
+ - Fri, 06 May 2016 13:28:05 GMT
439
+ Connection:
440
+ - keep-alive
441
+ Content-Type:
442
+ - application/json
443
+ Content-Length:
444
+ - '296'
445
+ body:
446
+ encoding: ASCII-8BIT
447
+ string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"member2","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-member2-FIRING-1-1","dataId":"my-metric-id-member2","operator":"LT","threshold":5.0}]'
448
+ http_version:
449
+ recorded_at: Fri, 06 May 2016 13:28:05 GMT
450
+ - request:
451
+ method: get
452
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/member2/dampenings
453
+ body:
454
+ encoding: US-ASCII
455
+ string: ''
456
+ headers:
457
+ Accept:
458
+ - application/json
459
+ Accept-Encoding:
460
+ - gzip, deflate
461
+ Content-Type:
462
+ - application/json
463
+ User-Agent:
464
+ - Ruby
465
+ response:
466
+ status:
467
+ code: 200
468
+ message: OK
469
+ headers:
470
+ Expires:
471
+ - '0'
472
+ Cache-Control:
473
+ - no-cache, no-store, must-revalidate
474
+ X-Powered-By:
475
+ - Undertow/1
476
+ Server:
477
+ - WildFly/10
478
+ Pragma:
479
+ - no-cache
480
+ Date:
481
+ - Fri, 06 May 2016 13:28:05 GMT
482
+ Connection:
483
+ - keep-alive
484
+ Content-Type:
485
+ - application/json
486
+ Content-Length:
487
+ - '2'
488
+ body:
489
+ encoding: ASCII-8BIT
490
+ string: "[]"
491
+ http_version:
492
+ recorded_at: Fri, 06 May 2016 13:28:05 GMT
493
+ - request:
494
+ method: get
495
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/groups/a-group-trigger/members?includeOrphans=false
496
+ body:
497
+ encoding: US-ASCII
498
+ string: ''
499
+ headers:
500
+ Accept:
501
+ - application/json
502
+ Accept-Encoding:
503
+ - gzip, deflate
504
+ Content-Type:
505
+ - application/json
506
+ User-Agent:
507
+ - Ruby
508
+ response:
509
+ status:
510
+ code: 200
511
+ message: OK
512
+ headers:
513
+ Expires:
514
+ - '0'
515
+ Cache-Control:
516
+ - no-cache, no-store, must-revalidate
517
+ X-Powered-By:
518
+ - Undertow/1
519
+ Server:
520
+ - WildFly/10
521
+ Pragma:
522
+ - no-cache
523
+ Date:
524
+ - Fri, 06 May 2016 13:28:05 GMT
525
+ Connection:
526
+ - keep-alive
527
+ Content-Type:
528
+ - application/json
529
+ Content-Length:
530
+ - '951'
531
+ body:
532
+ encoding: ASCII-8BIT
533
+ string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"member1","name":"Member
534
+ One","description":"A Group Trigger generated from test","type":"MEMBER","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","dataIdMap":{"my-metric-id":"my-metric-id-member1"},"memberOf":"a-group-trigger","enabled":false,"firingMatch":"ALL","source":"_none_"},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"member2","name":"Member
535
+ Two","description":"A Group Trigger generated from test","type":"MEMBER","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","dataIdMap":{"my-metric-id":"my-metric-id-member2"},"memberOf":"a-group-trigger","enabled":false,"firingMatch":"ALL","source":"_none_"}]'
536
+ http_version:
537
+ recorded_at: Fri, 06 May 2016 13:28:05 GMT
538
+ - request:
539
+ method: post
540
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/groups/members/member2/orphan
541
+ body:
542
+ encoding: UTF-8
543
+ string: "{}"
544
+ headers:
545
+ Accept:
546
+ - application/json
547
+ Accept-Encoding:
548
+ - gzip, deflate
549
+ Content-Type:
550
+ - application/json
551
+ Content-Length:
552
+ - '2'
553
+ User-Agent:
554
+ - Ruby
555
+ response:
556
+ status:
557
+ code: 200
558
+ message: OK
559
+ headers:
560
+ Expires:
561
+ - '0'
562
+ Cache-Control:
563
+ - no-cache, no-store, must-revalidate
564
+ X-Powered-By:
565
+ - Undertow/1
566
+ Server:
567
+ - WildFly/10
568
+ Pragma:
569
+ - no-cache
570
+ Date:
571
+ - Fri, 06 May 2016 13:28:05 GMT
572
+ Connection:
573
+ - keep-alive
574
+ Content-Type:
575
+ - application/json
576
+ Content-Length:
577
+ - '0'
578
+ body:
579
+ encoding: UTF-8
580
+ string: ''
581
+ http_version:
582
+ recorded_at: Fri, 06 May 2016 13:28:05 GMT
583
+ - request:
584
+ method: get
585
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/member2
586
+ body:
587
+ encoding: US-ASCII
588
+ string: ''
589
+ headers:
590
+ Accept:
591
+ - application/json
592
+ Accept-Encoding:
593
+ - gzip, deflate
594
+ Content-Type:
595
+ - application/json
596
+ User-Agent:
597
+ - Ruby
598
+ response:
599
+ status:
600
+ code: 200
601
+ message: OK
602
+ headers:
603
+ Expires:
604
+ - '0'
605
+ Cache-Control:
606
+ - no-cache, no-store, must-revalidate
607
+ X-Powered-By:
608
+ - Undertow/1
609
+ Server:
610
+ - WildFly/10
611
+ Pragma:
612
+ - no-cache
613
+ Date:
614
+ - Fri, 06 May 2016 13:28:05 GMT
615
+ Connection:
616
+ - keep-alive
617
+ Content-Type:
618
+ - application/json
619
+ Content-Length:
620
+ - '474'
621
+ body:
622
+ encoding: ASCII-8BIT
623
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"member2","name":"Member
624
+ Two","description":"A Group Trigger generated from test","type":"ORPHAN","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","dataIdMap":{"my-metric-id":"my-metric-id-member2"},"memberOf":"a-group-trigger","enabled":false,"firingMatch":"ALL","source":"_none_"}'
625
+ http_version:
626
+ recorded_at: Fri, 06 May 2016 13:28:05 GMT
627
+ - request:
628
+ method: get
629
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/groups/a-group-trigger/members?includeOrphans=false
630
+ body:
631
+ encoding: US-ASCII
632
+ string: ''
633
+ headers:
634
+ Accept:
635
+ - application/json
636
+ Accept-Encoding:
637
+ - gzip, deflate
638
+ Content-Type:
639
+ - application/json
640
+ User-Agent:
641
+ - Ruby
642
+ response:
643
+ status:
644
+ code: 200
645
+ message: OK
646
+ headers:
647
+ Expires:
648
+ - '0'
649
+ Cache-Control:
650
+ - no-cache, no-store, must-revalidate
651
+ X-Powered-By:
652
+ - Undertow/1
653
+ Server:
654
+ - WildFly/10
655
+ Pragma:
656
+ - no-cache
657
+ Date:
658
+ - Fri, 06 May 2016 13:28:05 GMT
659
+ Connection:
660
+ - keep-alive
661
+ Content-Type:
662
+ - application/json
663
+ Content-Length:
664
+ - '476'
665
+ body:
666
+ encoding: ASCII-8BIT
667
+ string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"member1","name":"Member
668
+ One","description":"A Group Trigger generated from test","type":"MEMBER","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","dataIdMap":{"my-metric-id":"my-metric-id-member1"},"memberOf":"a-group-trigger","enabled":false,"firingMatch":"ALL","source":"_none_"}]'
669
+ http_version:
670
+ recorded_at: Fri, 06 May 2016 13:28:05 GMT
671
+ - request:
672
+ method: get
673
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/groups/a-group-trigger/members?includeOrphans=true
674
+ body:
675
+ encoding: US-ASCII
676
+ string: ''
677
+ headers:
678
+ Accept:
679
+ - application/json
680
+ Accept-Encoding:
681
+ - gzip, deflate
682
+ Content-Type:
683
+ - application/json
684
+ User-Agent:
685
+ - Ruby
686
+ response:
687
+ status:
688
+ code: 200
689
+ message: OK
690
+ headers:
691
+ Expires:
692
+ - '0'
693
+ Cache-Control:
694
+ - no-cache, no-store, must-revalidate
695
+ X-Powered-By:
696
+ - Undertow/1
697
+ Server:
698
+ - WildFly/10
699
+ Pragma:
700
+ - no-cache
701
+ Date:
702
+ - Fri, 06 May 2016 13:28:05 GMT
703
+ Connection:
704
+ - keep-alive
705
+ Content-Type:
706
+ - application/json
707
+ Content-Length:
708
+ - '951'
709
+ body:
710
+ encoding: ASCII-8BIT
711
+ string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"member1","name":"Member
712
+ One","description":"A Group Trigger generated from test","type":"MEMBER","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","dataIdMap":{"my-metric-id":"my-metric-id-member1"},"memberOf":"a-group-trigger","enabled":false,"firingMatch":"ALL","source":"_none_"},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"member2","name":"Member
713
+ Two","description":"A Group Trigger generated from test","type":"ORPHAN","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","dataIdMap":{"my-metric-id":"my-metric-id-member2"},"memberOf":"a-group-trigger","enabled":false,"firingMatch":"ALL","source":"_none_"}]'
714
+ http_version:
715
+ recorded_at: Fri, 06 May 2016 13:28:05 GMT
716
+ - request:
717
+ method: post
718
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/groups/a-group-trigger/dampenings
719
+ body:
720
+ encoding: UTF-8
721
+ string: '{"dampeningId":null,"triggerId":"a-group-trigger","type":"STRICT","evalTrueSetting":2,"evalTotalSetting":2,"evalTimeSetting":null}'
722
+ headers:
723
+ Accept:
724
+ - application/json
725
+ Accept-Encoding:
726
+ - gzip, deflate
727
+ Content-Type:
728
+ - application/json
729
+ Content-Length:
730
+ - '130'
731
+ User-Agent:
732
+ - Ruby
733
+ response:
734
+ status:
735
+ code: 200
736
+ message: OK
737
+ headers:
738
+ Expires:
739
+ - '0'
740
+ Cache-Control:
741
+ - no-cache, no-store, must-revalidate
742
+ X-Powered-By:
743
+ - Undertow/1
744
+ Server:
745
+ - WildFly/10
746
+ Pragma:
747
+ - no-cache
748
+ Date:
749
+ - Fri, 06 May 2016 13:28:05 GMT
750
+ Connection:
751
+ - keep-alive
752
+ Content-Type:
753
+ - application/json
754
+ Content-Length:
755
+ - '257'
756
+ body:
757
+ encoding: ASCII-8BIT
758
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"a-group-trigger","triggerMode":"FIRING","type":"STRICT","evalTrueSetting":2,"evalTotalSetting":2,"evalTimeSetting":0,"dampeningId":"28026b36-8fe4-4332-84c8-524e173a68bf-a-group-trigger-FIRING"}'
759
+ http_version:
760
+ recorded_at: Fri, 06 May 2016 13:28:05 GMT
761
+ - request:
762
+ method: get
763
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/member1
764
+ body:
765
+ encoding: US-ASCII
766
+ string: ''
767
+ headers:
768
+ Accept:
769
+ - application/json
770
+ Accept-Encoding:
771
+ - gzip, deflate
772
+ Content-Type:
773
+ - application/json
774
+ User-Agent:
775
+ - Ruby
776
+ response:
777
+ status:
778
+ code: 200
779
+ message: OK
780
+ headers:
781
+ Expires:
782
+ - '0'
783
+ Cache-Control:
784
+ - no-cache, no-store, must-revalidate
785
+ X-Powered-By:
786
+ - Undertow/1
787
+ Server:
788
+ - WildFly/10
789
+ Pragma:
790
+ - no-cache
791
+ Date:
792
+ - Fri, 06 May 2016 13:28:06 GMT
793
+ Connection:
794
+ - keep-alive
795
+ Content-Type:
796
+ - application/json
797
+ Content-Length:
798
+ - '474'
799
+ body:
800
+ encoding: ASCII-8BIT
801
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"member1","name":"Member
802
+ One","description":"A Group Trigger generated from test","type":"MEMBER","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","dataIdMap":{"my-metric-id":"my-metric-id-member1"},"memberOf":"a-group-trigger","enabled":false,"firingMatch":"ALL","source":"_none_"}'
803
+ http_version:
804
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
805
+ - request:
806
+ method: get
807
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/member1/conditions
808
+ body:
809
+ encoding: US-ASCII
810
+ string: ''
811
+ headers:
812
+ Accept:
813
+ - application/json
814
+ Accept-Encoding:
815
+ - gzip, deflate
816
+ Content-Type:
817
+ - application/json
818
+ User-Agent:
819
+ - Ruby
820
+ response:
821
+ status:
822
+ code: 200
823
+ message: OK
824
+ headers:
825
+ Expires:
826
+ - '0'
827
+ Cache-Control:
828
+ - no-cache, no-store, must-revalidate
829
+ X-Powered-By:
830
+ - Undertow/1
831
+ Server:
832
+ - WildFly/10
833
+ Pragma:
834
+ - no-cache
835
+ Date:
836
+ - Fri, 06 May 2016 13:28:06 GMT
837
+ Connection:
838
+ - keep-alive
839
+ Content-Type:
840
+ - application/json
841
+ Content-Length:
842
+ - '296'
843
+ body:
844
+ encoding: ASCII-8BIT
845
+ string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"member1","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-member1-FIRING-1-1","dataId":"my-metric-id-member1","operator":"LT","threshold":5.0}]'
846
+ http_version:
847
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
848
+ - request:
849
+ method: get
850
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/member1/dampenings
851
+ body:
852
+ encoding: US-ASCII
853
+ string: ''
854
+ headers:
855
+ Accept:
856
+ - application/json
857
+ Accept-Encoding:
858
+ - gzip, deflate
859
+ Content-Type:
860
+ - application/json
861
+ User-Agent:
862
+ - Ruby
863
+ response:
864
+ status:
865
+ code: 200
866
+ message: OK
867
+ headers:
868
+ Expires:
869
+ - '0'
870
+ Cache-Control:
871
+ - no-cache, no-store, must-revalidate
872
+ X-Powered-By:
873
+ - Undertow/1
874
+ Server:
875
+ - WildFly/10
876
+ Pragma:
877
+ - no-cache
878
+ Date:
879
+ - Fri, 06 May 2016 13:28:06 GMT
880
+ Connection:
881
+ - keep-alive
882
+ Content-Type:
883
+ - application/json
884
+ Content-Length:
885
+ - '243'
886
+ body:
887
+ encoding: ASCII-8BIT
888
+ string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"member1","triggerMode":"FIRING","type":"STRICT","evalTrueSetting":2,"evalTotalSetting":2,"evalTimeSetting":0,"dampeningId":"28026b36-8fe4-4332-84c8-524e173a68bf-member1-FIRING"}]'
889
+ http_version:
890
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
891
+ - request:
892
+ method: put
893
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/groups/a-group-trigger/
894
+ body:
895
+ encoding: UTF-8
896
+ string: '{"id":"a-group-trigger","name":"A Group Trigger","enabled":false,"severity":"HIGH","autoResolve":false,"autoResolveAlerts":true,"eventType":"ALERT","description":"A
897
+ Group Trigger generated from test","autoEnable":false,"autoDisable":false,"type":"GROUP","tags":{"group-tname":"group-tvalue"},"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actions":[]}'
898
+ headers:
899
+ Accept:
900
+ - application/json
901
+ Accept-Encoding:
902
+ - gzip, deflate
903
+ Content-Type:
904
+ - application/json
905
+ Content-Length:
906
+ - '355'
907
+ User-Agent:
908
+ - Ruby
909
+ response:
910
+ status:
911
+ code: 200
912
+ message: OK
913
+ headers:
914
+ Expires:
915
+ - '0'
916
+ Cache-Control:
917
+ - no-cache, no-store, must-revalidate
918
+ X-Powered-By:
919
+ - Undertow/1
920
+ Server:
921
+ - WildFly/10
922
+ Pragma:
923
+ - no-cache
924
+ Date:
925
+ - Fri, 06 May 2016 13:28:06 GMT
926
+ Connection:
927
+ - keep-alive
928
+ Content-Type:
929
+ - application/json
930
+ Content-Length:
931
+ - '0'
932
+ body:
933
+ encoding: UTF-8
934
+ string: ''
935
+ http_version:
936
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
937
+ - request:
938
+ method: get
939
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/a-group-trigger
940
+ body:
941
+ encoding: US-ASCII
942
+ string: ''
943
+ headers:
944
+ Accept:
945
+ - application/json
946
+ Accept-Encoding:
947
+ - gzip, deflate
948
+ Content-Type:
949
+ - application/json
950
+ User-Agent:
951
+ - Ruby
952
+ response:
953
+ status:
954
+ code: 200
955
+ message: OK
956
+ headers:
957
+ Expires:
958
+ - '0'
959
+ Cache-Control:
960
+ - no-cache, no-store, must-revalidate
961
+ X-Powered-By:
962
+ - Undertow/1
963
+ Server:
964
+ - WildFly/10
965
+ Pragma:
966
+ - no-cache
967
+ Date:
968
+ - Fri, 06 May 2016 13:28:06 GMT
969
+ Connection:
970
+ - keep-alive
971
+ Content-Type:
972
+ - application/json
973
+ Content-Length:
974
+ - '443'
975
+ body:
976
+ encoding: ASCII-8BIT
977
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"a-group-trigger","name":"A
978
+ Group Trigger","description":"A Group Trigger generated from test","type":"GROUP","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","tags":{"group-tname":"group-tvalue"},"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":false,"firingMatch":"ALL","source":"_none_"}'
979
+ http_version:
980
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
981
+ - request:
982
+ method: get
983
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/member1
984
+ body:
985
+ encoding: US-ASCII
986
+ string: ''
987
+ headers:
988
+ Accept:
989
+ - application/json
990
+ Accept-Encoding:
991
+ - gzip, deflate
992
+ Content-Type:
993
+ - application/json
994
+ User-Agent:
995
+ - Ruby
996
+ response:
997
+ status:
998
+ code: 200
999
+ message: OK
1000
+ headers:
1001
+ Expires:
1002
+ - '0'
1003
+ Cache-Control:
1004
+ - no-cache, no-store, must-revalidate
1005
+ X-Powered-By:
1006
+ - Undertow/1
1007
+ Server:
1008
+ - WildFly/10
1009
+ Pragma:
1010
+ - no-cache
1011
+ Date:
1012
+ - Fri, 06 May 2016 13:28:06 GMT
1013
+ Connection:
1014
+ - keep-alive
1015
+ Content-Type:
1016
+ - application/json
1017
+ Content-Length:
1018
+ - '512'
1019
+ body:
1020
+ encoding: ASCII-8BIT
1021
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"member1","name":"Member
1022
+ One","description":"A Group Trigger generated from test","type":"MEMBER","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","tags":{"group-tname":"group-tvalue"},"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","dataIdMap":{"my-metric-id":"my-metric-id-member1"},"memberOf":"a-group-trigger","enabled":false,"firingMatch":"ALL","source":"_none_"}'
1023
+ http_version:
1024
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
1025
+ - request:
1026
+ method: put
1027
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/groups/a-group-trigger/conditions/FIRING
1028
+ body:
1029
+ encoding: UTF-8
1030
+ string: '{"conditions":[{"conditionId":null,"type":"THRESHOLD","operator":"LT","threshold":5,"triggerMode":"FIRING","dataId":"my-metric-id","data2Id":null,"data2Multiplier":null,"triggerId":null},{"conditionId":null,"type":"THRESHOLD","operator":"GT","threshold":50,"triggerMode":"FIRING","dataId":"my-metric-id2","data2Id":null,"data2Multiplier":null,"triggerId":null}],"dataIdMemberMap":{"my-metric-id":{"member1":"my-metric-id-member1"},"my-metric-id2":{"member1":"my-metric-id2-member1"}}}'
1031
+ headers:
1032
+ Accept:
1033
+ - application/json
1034
+ Accept-Encoding:
1035
+ - gzip, deflate
1036
+ Content-Type:
1037
+ - application/json
1038
+ Content-Length:
1039
+ - '484'
1040
+ User-Agent:
1041
+ - Ruby
1042
+ response:
1043
+ status:
1044
+ code: 200
1045
+ message: OK
1046
+ headers:
1047
+ Expires:
1048
+ - '0'
1049
+ Cache-Control:
1050
+ - no-cache, no-store, must-revalidate
1051
+ X-Powered-By:
1052
+ - Undertow/1
1053
+ Server:
1054
+ - WildFly/10
1055
+ Pragma:
1056
+ - no-cache
1057
+ Date:
1058
+ - Fri, 06 May 2016 13:28:06 GMT
1059
+ Connection:
1060
+ - keep-alive
1061
+ Content-Type:
1062
+ - application/json
1063
+ Content-Length:
1064
+ - '609'
1065
+ body:
1066
+ encoding: ASCII-8BIT
1067
+ string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"a-group-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":2,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-a-group-trigger-FIRING-2-1","dataId":"my-metric-id","operator":"LT","threshold":5.0},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"a-group-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":2,"conditionSetIndex":2,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-a-group-trigger-FIRING-2-2","dataId":"my-metric-id2","operator":"GT","threshold":50.0}]'
1068
+ http_version:
1069
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
1070
+ - request:
1071
+ method: get
1072
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/member1
1073
+ body:
1074
+ encoding: US-ASCII
1075
+ string: ''
1076
+ headers:
1077
+ Accept:
1078
+ - application/json
1079
+ Accept-Encoding:
1080
+ - gzip, deflate
1081
+ Content-Type:
1082
+ - application/json
1083
+ User-Agent:
1084
+ - Ruby
1085
+ response:
1086
+ status:
1087
+ code: 200
1088
+ message: OK
1089
+ headers:
1090
+ Expires:
1091
+ - '0'
1092
+ Cache-Control:
1093
+ - no-cache, no-store, must-revalidate
1094
+ X-Powered-By:
1095
+ - Undertow/1
1096
+ Server:
1097
+ - WildFly/10
1098
+ Pragma:
1099
+ - no-cache
1100
+ Date:
1101
+ - Fri, 06 May 2016 13:28:06 GMT
1102
+ Connection:
1103
+ - keep-alive
1104
+ Content-Type:
1105
+ - application/json
1106
+ Content-Length:
1107
+ - '512'
1108
+ body:
1109
+ encoding: ASCII-8BIT
1110
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"member1","name":"Member
1111
+ One","description":"A Group Trigger generated from test","type":"MEMBER","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","tags":{"group-tname":"group-tvalue"},"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","dataIdMap":{"my-metric-id":"my-metric-id-member1"},"memberOf":"a-group-trigger","enabled":false,"firingMatch":"ALL","source":"_none_"}'
1112
+ http_version:
1113
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
1114
+ - request:
1115
+ method: get
1116
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/member1/conditions
1117
+ body:
1118
+ encoding: US-ASCII
1119
+ string: ''
1120
+ headers:
1121
+ Accept:
1122
+ - application/json
1123
+ Accept-Encoding:
1124
+ - gzip, deflate
1125
+ Content-Type:
1126
+ - application/json
1127
+ User-Agent:
1128
+ - Ruby
1129
+ response:
1130
+ status:
1131
+ code: 200
1132
+ message: OK
1133
+ headers:
1134
+ Expires:
1135
+ - '0'
1136
+ Cache-Control:
1137
+ - no-cache, no-store, must-revalidate
1138
+ X-Powered-By:
1139
+ - Undertow/1
1140
+ Server:
1141
+ - WildFly/10
1142
+ Pragma:
1143
+ - no-cache
1144
+ Date:
1145
+ - Fri, 06 May 2016 13:28:06 GMT
1146
+ Connection:
1147
+ - keep-alive
1148
+ Content-Type:
1149
+ - application/json
1150
+ Content-Length:
1151
+ - '593'
1152
+ body:
1153
+ encoding: ASCII-8BIT
1154
+ string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"member1","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":2,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-member1-FIRING-2-1","dataId":"my-metric-id-member1","operator":"LT","threshold":5.0},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"member1","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":2,"conditionSetIndex":2,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-member1-FIRING-2-2","dataId":"my-metric-id2-member1","operator":"GT","threshold":50.0}]'
1155
+ http_version:
1156
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
1157
+ - request:
1158
+ method: get
1159
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/member1/dampenings
1160
+ body:
1161
+ encoding: US-ASCII
1162
+ string: ''
1163
+ headers:
1164
+ Accept:
1165
+ - application/json
1166
+ Accept-Encoding:
1167
+ - gzip, deflate
1168
+ Content-Type:
1169
+ - application/json
1170
+ User-Agent:
1171
+ - Ruby
1172
+ response:
1173
+ status:
1174
+ code: 200
1175
+ message: OK
1176
+ headers:
1177
+ Expires:
1178
+ - '0'
1179
+ Cache-Control:
1180
+ - no-cache, no-store, must-revalidate
1181
+ X-Powered-By:
1182
+ - Undertow/1
1183
+ Server:
1184
+ - WildFly/10
1185
+ Pragma:
1186
+ - no-cache
1187
+ Date:
1188
+ - Fri, 06 May 2016 13:28:06 GMT
1189
+ Connection:
1190
+ - keep-alive
1191
+ Content-Type:
1192
+ - application/json
1193
+ Content-Length:
1194
+ - '243'
1195
+ body:
1196
+ encoding: ASCII-8BIT
1197
+ string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"member1","triggerMode":"FIRING","type":"STRICT","evalTrueSetting":2,"evalTotalSetting":2,"evalTimeSetting":0,"dampeningId":"28026b36-8fe4-4332-84c8-524e173a68bf-member1-FIRING"}]'
1198
+ http_version:
1199
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
1200
+ - request:
1201
+ method: put
1202
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/groups/a-group-trigger/dampenings/28026b36-8fe4-4332-84c8-524e173a68bf-a-group-trigger-FIRING
1203
+ body:
1204
+ encoding: UTF-8
1205
+ string: '{"dampeningId":"28026b36-8fe4-4332-84c8-524e173a68bf-a-group-trigger-FIRING","triggerId":"a-group-trigger","type":"RELAXED_COUNT","evalTrueSetting":2,"evalTotalSetting":4,"evalTimeSetting":0}'
1206
+ headers:
1207
+ Accept:
1208
+ - application/json
1209
+ Accept-Encoding:
1210
+ - gzip, deflate
1211
+ Content-Type:
1212
+ - application/json
1213
+ Content-Length:
1214
+ - '191'
1215
+ User-Agent:
1216
+ - Ruby
1217
+ response:
1218
+ status:
1219
+ code: 200
1220
+ message: OK
1221
+ headers:
1222
+ Expires:
1223
+ - '0'
1224
+ Cache-Control:
1225
+ - no-cache, no-store, must-revalidate
1226
+ X-Powered-By:
1227
+ - Undertow/1
1228
+ Server:
1229
+ - WildFly/10
1230
+ Pragma:
1231
+ - no-cache
1232
+ Date:
1233
+ - Fri, 06 May 2016 13:28:06 GMT
1234
+ Connection:
1235
+ - keep-alive
1236
+ Content-Type:
1237
+ - application/json
1238
+ Content-Length:
1239
+ - '264'
1240
+ body:
1241
+ encoding: ASCII-8BIT
1242
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"a-group-trigger","triggerMode":"FIRING","type":"RELAXED_COUNT","evalTrueSetting":2,"evalTotalSetting":4,"evalTimeSetting":0,"dampeningId":"28026b36-8fe4-4332-84c8-524e173a68bf-a-group-trigger-FIRING"}'
1243
+ http_version:
1244
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
1245
+ - request:
1246
+ method: put
1247
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/groups/a-group-trigger/
1248
+ body:
1249
+ encoding: UTF-8
1250
+ string: '{"id":"a-group-trigger","name":"A Group Trigger","enabled":false,"severity":"HIGH","autoResolve":false,"autoResolveAlerts":true,"eventType":"ALERT","description":"A
1251
+ Group Trigger generated from test","autoEnable":false,"autoDisable":false,"context":{"alert-profiles":"profile1"},"type":"GROUP","tags":{"group-tname":"group-tvalue"},"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actions":[]}'
1252
+ headers:
1253
+ Accept:
1254
+ - application/json
1255
+ Accept-Encoding:
1256
+ - gzip, deflate
1257
+ Content-Type:
1258
+ - application/json
1259
+ Content-Length:
1260
+ - '395'
1261
+ User-Agent:
1262
+ - Ruby
1263
+ response:
1264
+ status:
1265
+ code: 200
1266
+ message: OK
1267
+ headers:
1268
+ Expires:
1269
+ - '0'
1270
+ Cache-Control:
1271
+ - no-cache, no-store, must-revalidate
1272
+ X-Powered-By:
1273
+ - Undertow/1
1274
+ Server:
1275
+ - WildFly/10
1276
+ Pragma:
1277
+ - no-cache
1278
+ Date:
1279
+ - Fri, 06 May 2016 13:28:06 GMT
1280
+ Connection:
1281
+ - keep-alive
1282
+ Content-Type:
1283
+ - application/json
1284
+ Content-Length:
1285
+ - '0'
1286
+ body:
1287
+ encoding: UTF-8
1288
+ string: ''
1289
+ http_version:
1290
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
1291
+ - request:
1292
+ method: get
1293
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/a-group-trigger
1294
+ body:
1295
+ encoding: US-ASCII
1296
+ string: ''
1297
+ headers:
1298
+ Accept:
1299
+ - application/json
1300
+ Accept-Encoding:
1301
+ - gzip, deflate
1302
+ Content-Type:
1303
+ - application/json
1304
+ User-Agent:
1305
+ - Ruby
1306
+ response:
1307
+ status:
1308
+ code: 200
1309
+ message: OK
1310
+ headers:
1311
+ Expires:
1312
+ - '0'
1313
+ Cache-Control:
1314
+ - no-cache, no-store, must-revalidate
1315
+ X-Powered-By:
1316
+ - Undertow/1
1317
+ Server:
1318
+ - WildFly/10
1319
+ Pragma:
1320
+ - no-cache
1321
+ Date:
1322
+ - Fri, 06 May 2016 13:28:06 GMT
1323
+ Connection:
1324
+ - keep-alive
1325
+ Content-Type:
1326
+ - application/json
1327
+ Content-Length:
1328
+ - '483'
1329
+ body:
1330
+ encoding: ASCII-8BIT
1331
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"a-group-trigger","name":"A
1332
+ Group Trigger","description":"A Group Trigger generated from test","type":"GROUP","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","context":{"alert-profiles":"profile1"},"tags":{"group-tname":"group-tvalue"},"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":false,"firingMatch":"ALL","source":"_none_"}'
1333
+ http_version:
1334
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
1335
+ - request:
1336
+ method: delete
1337
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/groups/a-group-trigger/dampenings/28026b36-8fe4-4332-84c8-524e173a68bf-a-group-trigger-FIRING
1338
+ body:
1339
+ encoding: US-ASCII
1340
+ string: ''
1341
+ headers:
1342
+ Accept:
1343
+ - application/json
1344
+ Accept-Encoding:
1345
+ - gzip, deflate
1346
+ Content-Type:
1347
+ - application/json
1348
+ User-Agent:
1349
+ - Ruby
1350
+ response:
1351
+ status:
1352
+ code: 200
1353
+ message: OK
1354
+ headers:
1355
+ Expires:
1356
+ - '0'
1357
+ Cache-Control:
1358
+ - no-cache, no-store, must-revalidate
1359
+ X-Powered-By:
1360
+ - Undertow/1
1361
+ Server:
1362
+ - WildFly/10
1363
+ Pragma:
1364
+ - no-cache
1365
+ Date:
1366
+ - Fri, 06 May 2016 13:28:06 GMT
1367
+ Connection:
1368
+ - keep-alive
1369
+ Content-Type:
1370
+ - application/json
1371
+ Content-Length:
1372
+ - '0'
1373
+ body:
1374
+ encoding: UTF-8
1375
+ string: ''
1376
+ http_version:
1377
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
1378
+ - request:
1379
+ method: get
1380
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/member1
1381
+ body:
1382
+ encoding: US-ASCII
1383
+ string: ''
1384
+ headers:
1385
+ Accept:
1386
+ - application/json
1387
+ Accept-Encoding:
1388
+ - gzip, deflate
1389
+ Content-Type:
1390
+ - application/json
1391
+ User-Agent:
1392
+ - Ruby
1393
+ response:
1394
+ status:
1395
+ code: 200
1396
+ message: OK
1397
+ headers:
1398
+ Expires:
1399
+ - '0'
1400
+ Cache-Control:
1401
+ - no-cache, no-store, must-revalidate
1402
+ X-Powered-By:
1403
+ - Undertow/1
1404
+ Server:
1405
+ - WildFly/10
1406
+ Pragma:
1407
+ - no-cache
1408
+ Date:
1409
+ - Fri, 06 May 2016 13:28:06 GMT
1410
+ Connection:
1411
+ - keep-alive
1412
+ Content-Type:
1413
+ - application/json
1414
+ Content-Length:
1415
+ - '552'
1416
+ body:
1417
+ encoding: ASCII-8BIT
1418
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"member1","name":"Member
1419
+ One","description":"A Group Trigger generated from test","type":"MEMBER","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","context":{"alert-profiles":"profile1"},"tags":{"group-tname":"group-tvalue"},"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","dataIdMap":{"my-metric-id":"my-metric-id-member1"},"memberOf":"a-group-trigger","enabled":false,"firingMatch":"ALL","source":"_none_"}'
1420
+ http_version:
1421
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
1422
+ - request:
1423
+ method: get
1424
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/member1/conditions
1425
+ body:
1426
+ encoding: US-ASCII
1427
+ string: ''
1428
+ headers:
1429
+ Accept:
1430
+ - application/json
1431
+ Accept-Encoding:
1432
+ - gzip, deflate
1433
+ Content-Type:
1434
+ - application/json
1435
+ User-Agent:
1436
+ - Ruby
1437
+ response:
1438
+ status:
1439
+ code: 200
1440
+ message: OK
1441
+ headers:
1442
+ Expires:
1443
+ - '0'
1444
+ Cache-Control:
1445
+ - no-cache, no-store, must-revalidate
1446
+ X-Powered-By:
1447
+ - Undertow/1
1448
+ Server:
1449
+ - WildFly/10
1450
+ Pragma:
1451
+ - no-cache
1452
+ Date:
1453
+ - Fri, 06 May 2016 13:28:06 GMT
1454
+ Connection:
1455
+ - keep-alive
1456
+ Content-Type:
1457
+ - application/json
1458
+ Content-Length:
1459
+ - '593'
1460
+ body:
1461
+ encoding: ASCII-8BIT
1462
+ string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"member1","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":2,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-member1-FIRING-2-1","dataId":"my-metric-id-member1","operator":"LT","threshold":5.0},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"member1","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":2,"conditionSetIndex":2,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-member1-FIRING-2-2","dataId":"my-metric-id2-member1","operator":"GT","threshold":50.0}]'
1463
+ http_version:
1464
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
1465
+ - request:
1466
+ method: get
1467
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/member1/dampenings
1468
+ body:
1469
+ encoding: US-ASCII
1470
+ string: ''
1471
+ headers:
1472
+ Accept:
1473
+ - application/json
1474
+ Accept-Encoding:
1475
+ - gzip, deflate
1476
+ Content-Type:
1477
+ - application/json
1478
+ User-Agent:
1479
+ - Ruby
1480
+ response:
1481
+ status:
1482
+ code: 200
1483
+ message: OK
1484
+ headers:
1485
+ Expires:
1486
+ - '0'
1487
+ Cache-Control:
1488
+ - no-cache, no-store, must-revalidate
1489
+ X-Powered-By:
1490
+ - Undertow/1
1491
+ Server:
1492
+ - WildFly/10
1493
+ Pragma:
1494
+ - no-cache
1495
+ Date:
1496
+ - Fri, 06 May 2016 13:28:06 GMT
1497
+ Connection:
1498
+ - keep-alive
1499
+ Content-Type:
1500
+ - application/json
1501
+ Content-Length:
1502
+ - '2'
1503
+ body:
1504
+ encoding: ASCII-8BIT
1505
+ string: "[]"
1506
+ http_version:
1507
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
1508
+ - request:
1509
+ method: put
1510
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/groups/a-group-trigger/conditions/FIRING
1511
+ body:
1512
+ encoding: UTF-8
1513
+ string: '{"conditions":[{"conditionId":null,"type":"THRESHOLD","operator":"LT","threshold":5,"triggerMode":"FIRING","dataId":"my-metric-id","data2Id":null,"data2Multiplier":null,"triggerId":null},{"conditionId":null,"type":"THRESHOLD","operator":"GT","threshold":50,"triggerMode":"FIRING","dataId":"my-metric-id2","data2Id":null,"data2Multiplier":null,"triggerId":null},{"conditionId":null,"type":"COMPARE","operator":"GT","threshold":null,"triggerMode":"FIRING","dataId":"my-metric-id3","data2Id":"my-metric-id4","data2Multiplier":1,"triggerId":null}],"dataIdMemberMap":{"my-metric-id":{"member1":"my-metric-id-member1"},"my-metric-id2":{"member1":"my-metric-id2-member1"},"my-metric-id3":{"member1":"my-metric-id3-member1"},"my-metric-id4":{"member1":"my-metric-id4-member1"}}}'
1514
+ headers:
1515
+ Accept:
1516
+ - application/json
1517
+ Accept-Encoding:
1518
+ - gzip, deflate
1519
+ Content-Type:
1520
+ - application/json
1521
+ Content-Length:
1522
+ - '770'
1523
+ User-Agent:
1524
+ - Ruby
1525
+ response:
1526
+ status:
1527
+ code: 200
1528
+ message: OK
1529
+ headers:
1530
+ Expires:
1531
+ - '0'
1532
+ Cache-Control:
1533
+ - no-cache, no-store, must-revalidate
1534
+ X-Powered-By:
1535
+ - Undertow/1
1536
+ Server:
1537
+ - WildFly/10
1538
+ Pragma:
1539
+ - no-cache
1540
+ Date:
1541
+ - Fri, 06 May 2016 13:28:06 GMT
1542
+ Connection:
1543
+ - keep-alive
1544
+ Content-Type:
1545
+ - application/json
1546
+ Content-Length:
1547
+ - '943'
1548
+ body:
1549
+ encoding: ASCII-8BIT
1550
+ string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"a-group-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":3,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-a-group-trigger-FIRING-3-1","dataId":"my-metric-id","operator":"LT","threshold":5.0},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"a-group-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":3,"conditionSetIndex":2,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-a-group-trigger-FIRING-3-2","dataId":"my-metric-id2","operator":"GT","threshold":50.0},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"a-group-trigger","triggerMode":"FIRING","type":"COMPARE","conditionSetSize":3,"conditionSetIndex":3,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-a-group-trigger-FIRING-3-3","dataId":"my-metric-id3","operator":"GT","data2Id":"my-metric-id4","data2Multiplier":1.0}]'
1551
+ http_version:
1552
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
1553
+ - request:
1554
+ method: get
1555
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/member1
1556
+ body:
1557
+ encoding: US-ASCII
1558
+ string: ''
1559
+ headers:
1560
+ Accept:
1561
+ - application/json
1562
+ Accept-Encoding:
1563
+ - gzip, deflate
1564
+ Content-Type:
1565
+ - application/json
1566
+ User-Agent:
1567
+ - Ruby
1568
+ response:
1569
+ status:
1570
+ code: 200
1571
+ message: OK
1572
+ headers:
1573
+ Expires:
1574
+ - '0'
1575
+ Cache-Control:
1576
+ - no-cache, no-store, must-revalidate
1577
+ X-Powered-By:
1578
+ - Undertow/1
1579
+ Server:
1580
+ - WildFly/10
1581
+ Pragma:
1582
+ - no-cache
1583
+ Date:
1584
+ - Fri, 06 May 2016 13:28:06 GMT
1585
+ Connection:
1586
+ - keep-alive
1587
+ Content-Type:
1588
+ - application/json
1589
+ Content-Length:
1590
+ - '552'
1591
+ body:
1592
+ encoding: ASCII-8BIT
1593
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"member1","name":"Member
1594
+ One","description":"A Group Trigger generated from test","type":"MEMBER","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","context":{"alert-profiles":"profile1"},"tags":{"group-tname":"group-tvalue"},"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","dataIdMap":{"my-metric-id":"my-metric-id-member1"},"memberOf":"a-group-trigger","enabled":false,"firingMatch":"ALL","source":"_none_"}'
1595
+ http_version:
1596
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
1597
+ - request:
1598
+ method: get
1599
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/member1/conditions
1600
+ body:
1601
+ encoding: US-ASCII
1602
+ string: ''
1603
+ headers:
1604
+ Accept:
1605
+ - application/json
1606
+ Accept-Encoding:
1607
+ - gzip, deflate
1608
+ Content-Type:
1609
+ - application/json
1610
+ User-Agent:
1611
+ - Ruby
1612
+ response:
1613
+ status:
1614
+ code: 200
1615
+ message: OK
1616
+ headers:
1617
+ Expires:
1618
+ - '0'
1619
+ Cache-Control:
1620
+ - no-cache, no-store, must-revalidate
1621
+ X-Powered-By:
1622
+ - Undertow/1
1623
+ Server:
1624
+ - WildFly/10
1625
+ Pragma:
1626
+ - no-cache
1627
+ Date:
1628
+ - Fri, 06 May 2016 13:28:06 GMT
1629
+ Connection:
1630
+ - keep-alive
1631
+ Content-Type:
1632
+ - application/json
1633
+ Content-Length:
1634
+ - '927'
1635
+ body:
1636
+ encoding: ASCII-8BIT
1637
+ string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"member1","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":3,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-member1-FIRING-3-1","dataId":"my-metric-id-member1","operator":"LT","threshold":5.0},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"member1","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":3,"conditionSetIndex":2,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-member1-FIRING-3-2","dataId":"my-metric-id2-member1","operator":"GT","threshold":50.0},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"member1","triggerMode":"FIRING","type":"COMPARE","conditionSetSize":3,"conditionSetIndex":3,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-member1-FIRING-3-3","dataId":"my-metric-id3-member1","operator":"GT","data2Id":"my-metric-id4-member1","data2Multiplier":1.0}]'
1638
+ http_version:
1639
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
1640
+ - request:
1641
+ method: get
1642
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/member1/dampenings
1643
+ body:
1644
+ encoding: US-ASCII
1645
+ string: ''
1646
+ headers:
1647
+ Accept:
1648
+ - application/json
1649
+ Accept-Encoding:
1650
+ - gzip, deflate
1651
+ Content-Type:
1652
+ - application/json
1653
+ User-Agent:
1654
+ - Ruby
1655
+ response:
1656
+ status:
1657
+ code: 200
1658
+ message: OK
1659
+ headers:
1660
+ Expires:
1661
+ - '0'
1662
+ Cache-Control:
1663
+ - no-cache, no-store, must-revalidate
1664
+ X-Powered-By:
1665
+ - Undertow/1
1666
+ Server:
1667
+ - WildFly/10
1668
+ Pragma:
1669
+ - no-cache
1670
+ Date:
1671
+ - Fri, 06 May 2016 13:28:06 GMT
1672
+ Connection:
1673
+ - keep-alive
1674
+ Content-Type:
1675
+ - application/json
1676
+ Content-Length:
1677
+ - '2'
1678
+ body:
1679
+ encoding: ASCII-8BIT
1680
+ string: "[]"
1681
+ http_version:
1682
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
1683
+ - request:
1684
+ method: delete
1685
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/groups/a-group-trigger
1686
+ body:
1687
+ encoding: US-ASCII
1688
+ string: ''
1689
+ headers:
1690
+ Accept:
1691
+ - application/json
1692
+ Accept-Encoding:
1693
+ - gzip, deflate
1694
+ Content-Type:
1695
+ - application/json
1696
+ User-Agent:
1697
+ - Ruby
1698
+ response:
1699
+ status:
1700
+ code: 200
1701
+ message: OK
1702
+ headers:
1703
+ Expires:
1704
+ - '0'
1705
+ Cache-Control:
1706
+ - no-cache, no-store, must-revalidate
1707
+ X-Powered-By:
1708
+ - Undertow/1
1709
+ Server:
1710
+ - WildFly/10
1711
+ Pragma:
1712
+ - no-cache
1713
+ Date:
1714
+ - Fri, 06 May 2016 13:28:06 GMT
1715
+ Connection:
1716
+ - keep-alive
1717
+ Content-Type:
1718
+ - application/json
1719
+ Content-Length:
1720
+ - '0'
1721
+ body:
1722
+ encoding: UTF-8
1723
+ string: ''
1724
+ http_version:
1725
+ recorded_at: Fri, 06 May 2016 13:28:06 GMT
1726
+ recorded_with: VCR 3.0.1