hawkular-client 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +2 -1
  4. data/.rubocop.yml +19 -6
  5. data/CHANGES.rdoc +13 -3
  6. data/README.rdoc +9 -3
  7. data/hawkularclient.gemspec +8 -4
  8. data/lib/alerts/alerts_api.rb +202 -32
  9. data/lib/hawkular.rb +35 -67
  10. data/lib/hawkular_all.rb +2 -0
  11. data/lib/inventory/inventory_api.rb +459 -130
  12. data/lib/metrics/metric_api.rb +14 -9
  13. data/lib/operations/operations_api.rb +247 -0
  14. data/lib/tokens/tokens_api.rb +33 -0
  15. data/lib/version.rb +1 -1
  16. data/spec/integration/alerts_spec.rb +272 -20
  17. data/spec/integration/hello-world-definitions.json +46 -0
  18. data/spec/integration/inventory_spec.rb +253 -89
  19. data/spec/integration/metric_spec.rb +36 -0
  20. data/spec/integration/operations_spec.rb +420 -0
  21. data/spec/integration/tokens_spec.rb +45 -0
  22. data/spec/resources/driver.jar +0 -0
  23. data/spec/resources/sample.war +0 -0
  24. data/spec/spec_helper.rb +30 -6
  25. data/spec/unit/base_spec.rb +22 -1
  26. data/spec/unit/canonical_path_spec.rb +92 -0
  27. data/spec/vcr/vcr_setup.rb +3 -4
  28. data/spec/vcr_cassettes/Alert/EndToEnd/Should_create_and_fire_a_trigger.yml +1187 -0
  29. data/spec/vcr_cassettes/Alert/Events/Should_list_events.yml +101 -0
  30. data/spec/vcr_cassettes/Alert/Events/Should_list_events_using_criteria.yml +79 -0
  31. data/spec/vcr_cassettes/Alert/Events/Should_not_list_events_using_criteria.yml +49 -0
  32. data/spec/vcr_cassettes/Alert/Triggers/Should_bulk_load_triggers.yml +225 -0
  33. data/spec/vcr_cassettes/Alert/Triggers/Should_create_a_basic_trigger_with_action.yml +355 -0
  34. data/spec/vcr_cassettes/Alert/Triggers/Should_create_an_action.yml +134 -0
  35. data/spec/vcr_cassettes/Alert/Triggers/Should_create_an_action_for_webhooks.yml +220 -0
  36. data/spec/vcr_cassettes/Alert/Triggers/Should_get_the_action_definitions.yml +218 -0
  37. data/spec/vcr_cassettes/Alert/Triggers/Should_not_create_an_action_for_unknown_plugin.yml +46 -0
  38. data/spec/vcr_cassettes/Alert/Triggers/Should_not_create_an_action_for_unknown_properties.yml +134 -0
  39. data/spec/vcr_cassettes/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +270 -0
  40. data/spec/vcr_cassettes/Inventory/Client_should_listen_on_various_inventory_events.json +47 -0
  41. data/spec/vcr_cassettes/Inventory/Client_should_listen_on_various_inventory_events.yml +191 -0
  42. data/spec/vcr_cassettes/Inventory/Helpers/generate_some_events_for_websocket.yml +507 -0
  43. data/spec/vcr_cassettes/Inventory/Should_List_datasources_with_no_props.yml +74 -69
  44. data/spec/vcr_cassettes/Inventory/{Should_list_types_without_feed.yml → Should_create_a_feed.yml} +29 -32
  45. data/spec/vcr_cassettes/Inventory/Should_create_a_feed_again.yml +211 -0
  46. data/spec/vcr_cassettes/Inventory/Should_create_a_resource_.yml +355 -0
  47. data/spec/vcr_cassettes/Inventory/Should_create_a_resource_with_metric.yml +786 -0
  48. data/spec/vcr_cassettes/Inventory/Should_create_a_resourcetype.yml +205 -0
  49. data/spec/vcr_cassettes/Inventory/Should_create_and_delete_feed.yml +201 -0
  50. data/spec/vcr_cassettes/Inventory/Should_create_and_get_a_resource.yml +419 -0
  51. data/spec/vcr_cassettes/Inventory/Should_list_URLs.yml +39 -27
  52. data/spec/vcr_cassettes/Inventory/Should_list_WildFlys.yml +37 -29
  53. data/spec/vcr_cassettes/Inventory/Should_list_WildFlys_with_props.yml +53 -45
  54. data/spec/vcr_cassettes/Inventory/Should_list_all_the_resource_types.yml +177 -0
  55. data/spec/vcr_cassettes/Inventory/Should_list_children_of_WildFly.yml +230 -56
  56. data/spec/vcr_cassettes/Inventory/Should_list_feeds.yml +27 -24
  57. data/spec/vcr_cassettes/Inventory/Should_list_heap_metrics_for_WildFlys.yml +586 -119
  58. data/spec/vcr_cassettes/Inventory/Should_list_metrics_for_WildFlys.yml +220 -59
  59. data/spec/vcr_cassettes/Inventory/Should_list_metrics_of_given_metric_type.yml +613 -0
  60. data/spec/vcr_cassettes/Inventory/Should_list_metrics_of_given_resource_type.yml +333 -0
  61. data/spec/vcr_cassettes/Inventory/Should_list_recursive_children_of_WildFly.yml +2064 -0
  62. data/spec/vcr_cassettes/Inventory/Should_list_relationships_of_WildFly.yml +460 -0
  63. data/spec/vcr_cassettes/Inventory/Should_list_types_with_bad_feed.yml +26 -25
  64. data/spec/vcr_cassettes/Inventory/Should_list_types_with_feed.yml +102 -36
  65. data/spec/vcr_cassettes/Inventory/Should_not_find_an_unknown_resource.yml +54 -0
  66. data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Explicit_Credentials.yml +50 -0
  67. data/spec/vcr_cassettes/Inventory/Tenants/Should_Get_Tenant_For_Implicit_Credentials.yml +50 -0
  68. data/spec/vcr_cassettes/Operation/Helpers/get_tenant.yml +50 -0
  69. data/spec/vcr_cassettes/Operation/Operation/Add_JDBC_driver_should_add_the_driver.json +26 -0
  70. data/spec/vcr_cassettes/Operation/Operation/Add_datasource_should_be_doable.json +26 -0
  71. data/spec/vcr_cassettes/Operation/Operation/Add_deployment_should_be_doable.json +26 -0
  72. data/spec/vcr_cassettes/Operation/Operation/Redeploy_can_be_run_multiple_times_in_parallel.json +40 -0
  73. data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_be_performed_and_eventually_respond_with_success.json +26 -0
  74. data/spec/vcr_cassettes/Operation/Operation/Redeploy_should_not_be_performed_if_resource_path_is_wrong.json +26 -0
  75. data/spec/vcr_cassettes/Operation/Operation/Remove_JDBC_driver_should_be_performed_and_eventually_respond_with_success.json +26 -0
  76. data/spec/vcr_cassettes/Operation/Operation/Remove_datasource_should_be_performed_and_eventually_respond_with_success.json +26 -0
  77. data/spec/vcr_cassettes/Operation/Operation/Remove_deployment_should_be_performed_and_eventually_respond_with_success.json +26 -0
  78. data/spec/vcr_cassettes/Operation/Operation/Undeploy_should_be_performed_and_eventually_respond_with_success.json +26 -0
  79. data/spec/vcr_cassettes/Operation/Operation/should_not_be_possible_to_perform_on_closed_client.json +12 -0
  80. data/spec/vcr_cassettes/Operation/Websocket_connection/should_be_established.json +9 -0
  81. data/spec/vcr_cassettes/Tokens/Should_be_able_to_create_a_new_token_for_an_actual_user.yml +57 -0
  82. data/spec/vcr_cassettes/Tokens/Should_be_able_to_list_the_available_tokens.yml +49 -0
  83. data/spec/vcr_cassettes/Tokens/Should_get_a_401_when_attempting_to_create_a_token_with_a_wrong_password.yml +56 -0
  84. data/spec/vcr_cassettes/Tokens/Should_get_a_401_when_attempting_to_create_a_token_without_a_password.yml +55 -0
  85. metadata +175 -11
  86. data/lib/metrics/version.rb +0 -7
@@ -0,0 +1,45 @@
1
+ require "#{File.dirname(__FILE__)}/../vcr/vcr_setup"
2
+ require "#{File.dirname(__FILE__)}/../spec_helper"
3
+
4
+ module Hawkular::Token::RSpec
5
+ HAWKULAR_BASE = 'http://localhost:8080'.freeze
6
+ describe 'Tokens', :vcr do
7
+ it 'Should be able to list the available tokens' do
8
+ creds = { username: 'jdoe', password: 'password' }
9
+ client = Hawkular::Token::TokenClient.new(HAWKULAR_BASE, creds)
10
+ tokens = client.get_tokens(creds)
11
+ expect(tokens).to be_empty
12
+ end
13
+
14
+ it 'Should be able to create a new token for an actual user' do
15
+ creds = { username: 'jdoe', password: 'password' }
16
+ client = Hawkular::Token::TokenClient.new(HAWKULAR_BASE, creds)
17
+ token = client.create_token(creds)
18
+ expect(token['key']).not_to be_nil
19
+ expect(token['secret']).not_to be_nil
20
+ expect(token['attributes']['name']).to eq('Token created via Hawkular Ruby Client')
21
+ end
22
+
23
+ it 'Should get a 401 when attempting to create a token with a wrong password' do
24
+ creds = { username: 'jdoe', password: 'mywrongpassword' }
25
+ client = Hawkular::Token::TokenClient.new(HAWKULAR_BASE, creds)
26
+ begin
27
+ client.create_token(creds)
28
+ fail 'Should have failed with 401'
29
+ rescue Hawkular::BaseClient::HawkularException => exception
30
+ expect(exception.status_code).to be(401)
31
+ end
32
+ end
33
+
34
+ it 'Should get a 401 when attempting to create a token without a password' do
35
+ creds = { username: 'jdoe', password: '' }
36
+ client = Hawkular::Token::TokenClient.new(HAWKULAR_BASE, creds)
37
+ begin
38
+ client.create_token(creds)
39
+ fail 'Should have failed with 401'
40
+ rescue Hawkular::BaseClient::HawkularException => exception
41
+ expect(exception.status_code).to be(401)
42
+ end
43
+ end
44
+ end
45
+ end
Binary file
Binary file
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,8 @@
1
- require 'hawkular'
2
- require 'metrics/metrics_client'
3
- require 'inventory/inventory_api'
4
- require 'alerts/alerts_api'
1
+ # This needs to go before all requires to be able to record full coverage
2
+ require 'coveralls'
3
+ Coveralls.wear!
4
+ # Now the application requires.
5
+ require 'hawkular_all'
5
6
  require 'rspec/core'
6
7
  require 'rspec/mocks'
7
8
  require 'socket'
@@ -11,8 +12,8 @@ require 'yaml'
11
12
  module Hawkular::Metrics::RSpec
12
13
  def setup_client(options = {})
13
14
  credentials = {
14
- username: config['user'],
15
- password: config['password']
15
+ username: options[:username].nil? ? config['user'] : options[:username],
16
+ password: options[:password].nil? ? config['password'] : options[:password]
16
17
  }
17
18
  @client = Hawkular::Metrics::Client.new(config['url'],
18
19
  credentials, options)
@@ -32,8 +33,30 @@ module Hawkular::Metrics::RSpec
32
33
  end
33
34
  end
34
35
 
36
+ module Hawkular::Operations::RSpec
37
+ SLEEP_SECONDS = 0.04
38
+ MAX_ATTEMPTS = 60
39
+
40
+ def wait_for(object)
41
+ fast = VCR::WebSocket.cassette && !VCR::WebSocket.cassette.recording?
42
+ sleep_interval = SLEEP_SECONDS * (fast ? 1 : 10)
43
+ attempt = 0
44
+ sleep sleep_interval while object[:data].nil? && (attempt += 1) < MAX_ATTEMPTS
45
+ if attempt == MAX_ATTEMPTS
46
+ puts 'timeout hit'
47
+ {}
48
+ else
49
+ object[:data]
50
+ end
51
+ end
52
+ end
53
+
35
54
  RSpec.configure do |config|
36
55
  config.include Hawkular::Metrics::RSpec
56
+ config.include Hawkular::Operations::RSpec
57
+
58
+ # skip the tests that have the :skip metadata on them
59
+ config.filter_run_excluding :skip
37
60
 
38
61
  # Sometimes one wants to check if the real api has
39
62
  # changed, so turn off VCR and use live connections
@@ -41,6 +64,7 @@ RSpec.configure do |config|
41
64
  if ENV['VCR_OFF'] == '1'
42
65
  VCR.eject_cassette
43
66
  VCR.turn_off!(ignore_cassettes: true)
67
+ VCR::WebSocket.turn_off!
44
68
  WebMock.allow_net_connect!
45
69
  puts 'VCR is turned off!'
46
70
  end
@@ -52,6 +52,27 @@ describe 'Base Spec' do
52
52
  c = Hawkular::BaseClient.new('not-needed-for-this-test')
53
53
  ret = c.generate_query_params params
54
54
 
55
- expect(ret).to eql('')
55
+ expect(ret).to eq('')
56
+ end
57
+
58
+ it 'should escape numbers' do
59
+ c = Hawkular::BaseClient.new('not-needed-for-this-test')
60
+ ret = c.hawk_escape 12_345
61
+
62
+ expect(ret).to eq('12345')
63
+ end
64
+
65
+ it 'should escape alpha' do
66
+ c = Hawkular::BaseClient.new('not-needed-for-this-test')
67
+ ret = c.hawk_escape 'a12345'
68
+
69
+ expect(ret).to eq('a12345')
70
+ end
71
+
72
+ it 'should escape strange stuff' do
73
+ c = Hawkular::BaseClient.new('not-needed-for-this-test')
74
+ ret = c.hawk_escape 'a1%2 3|45/'
75
+
76
+ expect(ret).to eq('a1%252%203%7c45%2f')
56
77
  end
57
78
  end
@@ -0,0 +1,92 @@
1
+ require '#{File.dirname(__FILE__)}/../spec_helper'
2
+ include Hawkular::Inventory
3
+
4
+ describe 'CanonicalPath' do
5
+ # positive cases :)
6
+ context 'with valid path' do
7
+ it 'should be parseable' do
8
+ expect(CanonicalPath.parse('/t;t1/f;f1/r;r1'))
9
+ .to be == CanonicalPath.new(tenant_id: 't1', feed_id: 'f1', resource_ids: ['r1'])
10
+
11
+ expect(CanonicalPath.parse('/t;t1/f;f1/m;m1'))
12
+ .to be == CanonicalPath.new(tenant_id: 't1', feed_id: 'f1', metric_id: 'm1')
13
+
14
+ expect(CanonicalPath.parse('/t;t1/f;f1/rt;rt1'))
15
+ .to be == CanonicalPath.new(tenant_id: 't1', feed_id: 'f1', resource_type_id: 'rt1')
16
+
17
+ expect(CanonicalPath.parse('/t;t1/f;f1/mt;mt1'))
18
+ .to be == CanonicalPath.new(tenant_id: 't1', feed_id: 'f1', metric_type_id: 'mt1')
19
+
20
+ expect(CanonicalPath.parse('/t;t1/e;e1/r;r1'))
21
+ .to be == CanonicalPath.new(tenant_id: 't1', environment_id: 'e1', resource_ids: ['r1'])
22
+
23
+ expect(CanonicalPath.parse('/t;t1/e;e1/m;m1'))
24
+ .to be == CanonicalPath.new(tenant_id: 't1', environment_id: 'e1', metric_id: 'm1')
25
+
26
+ expect(CanonicalPath.parse('/t;t1/rt;rt1'))
27
+ .to be == CanonicalPath.new(tenant_id: 't1', resource_type_id: 'rt1')
28
+
29
+ expect(CanonicalPath.parse('/t;t1/mt;mt1'))
30
+ .to be == CanonicalPath.new(tenant_id: 't1', metric_type_id: 'mt1')
31
+ end
32
+
33
+ it 'with resource hierarchy should be parseable' do
34
+ expect(CanonicalPath.parse('/t;t1/f;f1/r;r1/r;r2/r;r3/r;r4/r;r5'))
35
+ .to be == CanonicalPath.new(tenant_id: 't1', feed_id: 'f1', resource_ids: %w(r1 r2 r3 r4 r5))
36
+ expect(CanonicalPath.parse('/t;t1/e;e1/r;r1/r;r2/r;r3'))
37
+ .to be == CanonicalPath.new(tenant_id: 't1', environment_id: 'e1', resource_ids: %w(r1 r2 r3))
38
+ end
39
+
40
+ it 'should be identity when calling parse and then to_s' do
41
+ path_str = '/t;t1/e;e1/r;r1/r;r2'
42
+ path1 = CanonicalPath.parse(path_str)
43
+ expect(CanonicalPath.parse(path1.to_s)).to be == path1
44
+ expect(path1.to_s).to eql(path_str)
45
+
46
+ path2 = CanonicalPath.new(tenant_id: 'tenant', resource_type_id: 'type')
47
+ expect(CanonicalPath.parse(path2.to_s)).to be == path2
48
+ expect(CanonicalPath.parse(CanonicalPath.parse(path2.to_s).to_s)).to be == path2
49
+ end
50
+
51
+ it 'should be readable' do
52
+ tenant_id = 'tenant'
53
+ feed_id = 'feed'
54
+ metric_type_id = 'm_type'
55
+ res1_id = 'resource_1'
56
+ res2_id = 'resource_2'
57
+
58
+ path = CanonicalPath.parse("/t;#{tenant_id}/f;#{feed_id}/mt;#{metric_type_id}")
59
+ expect(path.tenant_id).to eql(tenant_id)
60
+ expect(path.feed_id).to eql(feed_id)
61
+ expect(path.metric_type_id).to eql(metric_type_id)
62
+
63
+ other_path = CanonicalPath.parse("/t;#{tenant_id}/f;#{feed_id}/r;#{res1_id}/r;#{res2_id}")
64
+ expect(other_path.tenant_id).to eql(tenant_id)
65
+ expect(other_path.feed_id).to eql(feed_id)
66
+ expect(other_path.resource_ids).to eql([res1_id, res2_id])
67
+ end
68
+ end
69
+
70
+ # negative cases :(
71
+ it 'with empty path cannot be parsed' do
72
+ expect { CanonicalPath.parse(nil) }.to raise_error(RuntimeError)
73
+ expect { CanonicalPath.parse('') }.to raise_error(RuntimeError)
74
+ expect { CanonicalPath.parse(' ') }.to raise_error(RuntimeError)
75
+ end
76
+
77
+ context 'with no tenant id' do
78
+ it 'should not be parseable' do
79
+ expect { CanonicalPath.parse('/f;myFeed/rt;resType') }.to raise_error(RuntimeError)
80
+ end
81
+
82
+ it 'should not be constructed' do
83
+ expect { CanonicalPath.new(feed_id: 'something') }.to raise_error(RuntimeError)
84
+ end
85
+ end
86
+
87
+ it 'with empty path cannot be parsed' do
88
+ expect { CanonicalPath.parse(nil) }.to raise_error(RuntimeError)
89
+ expect { CanonicalPath.parse('') }.to raise_error(RuntimeError)
90
+ expect { CanonicalPath.parse(' ') }.to raise_error(RuntimeError)
91
+ end
92
+ 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|
@@ -9,8 +10,6 @@ VCR.configure do |c|
9
10
  c.configure_rspec_metadata!
10
11
  end
11
12
 
12
- RSpec.configure do |c|
13
- # so we can use :vcr rather than :vcr => true;
14
- # in RSpec 3 this will no longer be necessary.
15
- c.treat_symbols_as_metadata_keys_with_true_values = true
13
+ VCR::WebSocket.configure do |c|
14
+ c.cassette_library_dir = 'spec/vcr_cassettes'
16
15
  end
@@ -0,0 +1,1187 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/plugins/email
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Expires:
24
+ - '0'
25
+ Cache-Control:
26
+ - no-cache, no-store, must-revalidate
27
+ X-Powered-By:
28
+ - Undertow/1
29
+ Server:
30
+ - WildFly/10
31
+ Pragma:
32
+ - no-cache
33
+ Date:
34
+ - Mon, 14 Mar 2016 10:36:22 GMT
35
+ Connection:
36
+ - keep-alive
37
+ Content-Type:
38
+ - application/json
39
+ Content-Length:
40
+ - '87'
41
+ body:
42
+ encoding: ASCII-8BIT
43
+ string: '["cc","from","from-name","template.hawkular.url","template.html","template.plain","to"]'
44
+ http_version:
45
+ recorded_at: Mon, 14 Mar 2016 10:36:22 GMT
46
+ - request:
47
+ method: post
48
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/actions
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"actionId":"send-via-email","actionPlugin":"email","properties":{"to":"joe@acme.org","from":"admin@acme.org"}}'
52
+ headers:
53
+ Accept:
54
+ - application/json
55
+ Accept-Encoding:
56
+ - gzip, deflate
57
+ Content-Type:
58
+ - application/json
59
+ Content-Length:
60
+ - '111'
61
+ User-Agent:
62
+ - Ruby
63
+ response:
64
+ status:
65
+ code: 200
66
+ message: OK
67
+ headers:
68
+ Expires:
69
+ - '0'
70
+ Cache-Control:
71
+ - no-cache, no-store, must-revalidate
72
+ X-Powered-By:
73
+ - Undertow/1
74
+ Server:
75
+ - WildFly/10
76
+ Pragma:
77
+ - no-cache
78
+ Date:
79
+ - Mon, 14 Mar 2016 10:36:22 GMT
80
+ Connection:
81
+ - keep-alive
82
+ Content-Type:
83
+ - application/json
84
+ Content-Length:
85
+ - '161'
86
+ body:
87
+ encoding: ASCII-8BIT
88
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email","properties":{"to":"joe@acme.org","from":"admin@acme.org"}}'
89
+ http_version:
90
+ recorded_at: Mon, 14 Mar 2016 10:36:22 GMT
91
+ - request:
92
+ method: get
93
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/plugins/webhook
94
+ body:
95
+ encoding: US-ASCII
96
+ string: ''
97
+ headers:
98
+ Accept:
99
+ - application/json
100
+ Accept-Encoding:
101
+ - gzip, deflate
102
+ Content-Type:
103
+ - application/json
104
+ User-Agent:
105
+ - Ruby
106
+ response:
107
+ status:
108
+ code: 200
109
+ message: OK
110
+ headers:
111
+ Expires:
112
+ - '0'
113
+ Cache-Control:
114
+ - no-cache, no-store, must-revalidate
115
+ X-Powered-By:
116
+ - Undertow/1
117
+ Server:
118
+ - WildFly/10
119
+ Pragma:
120
+ - no-cache
121
+ Date:
122
+ - Mon, 14 Mar 2016 10:36:22 GMT
123
+ Connection:
124
+ - keep-alive
125
+ Content-Type:
126
+ - application/json
127
+ Content-Length:
128
+ - '16'
129
+ body:
130
+ encoding: ASCII-8BIT
131
+ string: '["method","url"]'
132
+ http_version:
133
+ recorded_at: Mon, 14 Mar 2016 10:36:22 GMT
134
+ - request:
135
+ method: post
136
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/actions
137
+ body:
138
+ encoding: UTF-8
139
+ string: '{"actionId":"send-via-webhook","actionPlugin":"webhook","properties":{"url":"http://172.31.7.177/","method":"POST"}}'
140
+ headers:
141
+ Accept:
142
+ - application/json
143
+ Accept-Encoding:
144
+ - gzip, deflate
145
+ Content-Type:
146
+ - application/json
147
+ Content-Length:
148
+ - '116'
149
+ User-Agent:
150
+ - Ruby
151
+ response:
152
+ status:
153
+ code: 200
154
+ message: OK
155
+ headers:
156
+ Expires:
157
+ - '0'
158
+ Cache-Control:
159
+ - no-cache, no-store, must-revalidate
160
+ X-Powered-By:
161
+ - Undertow/1
162
+ Server:
163
+ - WildFly/10
164
+ Pragma:
165
+ - no-cache
166
+ Date:
167
+ - Mon, 14 Mar 2016 10:36:22 GMT
168
+ Connection:
169
+ - keep-alive
170
+ Content-Type:
171
+ - application/json
172
+ Content-Length:
173
+ - '166'
174
+ body:
175
+ encoding: ASCII-8BIT
176
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"webhook","actionId":"send-via-webhook","properties":{"url":"http://172.31.7.177/","method":"POST"}}'
177
+ http_version:
178
+ recorded_at: Mon, 14 Mar 2016 10:36:22 GMT
179
+ - request:
180
+ method: post
181
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/trigger
182
+ body:
183
+ encoding: UTF-8
184
+ string: '{"trigger":{"id":"my-cool-email-trigger","name":"Just a trigger","enabled":true,"severity":"HIGH","description":"Just
185
+ a test trigger","actions":[{"actionPlugin":"email","actionId":"send-via-email","tenantId":null,"states":null},{"actionPlugin":"webhook","actionId":"send-via-webhook","tenantId":null,"states":null}]},"conditions":[{"conditionId":null,"type":"THRESHOLD","operator":"GT","threshold":5,"triggerMode":"FIRING","dataId":"my-metric-id1","triggerId":null}],"dampenings":[]}'
186
+ headers:
187
+ Accept:
188
+ - application/json
189
+ Accept-Encoding:
190
+ - gzip, deflate
191
+ Content-Type:
192
+ - application/json
193
+ Content-Length:
194
+ - '483'
195
+ User-Agent:
196
+ - Ruby
197
+ response:
198
+ status:
199
+ code: 200
200
+ message: OK
201
+ headers:
202
+ Expires:
203
+ - '0'
204
+ Cache-Control:
205
+ - no-cache, no-store, must-revalidate
206
+ X-Powered-By:
207
+ - Undertow/1
208
+ Server:
209
+ - WildFly/10
210
+ Pragma:
211
+ - no-cache
212
+ Date:
213
+ - Mon, 14 Mar 2016 10:36:22 GMT
214
+ Connection:
215
+ - keep-alive
216
+ Content-Type:
217
+ - application/json
218
+ Content-Length:
219
+ - '961'
220
+ body:
221
+ encoding: ASCII-8BIT
222
+ string: '{"trigger":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger","name":"Just
223
+ a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email"},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"webhook","actionId":"send-via-webhook"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"conditions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING-1-1","dataId":"my-metric-id1","operator":"GT","threshold":5.0}]}'
224
+ http_version:
225
+ recorded_at: Mon, 14 Mar 2016 10:36:22 GMT
226
+ - request:
227
+ method: get
228
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/my-cool-email-trigger
229
+ body:
230
+ encoding: US-ASCII
231
+ string: ''
232
+ headers:
233
+ Accept:
234
+ - application/json
235
+ Accept-Encoding:
236
+ - gzip, deflate
237
+ Content-Type:
238
+ - application/json
239
+ User-Agent:
240
+ - Ruby
241
+ response:
242
+ status:
243
+ code: 200
244
+ message: OK
245
+ headers:
246
+ Expires:
247
+ - '0'
248
+ Cache-Control:
249
+ - no-cache, no-store, must-revalidate
250
+ X-Powered-By:
251
+ - Undertow/1
252
+ Server:
253
+ - WildFly/10
254
+ Pragma:
255
+ - no-cache
256
+ Date:
257
+ - Mon, 14 Mar 2016 10:36:22 GMT
258
+ Connection:
259
+ - keep-alive
260
+ Content-Type:
261
+ - application/json
262
+ Content-Length:
263
+ - '618'
264
+ body:
265
+ encoding: ASCII-8BIT
266
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger","name":"Just
267
+ a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"webhook","actionId":"send-via-webhook"},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"}'
268
+ http_version:
269
+ recorded_at: Mon, 14 Mar 2016 10:36:22 GMT
270
+ - request:
271
+ method: get
272
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/my-cool-email-trigger/conditions
273
+ body:
274
+ encoding: US-ASCII
275
+ string: ''
276
+ headers:
277
+ Accept:
278
+ - application/json
279
+ Accept-Encoding:
280
+ - gzip, deflate
281
+ Content-Type:
282
+ - application/json
283
+ User-Agent:
284
+ - Ruby
285
+ response:
286
+ status:
287
+ code: 200
288
+ message: OK
289
+ headers:
290
+ Expires:
291
+ - '0'
292
+ Cache-Control:
293
+ - no-cache, no-store, must-revalidate
294
+ X-Powered-By:
295
+ - Undertow/1
296
+ Server:
297
+ - WildFly/10
298
+ Pragma:
299
+ - no-cache
300
+ Date:
301
+ - Mon, 14 Mar 2016 10:36:22 GMT
302
+ Connection:
303
+ - keep-alive
304
+ Content-Type:
305
+ - application/json
306
+ Content-Length:
307
+ - '317'
308
+ body:
309
+ encoding: ASCII-8BIT
310
+ string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING-1-1","dataId":"my-metric-id1","operator":"GT","threshold":5.0}]'
311
+ http_version:
312
+ recorded_at: Mon, 14 Mar 2016 10:36:22 GMT
313
+ - request:
314
+ method: get
315
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/my-cool-email-trigger/dampenings
316
+ body:
317
+ encoding: US-ASCII
318
+ string: ''
319
+ headers:
320
+ Accept:
321
+ - application/json
322
+ Accept-Encoding:
323
+ - gzip, deflate
324
+ Content-Type:
325
+ - application/json
326
+ User-Agent:
327
+ - Ruby
328
+ response:
329
+ status:
330
+ code: 200
331
+ message: OK
332
+ headers:
333
+ Expires:
334
+ - '0'
335
+ Cache-Control:
336
+ - no-cache, no-store, must-revalidate
337
+ X-Powered-By:
338
+ - Undertow/1
339
+ Server:
340
+ - WildFly/10
341
+ Pragma:
342
+ - no-cache
343
+ Date:
344
+ - Mon, 14 Mar 2016 10:36:22 GMT
345
+ Connection:
346
+ - keep-alive
347
+ Content-Type:
348
+ - application/json
349
+ Content-Length:
350
+ - '2'
351
+ body:
352
+ encoding: ASCII-8BIT
353
+ string: '[]'
354
+ http_version:
355
+ recorded_at: Mon, 14 Mar 2016 10:36:22 GMT
356
+ - request:
357
+ method: post
358
+ uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/data
359
+ body:
360
+ encoding: UTF-8
361
+ string: '{"gauges":[{"id":"my-metric-id1","data":[{"timestamp":1457951782000,"value":42}]}],"counters":[],"availabilities":[]}'
362
+ headers:
363
+ Accept:
364
+ - application/json
365
+ Accept-Encoding:
366
+ - gzip, deflate
367
+ Content-Type:
368
+ - application/json
369
+ Content-Length:
370
+ - '117'
371
+ User-Agent:
372
+ - Ruby
373
+ response:
374
+ status:
375
+ code: 200
376
+ message: OK
377
+ headers:
378
+ Connection:
379
+ - keep-alive
380
+ X-Powered-By:
381
+ - Undertow/1
382
+ Server:
383
+ - WildFly/10
384
+ Content-Length:
385
+ - '0'
386
+ Date:
387
+ - Mon, 14 Mar 2016 10:36:23 GMT
388
+ body:
389
+ encoding: UTF-8
390
+ string: ''
391
+ http_version:
392
+ recorded_at: Mon, 14 Mar 2016 10:36:23 GMT
393
+ - request:
394
+ method: get
395
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/?triggerIds=my-cool-email-trigger
396
+ body:
397
+ encoding: US-ASCII
398
+ string: ''
399
+ headers:
400
+ Accept:
401
+ - application/json
402
+ Accept-Encoding:
403
+ - gzip, deflate
404
+ Content-Type:
405
+ - application/json
406
+ User-Agent:
407
+ - Ruby
408
+ response:
409
+ status:
410
+ code: 200
411
+ message: OK
412
+ headers:
413
+ Expires:
414
+ - '0'
415
+ Cache-Control:
416
+ - no-cache, no-store, must-revalidate
417
+ X-Powered-By:
418
+ - Undertow/1
419
+ Server:
420
+ - WildFly/10
421
+ Pragma:
422
+ - no-cache
423
+ Date:
424
+ - Mon, 14 Mar 2016 10:36:28 GMT
425
+ X-Total-Count:
426
+ - '12'
427
+ Connection:
428
+ - keep-alive
429
+ Content-Type:
430
+ - application/json
431
+ Content-Length:
432
+ - '24660'
433
+ Link:
434
+ - <http://localhost:8080/hawkular/alerts/?triggerIds=my-cool-email-trigger>;
435
+ rel="current", <http://localhost:8080/hawkular/alerts/?triggerIds=my-cool-email-trigger&page=0>;
436
+ rel="last"
437
+ body:
438
+ encoding: ASCII-8BIT
439
+ string: '[{"eventType":"ALERT","tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger-1457951783571-09e6f6a9-5ef9-481b-9b00-15675a32970b","ctime":1457951783571,"dataSource":"_none_","dataId":"my-cool-email-trigger","category":"ALERT","text":"Just
440
+ a test trigger","trigger":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger","name":"Just
441
+ a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"webhook","actionId":"send-via-webhook"},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"dampening":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"STRICT","evalTrueSetting":1,"evalTotalSetting":1,"evalTimeSetting":0,"dampeningId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING"},"evalSets":[[{"evalTimestamp":1457951783570,"dataTimestamp":1457951782000,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING-1-1","dataId":"my-metric-id1","operator":"GT","threshold":5.0},"value":42.0}]],"severity":"HIGH","status":"OPEN","ackTime":0,"ackBy":null,"resolvedTime":0,"resolvedBy":null},{"eventType":"ALERT","tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger-1457949814758-43fed92e-1de6-4f35-945f-9fa7c4cabc69","ctime":1457949814758,"dataSource":"_none_","dataId":"my-cool-email-trigger","category":"ALERT","text":"Just
442
+ a test trigger","trigger":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger","name":"Just
443
+ a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"webhook","actionId":"send-via-webhook"},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"dampening":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"STRICT","evalTrueSetting":1,"evalTotalSetting":1,"evalTimeSetting":0,"dampeningId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING"},"evalSets":[[{"evalTimestamp":1457949814758,"dataTimestamp":1457949812000,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING-1-1","dataId":"my-metric-id1","operator":"GT","threshold":5.0},"value":42.0}]],"severity":"HIGH","status":"RESOLVED","ackTime":0,"ackBy":null,"resolvedTime":1457949818049,"resolvedBy":"Heiko","notes":[{"user":"Heiko","ctime":1457949818049,"text":"Hello
444
+ Ruby World :-)"}]},{"eventType":"ALERT","tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger-1457949248037-9fa5715b-fc92-4989-8e1e-5fedf72f0b76","ctime":1457949248037,"dataSource":"_none_","dataId":"my-cool-email-trigger","category":"ALERT","text":"Just
445
+ a test trigger","trigger":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger","name":"Just
446
+ a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"webhook","actionId":"send-via-webhook"},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"dampening":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"STRICT","evalTrueSetting":1,"evalTotalSetting":1,"evalTimeSetting":0,"dampeningId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING"},"evalSets":[[{"evalTimestamp":1457949248036,"dataTimestamp":1457949246000,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING-1-1","dataId":"my-metric-id1","operator":"GT","threshold":5.0},"value":42.0}]],"severity":"HIGH","status":"RESOLVED","ackTime":0,"ackBy":null,"resolvedTime":1457949818182,"resolvedBy":"Heiko","notes":[{"user":"Heiko","ctime":1457949251744,"text":"Hello
447
+ Ruby World :-)"},{"user":"Heiko","ctime":1457949818182,"text":"Hello Ruby
448
+ World :-)"}]},{"eventType":"ALERT","tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger-1457946538491-6727ca1e-5300-4fdb-a5aa-7354932f0041","ctime":1457946538491,"dataSource":"_none_","dataId":"my-cool-email-trigger","category":"ALERT","text":"Just
449
+ a test trigger","trigger":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger","name":"Just
450
+ a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"webhook","actionId":"send-via-webhook"},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"dampening":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"STRICT","evalTrueSetting":1,"evalTotalSetting":1,"evalTimeSetting":0,"dampeningId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING"},"evalSets":[[{"evalTimestamp":1457946538487,"dataTimestamp":1457946537000,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING-1-1","dataId":"my-metric-id1","operator":"GT","threshold":5.0},"value":42.0}]],"severity":"HIGH","status":"RESOLVED","ackTime":0,"ackBy":null,"resolvedTime":1457949818291,"resolvedBy":"Heiko","notes":[{"user":"Heiko","ctime":1457946543206,"text":"Hello
451
+ Ruby World :-)"},{"user":"Heiko","ctime":1457949251864,"text":"Hello Ruby
452
+ World :-)"},{"user":"Heiko","ctime":1457949818291,"text":"Hello Ruby World
453
+ :-)"}]},{"eventType":"ALERT","tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger-1457946448368-735269f4-5951-498c-b177-9e1e5a3d3f45","ctime":1457946448368,"dataSource":"_none_","dataId":"my-cool-email-trigger","category":"ALERT","text":"Just
454
+ a test trigger","trigger":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger","name":"Just
455
+ a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"webhook","actionId":"send-via-webhook"},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"dampening":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"STRICT","evalTrueSetting":1,"evalTotalSetting":1,"evalTimeSetting":0,"dampeningId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING"},"evalSets":[[{"evalTimestamp":1457946448366,"dataTimestamp":1457946446000,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING-1-1","dataId":"my-metric-id1","operator":"GT","threshold":5.0},"value":42.0}]],"severity":"HIGH","status":"RESOLVED","ackTime":0,"ackBy":null,"resolvedTime":1457949818387,"resolvedBy":"Heiko","notes":[{"user":"Heiko","ctime":1457946452015,"text":"Hello
456
+ Ruby World :-)"},{"user":"Heiko","ctime":1457946543397,"text":"Hello Ruby
457
+ World :-)"},{"user":"Heiko","ctime":1457949251986,"text":"Hello Ruby World
458
+ :-)"},{"user":"Heiko","ctime":1457949818387,"text":"Hello Ruby World :-)"}]},{"eventType":"ALERT","tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger-1457946166058-29e65498-3860-420f-ab41-aad11344e6b5","ctime":1457946166058,"dataSource":"_none_","dataId":"my-cool-email-trigger","category":"ALERT","text":"Just
459
+ a test trigger","trigger":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger","name":"Just
460
+ a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"webhook","actionId":"send-via-webhook"},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"dampening":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"STRICT","evalTrueSetting":1,"evalTotalSetting":1,"evalTimeSetting":0,"dampeningId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING"},"evalSets":[[{"evalTimestamp":1457946166056,"dataTimestamp":1457946164000,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING-1-1","dataId":"my-metric-id1","operator":"GT","threshold":5.0},"value":42.0}]],"severity":"HIGH","status":"RESOLVED","ackTime":0,"ackBy":null,"resolvedTime":1457949818490,"resolvedBy":"Heiko","notes":[{"user":"Heiko","ctime":1457946171222,"text":"Hello
461
+ Ruby World :-)"},{"user":"Heiko","ctime":1457946452240,"text":"Hello Ruby
462
+ World :-)"},{"user":"Heiko","ctime":1457946543562,"text":"Hello Ruby World
463
+ :-)"},{"user":"Heiko","ctime":1457949252531,"text":"Hello Ruby World :-)"},{"user":"Heiko","ctime":1457949818490,"text":"Hello
464
+ Ruby World :-)"}]},{"eventType":"ALERT","tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger-1457945693605-4892981b-d229-4d4a-90a0-a185c091109d","ctime":1457945693605,"dataSource":"_none_","dataId":"my-cool-email-trigger","category":"ALERT","text":"Just
465
+ a test trigger","trigger":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger","name":"Just
466
+ a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"webhook","actionId":"send-via-webhook"},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"dampening":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"STRICT","evalTrueSetting":1,"evalTotalSetting":1,"evalTimeSetting":0,"dampeningId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING"},"evalSets":[[{"evalTimestamp":1457945693603,"dataTimestamp":1457945692000,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING-1-1","dataId":"my-metric-id1","operator":"GT","threshold":5.0},"value":42.0}]],"severity":"HIGH","status":"RESOLVED","ackTime":0,"ackBy":null,"resolvedTime":1457949818606,"resolvedBy":"Heiko","notes":[{"user":"Heiko","ctime":1457945712790,"text":"Hello
467
+ Ruby World :-)"},{"user":"Heiko","ctime":1457946171467,"text":"Hello Ruby
468
+ World :-)"},{"user":"Heiko","ctime":1457946453082,"text":"Hello Ruby World
469
+ :-)"},{"user":"Heiko","ctime":1457946543702,"text":"Hello Ruby World :-)"},{"user":"Heiko","ctime":1457949252804,"text":"Hello
470
+ Ruby World :-)"},{"user":"Heiko","ctime":1457949818606,"text":"Hello Ruby
471
+ World :-)"}]},{"eventType":"ALERT","tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger-1457945122523-717c264e-4d4e-4af7-afc1-316500bcc85d","ctime":1457945122523,"dataSource":"_none_","dataId":"my-cool-email-trigger","category":"ALERT","text":"Just
472
+ a test trigger","trigger":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger","name":"Just
473
+ a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"webhook","actionId":"send-via-webhook"},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"dampening":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"STRICT","evalTrueSetting":1,"evalTotalSetting":1,"evalTimeSetting":0,"dampeningId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING"},"evalSets":[[{"evalTimestamp":1457945122521,"dataTimestamp":1457945121000,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING-1-1","dataId":"my-metric-id1","operator":"GT","threshold":5.0},"value":42.0}]],"severity":"HIGH","status":"RESOLVED","ackTime":0,"ackBy":null,"resolvedTime":1457949818728,"resolvedBy":"Heiko","notes":[{"user":"Heiko","ctime":1457945126430,"text":"Hello
474
+ Ruby World :-)"},{"user":"Heiko","ctime":1457945728852,"text":"Hello Ruby
475
+ World :-)"},{"user":"Heiko","ctime":1457946171612,"text":"Hello Ruby World
476
+ :-)"},{"user":"Heiko","ctime":1457946453246,"text":"Hello Ruby World :-)"},{"user":"Heiko","ctime":1457946543847,"text":"Hello
477
+ Ruby World :-)"},{"user":"Heiko","ctime":1457949252917,"text":"Hello Ruby
478
+ World :-)"},{"user":"Heiko","ctime":1457949818728,"text":"Hello Ruby World
479
+ :-)"}]},{"eventType":"ALERT","tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger-1457708210314-d98acdbf-4f03-4716-9638-0c7ac7ce810a","ctime":1457708210314,"dataSource":"_none_","dataId":"my-cool-email-trigger","category":"ALERT","text":"Just
480
+ a test trigger","trigger":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger","name":"Just
481
+ a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"dampening":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"STRICT","evalTrueSetting":1,"evalTotalSetting":1,"evalTimeSetting":0,"dampeningId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING"},"evalSets":[[{"evalTimestamp":1457708210313,"dataTimestamp":1457708208000,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING-1-1","dataId":"my-metric-id1","operator":"GT","threshold":5.0},"value":42.0}]],"severity":"HIGH","status":"RESOLVED","ackTime":0,"ackBy":null,"resolvedTime":1457949818818,"resolvedBy":"Heiko","notes":[{"user":"John
482
+ Doe","ctime":1457862781281,"text":"Manually resolved"},{"user":"Heiko","ctime":1457945126614,"text":"Hello
483
+ Ruby World :-)"},{"user":"Heiko","ctime":1457945729213,"text":"Hello Ruby
484
+ World :-)"},{"user":"Heiko","ctime":1457946171763,"text":"Hello Ruby World
485
+ :-)"},{"user":"Heiko","ctime":1457946453401,"text":"Hello Ruby World :-)"},{"user":"Heiko","ctime":1457946543984,"text":"Hello
486
+ Ruby World :-)"},{"user":"Heiko","ctime":1457949253022,"text":"Hello Ruby
487
+ World :-)"},{"user":"Heiko","ctime":1457949818818,"text":"Hello Ruby World
488
+ :-)"}]},{"eventType":"ALERT","tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger-1457707945884-d97265e3-726b-4672-9eb1-58af8fae81c4","ctime":1457707945884,"dataSource":"_none_","dataId":"my-cool-email-trigger","category":"ALERT","text":"Just
489
+ a test trigger","trigger":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger","name":"Just
490
+ a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"dampening":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"STRICT","evalTrueSetting":1,"evalTotalSetting":1,"evalTimeSetting":0,"dampeningId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING"},"evalSets":[[{"evalTimestamp":1457707945883,"dataTimestamp":1457707945000,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING-1-1","dataId":"my-metric-id1","operator":"GT","threshold":5.0},"value":42.0}]],"severity":"HIGH","status":"RESOLVED","ackTime":0,"ackBy":null,"resolvedTime":1457949818910,"resolvedBy":"Heiko","notes":[{"user":"John
491
+ Doe","ctime":1457708105564,"text":"Manually resolved"},{"user":"Heiko","ctime":1457945126734,"text":"Hello
492
+ Ruby World :-)"},{"user":"Heiko","ctime":1457945729632,"text":"Hello Ruby
493
+ World :-)"},{"user":"Heiko","ctime":1457946171888,"text":"Hello Ruby World
494
+ :-)"},{"user":"Heiko","ctime":1457946453507,"text":"Hello Ruby World :-)"},{"user":"Heiko","ctime":1457946544094,"text":"Hello
495
+ Ruby World :-)"},{"user":"Heiko","ctime":1457949253132,"text":"Hello Ruby
496
+ World :-)"},{"user":"Heiko","ctime":1457949818910,"text":"Hello Ruby World
497
+ :-)"}]},{"eventType":"ALERT","tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger-1457707811685-811b43c3-d155-42a4-9278-052c0f94e32b","ctime":1457707811685,"dataSource":"_none_","dataId":"my-cool-email-trigger","category":"ALERT","text":"Just
498
+ a test trigger","trigger":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger","name":"Just
499
+ a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"dampening":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"STRICT","evalTrueSetting":1,"evalTotalSetting":1,"evalTimeSetting":0,"dampeningId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING"},"evalSets":[[{"evalTimestamp":1457707811684,"dataTimestamp":1457707810000,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING-1-1","dataId":"my-metric-id1","operator":"GT","threshold":5.0},"value":42.0}]],"severity":"HIGH","status":"RESOLVED","ackTime":0,"ackBy":null,"resolvedTime":1457949818987,"resolvedBy":"Heiko","notes":[{"user":"John
500
+ Doe","ctime":1457708105556,"text":"Manually resolved"},{"user":"Heiko","ctime":1457945126864,"text":"Hello
501
+ Ruby World :-)"},{"user":"Heiko","ctime":1457945734152,"text":"Hello Ruby
502
+ World :-)"},{"user":"Heiko","ctime":1457946172004,"text":"Hello Ruby World
503
+ :-)"},{"user":"Heiko","ctime":1457946453639,"text":"Hello Ruby World :-)"},{"user":"Heiko","ctime":1457946544193,"text":"Hello
504
+ Ruby World :-)"},{"user":"Heiko","ctime":1457949253213,"text":"Hello Ruby
505
+ World :-)"},{"user":"Heiko","ctime":1457949818987,"text":"Hello Ruby World
506
+ :-)"}]},{"eventType":"ALERT","tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger-1457707709532-d99ada94-f566-4e9c-a57b-5f59f4cfd83a","ctime":1457707709532,"dataSource":"_none_","dataId":"my-cool-email-trigger","category":"ALERT","text":"Just
507
+ a test trigger","trigger":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"my-cool-email-trigger","name":"Just
508
+ a trigger","description":"Just a test trigger","type":"STANDARD","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","actions":[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"send-via-email"}],"autoDisable":false,"autoEnable":false,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","source":"_none_"},"dampening":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"STRICT","evalTrueSetting":1,"evalTotalSetting":1,"evalTimeSetting":0,"dampeningId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING"},"evalSets":[[{"evalTimestamp":1457707709528,"dataTimestamp":1457707707000,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"my-cool-email-trigger","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"28026b36-8fe4-4332-84c8-524e173a68bf-my-cool-email-trigger-FIRING-1-1","dataId":"my-metric-id1","operator":"GT","threshold":5.0},"value":42.0}]],"severity":"HIGH","status":"RESOLVED","ackTime":0,"ackBy":null,"resolvedTime":1457949819070,"resolvedBy":"Heiko","notes":[{"user":"John
509
+ Doe","ctime":1457708105561,"text":"Manually resolved"},{"user":"Heiko","ctime":1457945126981,"text":"Hello
510
+ Ruby World :-)"},{"user":"Heiko","ctime":1457945734323,"text":"Hello Ruby
511
+ World :-)"},{"user":"Heiko","ctime":1457946172125,"text":"Hello Ruby World
512
+ :-)"},{"user":"Heiko","ctime":1457946453771,"text":"Hello Ruby World :-)"},{"user":"Heiko","ctime":1457946544289,"text":"Hello
513
+ Ruby World :-)"},{"user":"Heiko","ctime":1457949253295,"text":"Hello Ruby
514
+ World :-)"},{"user":"Heiko","ctime":1457949819070,"text":"Hello Ruby World
515
+ :-)"}]}]'
516
+ http_version:
517
+ recorded_at: Mon, 14 Mar 2016 10:36:28 GMT
518
+ - request:
519
+ method: put
520
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/resolve/my-cool-email-trigger-1457951783571-09e6f6a9-5ef9-481b-9b00-15675a32970b?resolvedBy=Heiko&resolvedNotes=Hello%20Ruby%20World%20:-)
521
+ body:
522
+ encoding: UTF-8
523
+ string: '{}'
524
+ headers:
525
+ Accept:
526
+ - application/json
527
+ Accept-Encoding:
528
+ - gzip, deflate
529
+ Content-Type:
530
+ - application/json
531
+ Content-Length:
532
+ - '2'
533
+ User-Agent:
534
+ - Ruby
535
+ response:
536
+ status:
537
+ code: 200
538
+ message: OK
539
+ headers:
540
+ Expires:
541
+ - '0'
542
+ Cache-Control:
543
+ - no-cache, no-store, must-revalidate
544
+ X-Powered-By:
545
+ - Undertow/1
546
+ Server:
547
+ - WildFly/10
548
+ Pragma:
549
+ - no-cache
550
+ Date:
551
+ - Mon, 14 Mar 2016 10:36:28 GMT
552
+ Connection:
553
+ - keep-alive
554
+ Content-Type:
555
+ - application/json
556
+ Content-Length:
557
+ - '0'
558
+ body:
559
+ encoding: UTF-8
560
+ string: ''
561
+ http_version:
562
+ recorded_at: Mon, 14 Mar 2016 10:36:28 GMT
563
+ - request:
564
+ method: put
565
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/resolve/my-cool-email-trigger-1457949814758-43fed92e-1de6-4f35-945f-9fa7c4cabc69?resolvedBy=Heiko&resolvedNotes=Hello%20Ruby%20World%20:-)
566
+ body:
567
+ encoding: UTF-8
568
+ string: '{}'
569
+ headers:
570
+ Accept:
571
+ - application/json
572
+ Accept-Encoding:
573
+ - gzip, deflate
574
+ Content-Type:
575
+ - application/json
576
+ Content-Length:
577
+ - '2'
578
+ User-Agent:
579
+ - Ruby
580
+ response:
581
+ status:
582
+ code: 200
583
+ message: OK
584
+ headers:
585
+ Expires:
586
+ - '0'
587
+ Cache-Control:
588
+ - no-cache, no-store, must-revalidate
589
+ X-Powered-By:
590
+ - Undertow/1
591
+ Server:
592
+ - WildFly/10
593
+ Pragma:
594
+ - no-cache
595
+ Date:
596
+ - Mon, 14 Mar 2016 10:36:28 GMT
597
+ Connection:
598
+ - keep-alive
599
+ Content-Type:
600
+ - application/json
601
+ Content-Length:
602
+ - '0'
603
+ body:
604
+ encoding: UTF-8
605
+ string: ''
606
+ http_version:
607
+ recorded_at: Mon, 14 Mar 2016 10:36:28 GMT
608
+ - request:
609
+ method: put
610
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/resolve/my-cool-email-trigger-1457949248037-9fa5715b-fc92-4989-8e1e-5fedf72f0b76?resolvedBy=Heiko&resolvedNotes=Hello%20Ruby%20World%20:-)
611
+ body:
612
+ encoding: UTF-8
613
+ string: '{}'
614
+ headers:
615
+ Accept:
616
+ - application/json
617
+ Accept-Encoding:
618
+ - gzip, deflate
619
+ Content-Type:
620
+ - application/json
621
+ Content-Length:
622
+ - '2'
623
+ User-Agent:
624
+ - Ruby
625
+ response:
626
+ status:
627
+ code: 200
628
+ message: OK
629
+ headers:
630
+ Expires:
631
+ - '0'
632
+ Cache-Control:
633
+ - no-cache, no-store, must-revalidate
634
+ X-Powered-By:
635
+ - Undertow/1
636
+ Server:
637
+ - WildFly/10
638
+ Pragma:
639
+ - no-cache
640
+ Date:
641
+ - Mon, 14 Mar 2016 10:36:28 GMT
642
+ Connection:
643
+ - keep-alive
644
+ Content-Type:
645
+ - application/json
646
+ Content-Length:
647
+ - '0'
648
+ body:
649
+ encoding: UTF-8
650
+ string: ''
651
+ http_version:
652
+ recorded_at: Mon, 14 Mar 2016 10:36:28 GMT
653
+ - request:
654
+ method: put
655
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/resolve/my-cool-email-trigger-1457946538491-6727ca1e-5300-4fdb-a5aa-7354932f0041?resolvedBy=Heiko&resolvedNotes=Hello%20Ruby%20World%20:-)
656
+ body:
657
+ encoding: UTF-8
658
+ string: '{}'
659
+ headers:
660
+ Accept:
661
+ - application/json
662
+ Accept-Encoding:
663
+ - gzip, deflate
664
+ Content-Type:
665
+ - application/json
666
+ Content-Length:
667
+ - '2'
668
+ User-Agent:
669
+ - Ruby
670
+ response:
671
+ status:
672
+ code: 200
673
+ message: OK
674
+ headers:
675
+ Expires:
676
+ - '0'
677
+ Cache-Control:
678
+ - no-cache, no-store, must-revalidate
679
+ X-Powered-By:
680
+ - Undertow/1
681
+ Server:
682
+ - WildFly/10
683
+ Pragma:
684
+ - no-cache
685
+ Date:
686
+ - Mon, 14 Mar 2016 10:36:28 GMT
687
+ Connection:
688
+ - keep-alive
689
+ Content-Type:
690
+ - application/json
691
+ Content-Length:
692
+ - '0'
693
+ body:
694
+ encoding: UTF-8
695
+ string: ''
696
+ http_version:
697
+ recorded_at: Mon, 14 Mar 2016 10:36:28 GMT
698
+ - request:
699
+ method: put
700
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/resolve/my-cool-email-trigger-1457946448368-735269f4-5951-498c-b177-9e1e5a3d3f45?resolvedBy=Heiko&resolvedNotes=Hello%20Ruby%20World%20:-)
701
+ body:
702
+ encoding: UTF-8
703
+ string: '{}'
704
+ headers:
705
+ Accept:
706
+ - application/json
707
+ Accept-Encoding:
708
+ - gzip, deflate
709
+ Content-Type:
710
+ - application/json
711
+ Content-Length:
712
+ - '2'
713
+ User-Agent:
714
+ - Ruby
715
+ response:
716
+ status:
717
+ code: 200
718
+ message: OK
719
+ headers:
720
+ Expires:
721
+ - '0'
722
+ Cache-Control:
723
+ - no-cache, no-store, must-revalidate
724
+ X-Powered-By:
725
+ - Undertow/1
726
+ Server:
727
+ - WildFly/10
728
+ Pragma:
729
+ - no-cache
730
+ Date:
731
+ - Mon, 14 Mar 2016 10:36:28 GMT
732
+ Connection:
733
+ - keep-alive
734
+ Content-Type:
735
+ - application/json
736
+ Content-Length:
737
+ - '0'
738
+ body:
739
+ encoding: UTF-8
740
+ string: ''
741
+ http_version:
742
+ recorded_at: Mon, 14 Mar 2016 10:36:28 GMT
743
+ - request:
744
+ method: put
745
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/resolve/my-cool-email-trigger-1457946166058-29e65498-3860-420f-ab41-aad11344e6b5?resolvedBy=Heiko&resolvedNotes=Hello%20Ruby%20World%20:-)
746
+ body:
747
+ encoding: UTF-8
748
+ string: '{}'
749
+ headers:
750
+ Accept:
751
+ - application/json
752
+ Accept-Encoding:
753
+ - gzip, deflate
754
+ Content-Type:
755
+ - application/json
756
+ Content-Length:
757
+ - '2'
758
+ User-Agent:
759
+ - Ruby
760
+ response:
761
+ status:
762
+ code: 200
763
+ message: OK
764
+ headers:
765
+ Expires:
766
+ - '0'
767
+ Cache-Control:
768
+ - no-cache, no-store, must-revalidate
769
+ X-Powered-By:
770
+ - Undertow/1
771
+ Server:
772
+ - WildFly/10
773
+ Pragma:
774
+ - no-cache
775
+ Date:
776
+ - Mon, 14 Mar 2016 10:36:28 GMT
777
+ Connection:
778
+ - keep-alive
779
+ Content-Type:
780
+ - application/json
781
+ Content-Length:
782
+ - '0'
783
+ body:
784
+ encoding: UTF-8
785
+ string: ''
786
+ http_version:
787
+ recorded_at: Mon, 14 Mar 2016 10:36:28 GMT
788
+ - request:
789
+ method: put
790
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/resolve/my-cool-email-trigger-1457945693605-4892981b-d229-4d4a-90a0-a185c091109d?resolvedBy=Heiko&resolvedNotes=Hello%20Ruby%20World%20:-)
791
+ body:
792
+ encoding: UTF-8
793
+ string: '{}'
794
+ headers:
795
+ Accept:
796
+ - application/json
797
+ Accept-Encoding:
798
+ - gzip, deflate
799
+ Content-Type:
800
+ - application/json
801
+ Content-Length:
802
+ - '2'
803
+ User-Agent:
804
+ - Ruby
805
+ response:
806
+ status:
807
+ code: 200
808
+ message: OK
809
+ headers:
810
+ Expires:
811
+ - '0'
812
+ Cache-Control:
813
+ - no-cache, no-store, must-revalidate
814
+ X-Powered-By:
815
+ - Undertow/1
816
+ Server:
817
+ - WildFly/10
818
+ Pragma:
819
+ - no-cache
820
+ Date:
821
+ - Mon, 14 Mar 2016 10:36:28 GMT
822
+ Connection:
823
+ - keep-alive
824
+ Content-Type:
825
+ - application/json
826
+ Content-Length:
827
+ - '0'
828
+ body:
829
+ encoding: UTF-8
830
+ string: ''
831
+ http_version:
832
+ recorded_at: Mon, 14 Mar 2016 10:36:28 GMT
833
+ - request:
834
+ method: put
835
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/resolve/my-cool-email-trigger-1457945122523-717c264e-4d4e-4af7-afc1-316500bcc85d?resolvedBy=Heiko&resolvedNotes=Hello%20Ruby%20World%20:-)
836
+ body:
837
+ encoding: UTF-8
838
+ string: '{}'
839
+ headers:
840
+ Accept:
841
+ - application/json
842
+ Accept-Encoding:
843
+ - gzip, deflate
844
+ Content-Type:
845
+ - application/json
846
+ Content-Length:
847
+ - '2'
848
+ User-Agent:
849
+ - Ruby
850
+ response:
851
+ status:
852
+ code: 200
853
+ message: OK
854
+ headers:
855
+ Expires:
856
+ - '0'
857
+ Cache-Control:
858
+ - no-cache, no-store, must-revalidate
859
+ X-Powered-By:
860
+ - Undertow/1
861
+ Server:
862
+ - WildFly/10
863
+ Pragma:
864
+ - no-cache
865
+ Date:
866
+ - Mon, 14 Mar 2016 10:36:28 GMT
867
+ Connection:
868
+ - keep-alive
869
+ Content-Type:
870
+ - application/json
871
+ Content-Length:
872
+ - '0'
873
+ body:
874
+ encoding: UTF-8
875
+ string: ''
876
+ http_version:
877
+ recorded_at: Mon, 14 Mar 2016 10:36:28 GMT
878
+ - request:
879
+ method: put
880
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/resolve/my-cool-email-trigger-1457708210314-d98acdbf-4f03-4716-9638-0c7ac7ce810a?resolvedBy=Heiko&resolvedNotes=Hello%20Ruby%20World%20:-)
881
+ body:
882
+ encoding: UTF-8
883
+ string: '{}'
884
+ headers:
885
+ Accept:
886
+ - application/json
887
+ Accept-Encoding:
888
+ - gzip, deflate
889
+ Content-Type:
890
+ - application/json
891
+ Content-Length:
892
+ - '2'
893
+ User-Agent:
894
+ - Ruby
895
+ response:
896
+ status:
897
+ code: 200
898
+ message: OK
899
+ headers:
900
+ Expires:
901
+ - '0'
902
+ Cache-Control:
903
+ - no-cache, no-store, must-revalidate
904
+ X-Powered-By:
905
+ - Undertow/1
906
+ Server:
907
+ - WildFly/10
908
+ Pragma:
909
+ - no-cache
910
+ Date:
911
+ - Mon, 14 Mar 2016 10:36:28 GMT
912
+ Connection:
913
+ - keep-alive
914
+ Content-Type:
915
+ - application/json
916
+ Content-Length:
917
+ - '0'
918
+ body:
919
+ encoding: UTF-8
920
+ string: ''
921
+ http_version:
922
+ recorded_at: Mon, 14 Mar 2016 10:36:28 GMT
923
+ - request:
924
+ method: put
925
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/resolve/my-cool-email-trigger-1457707945884-d97265e3-726b-4672-9eb1-58af8fae81c4?resolvedBy=Heiko&resolvedNotes=Hello%20Ruby%20World%20:-)
926
+ body:
927
+ encoding: UTF-8
928
+ string: '{}'
929
+ headers:
930
+ Accept:
931
+ - application/json
932
+ Accept-Encoding:
933
+ - gzip, deflate
934
+ Content-Type:
935
+ - application/json
936
+ Content-Length:
937
+ - '2'
938
+ User-Agent:
939
+ - Ruby
940
+ response:
941
+ status:
942
+ code: 200
943
+ message: OK
944
+ headers:
945
+ Expires:
946
+ - '0'
947
+ Cache-Control:
948
+ - no-cache, no-store, must-revalidate
949
+ X-Powered-By:
950
+ - Undertow/1
951
+ Server:
952
+ - WildFly/10
953
+ Pragma:
954
+ - no-cache
955
+ Date:
956
+ - Mon, 14 Mar 2016 10:36:28 GMT
957
+ Connection:
958
+ - keep-alive
959
+ Content-Type:
960
+ - application/json
961
+ Content-Length:
962
+ - '0'
963
+ body:
964
+ encoding: UTF-8
965
+ string: ''
966
+ http_version:
967
+ recorded_at: Mon, 14 Mar 2016 10:36:28 GMT
968
+ - request:
969
+ method: put
970
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/resolve/my-cool-email-trigger-1457707811685-811b43c3-d155-42a4-9278-052c0f94e32b?resolvedBy=Heiko&resolvedNotes=Hello%20Ruby%20World%20:-)
971
+ body:
972
+ encoding: UTF-8
973
+ string: '{}'
974
+ headers:
975
+ Accept:
976
+ - application/json
977
+ Accept-Encoding:
978
+ - gzip, deflate
979
+ Content-Type:
980
+ - application/json
981
+ Content-Length:
982
+ - '2'
983
+ User-Agent:
984
+ - Ruby
985
+ response:
986
+ status:
987
+ code: 200
988
+ message: OK
989
+ headers:
990
+ Expires:
991
+ - '0'
992
+ Cache-Control:
993
+ - no-cache, no-store, must-revalidate
994
+ X-Powered-By:
995
+ - Undertow/1
996
+ Server:
997
+ - WildFly/10
998
+ Pragma:
999
+ - no-cache
1000
+ Date:
1001
+ - Mon, 14 Mar 2016 10:36:29 GMT
1002
+ Connection:
1003
+ - keep-alive
1004
+ Content-Type:
1005
+ - application/json
1006
+ Content-Length:
1007
+ - '0'
1008
+ body:
1009
+ encoding: UTF-8
1010
+ string: ''
1011
+ http_version:
1012
+ recorded_at: Mon, 14 Mar 2016 10:36:29 GMT
1013
+ - request:
1014
+ method: put
1015
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/resolve/my-cool-email-trigger-1457707709532-d99ada94-f566-4e9c-a57b-5f59f4cfd83a?resolvedBy=Heiko&resolvedNotes=Hello%20Ruby%20World%20:-)
1016
+ body:
1017
+ encoding: UTF-8
1018
+ string: '{}'
1019
+ headers:
1020
+ Accept:
1021
+ - application/json
1022
+ Accept-Encoding:
1023
+ - gzip, deflate
1024
+ Content-Type:
1025
+ - application/json
1026
+ Content-Length:
1027
+ - '2'
1028
+ User-Agent:
1029
+ - Ruby
1030
+ response:
1031
+ status:
1032
+ code: 200
1033
+ message: OK
1034
+ headers:
1035
+ Expires:
1036
+ - '0'
1037
+ Cache-Control:
1038
+ - no-cache, no-store, must-revalidate
1039
+ X-Powered-By:
1040
+ - Undertow/1
1041
+ Server:
1042
+ - WildFly/10
1043
+ Pragma:
1044
+ - no-cache
1045
+ Date:
1046
+ - Mon, 14 Mar 2016 10:36:29 GMT
1047
+ Connection:
1048
+ - keep-alive
1049
+ Content-Type:
1050
+ - application/json
1051
+ Content-Length:
1052
+ - '0'
1053
+ body:
1054
+ encoding: UTF-8
1055
+ string: ''
1056
+ http_version:
1057
+ recorded_at: Mon, 14 Mar 2016 10:36:29 GMT
1058
+ - request:
1059
+ method: delete
1060
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/my-cool-email-trigger
1061
+ body:
1062
+ encoding: US-ASCII
1063
+ string: ''
1064
+ headers:
1065
+ Accept:
1066
+ - application/json
1067
+ Accept-Encoding:
1068
+ - gzip, deflate
1069
+ Content-Type:
1070
+ - application/json
1071
+ User-Agent:
1072
+ - Ruby
1073
+ response:
1074
+ status:
1075
+ code: 200
1076
+ message: OK
1077
+ headers:
1078
+ Expires:
1079
+ - '0'
1080
+ Cache-Control:
1081
+ - no-cache, no-store, must-revalidate
1082
+ X-Powered-By:
1083
+ - Undertow/1
1084
+ Server:
1085
+ - WildFly/10
1086
+ Pragma:
1087
+ - no-cache
1088
+ Date:
1089
+ - Mon, 14 Mar 2016 10:36:29 GMT
1090
+ Connection:
1091
+ - keep-alive
1092
+ Content-Type:
1093
+ - application/json
1094
+ Content-Length:
1095
+ - '0'
1096
+ body:
1097
+ encoding: UTF-8
1098
+ string: ''
1099
+ http_version:
1100
+ recorded_at: Mon, 14 Mar 2016 10:36:29 GMT
1101
+ - request:
1102
+ method: delete
1103
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/actions/webhook/send-via-webhook
1104
+ body:
1105
+ encoding: US-ASCII
1106
+ string: ''
1107
+ headers:
1108
+ Accept:
1109
+ - application/json
1110
+ Accept-Encoding:
1111
+ - gzip, deflate
1112
+ Content-Type:
1113
+ - application/json
1114
+ User-Agent:
1115
+ - Ruby
1116
+ response:
1117
+ status:
1118
+ code: 200
1119
+ message: OK
1120
+ headers:
1121
+ Expires:
1122
+ - '0'
1123
+ Cache-Control:
1124
+ - no-cache, no-store, must-revalidate
1125
+ X-Powered-By:
1126
+ - Undertow/1
1127
+ Server:
1128
+ - WildFly/10
1129
+ Pragma:
1130
+ - no-cache
1131
+ Date:
1132
+ - Mon, 14 Mar 2016 10:36:29 GMT
1133
+ Connection:
1134
+ - keep-alive
1135
+ Content-Type:
1136
+ - application/json
1137
+ Content-Length:
1138
+ - '0'
1139
+ body:
1140
+ encoding: UTF-8
1141
+ string: ''
1142
+ http_version:
1143
+ recorded_at: Mon, 14 Mar 2016 10:36:29 GMT
1144
+ - request:
1145
+ method: delete
1146
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/actions/email/send-via-email
1147
+ body:
1148
+ encoding: US-ASCII
1149
+ string: ''
1150
+ headers:
1151
+ Accept:
1152
+ - application/json
1153
+ Accept-Encoding:
1154
+ - gzip, deflate
1155
+ Content-Type:
1156
+ - application/json
1157
+ User-Agent:
1158
+ - Ruby
1159
+ response:
1160
+ status:
1161
+ code: 200
1162
+ message: OK
1163
+ headers:
1164
+ Expires:
1165
+ - '0'
1166
+ Cache-Control:
1167
+ - no-cache, no-store, must-revalidate
1168
+ X-Powered-By:
1169
+ - Undertow/1
1170
+ Server:
1171
+ - WildFly/10
1172
+ Pragma:
1173
+ - no-cache
1174
+ Date:
1175
+ - Mon, 14 Mar 2016 10:36:29 GMT
1176
+ Connection:
1177
+ - keep-alive
1178
+ Content-Type:
1179
+ - application/json
1180
+ Content-Length:
1181
+ - '0'
1182
+ body:
1183
+ encoding: UTF-8
1184
+ string: ''
1185
+ http_version:
1186
+ recorded_at: Mon, 14 Mar 2016 10:36:29 GMT
1187
+ recorded_with: VCR 3.0.0