hawkular-client 2.5.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db083fe96638b6d090b78d7a0a5a4af6a4fe54b2
4
- data.tar.gz: 1a1ce49dde751e3870507d91dcb69e783af04384
3
+ metadata.gz: e9395092bd67a428a2b1bf8fffa763a653e80e74
4
+ data.tar.gz: 85e58ded92c9b97c33eb37b77746a485f22ab65d
5
5
  SHA512:
6
- metadata.gz: b32136387fc08ea18c5b72fe9c63d6cd61ab81455ed1f65ddbb8dbdaf70eb3944c29737a8716f7fa222b435ba25e2a05eea3e21ace1fa3d81979ac717917bbe4
7
- data.tar.gz: b20088f8a974b791e73177551c1fd4fd352cfa3c0288b4b59dfa2006c6bae481b65e65e319d65aaad8a3e112d955d461b9e13ba58cbc6fae9c507407c7b0a204
6
+ metadata.gz: b17497312ea6c135e2e12fab9759235a993319980ed3f9e5e6cd3e1a1dfb2c19f9a54edc0bacf7a22f8f27ca9030f222132a061002e2ff19d1b8bbd379fcd8c8
7
+ data.tar.gz: bb4338e14b659d5ac1ee564e85e9c7dcaed201cf7e218c8e48e96f8774d59d40a0dd9919ce9a255a83fbd664a1fae979cad9add0d7628096d1a08ca566e01f0c
data/CHANGES.rdoc CHANGED
@@ -3,6 +3,15 @@
3
3
  This document describes the relevant changes between releases of the
4
4
  _hawkular-client_ project.
5
5
 
6
+ === V 2.6.0
7
+
8
+ * Fix fetching operation params in the recommended way
9
+ * Add support for fetching stats for multiple metrics
10
+ * Fix fetching configuration properties of a resource
11
+
12
+ Full list of items can be found at https://github.com/hawkular/hawkular-client-ruby/milestone/11?closed=1
13
+
14
+
6
15
 
7
16
  === V 2.5.0
8
17
 
@@ -118,13 +118,7 @@ module Hawkular::Inventory
118
118
 
119
119
  def initialize(op_hash)
120
120
  super(op_hash)
121
- @params = {}
122
- return if op_hash['properties'].nil?
123
- param_list = op_hash['properties']['params']
124
- return if param_list.nil?
125
- param_list.each do |p|
126
- @params.store p['name'], p
127
- end
121
+ @params = (op_hash.key? 'parameters') ? op_hash['parameters'] : {}
128
122
  end
129
123
  end
130
124
 
@@ -373,7 +373,7 @@ module Hawkular::Inventory
373
373
  if fetch_resource_config
374
374
  p = get_config_data_for_resource(resource_path)
375
375
  res['properties'] ||= {}
376
- res['properties'].merge p['value'] unless p['value'].nil?
376
+ res['properties'].merge! p['value'] unless p['value'].nil?
377
377
  end
378
378
  Resource.new(res)
379
379
  end
@@ -412,9 +412,12 @@ module Hawkular::Inventory
412
412
  parsed_path = CanonicalPath.parse(resource_type_path.to_s)
413
413
  feed_id = parsed_path.feed_id
414
414
  resource_type_id = parsed_path.resource_type_id
415
- ret = http_get("/traversal/f;#{feed_id}/rt;#{resource_type_id}/type=ot")
415
+ ots = http_get("/traversal/f;#{feed_id}/rt;#{resource_type_id}/type=ot")
416
416
  res = {}
417
- ret.each do |ot|
417
+ ots.each do |ot|
418
+ ot_name = ERB::Util.url_encode ot['name']
419
+ pts = http_get("/traversal/f;#{feed_id}/rt;#{resource_type_id}/ot;#{ot_name}/d;parameterTypes")
420
+ ot['parameters'] = pts[0]['value'] unless pts.empty?
418
421
  od = OperationDefinition.new ot
419
422
  res.store od.name, od
420
423
  end
@@ -40,6 +40,31 @@ module Hawkular::Metrics
40
40
  http_post(path, data)
41
41
  end
42
42
 
43
+ # Fetch stats for multiple metrics of all supported types
44
+ # @param gauge_ids [Array[String]] list of gauge ids
45
+ # @param counter_ids [Array[String]] list of counter ids
46
+ # @param avail_ids [Array[String]] list of availability ids
47
+ # @param starts [Integer] optional timestamp (default now - 8h)
48
+ # @param ends [Integer] optional timestamp (default now)
49
+ # @param bucket_duration [String] optional interval (default 3600s)
50
+ # @return [Hash] stats grouped per type
51
+ # @example
52
+ # client = Hawkular::Metrics::client::new
53
+ # client.query_stats(
54
+ # gauge_ids: ['G1', 'G2'],
55
+ # counter_ids: ['C2', 'C3'],
56
+ # avail_ids: ['A2', 'A3'],
57
+ # starts: 200,
58
+ # ends: 500,
59
+ # bucket_duration: '150ms'
60
+ # )
61
+ def query_stats(gauge_ids: [], counter_ids: [], avail_ids: [], starts: nil, ends: nil, bucket_duration: '3600s')
62
+ path = '/metrics/stats/query'
63
+ metrics = { gauge: gauge_ids, counter: counter_ids, availability: avail_ids }
64
+ data = { metrics: metrics, start: starts, end: ends, bucketDuration: bucket_duration }
65
+ http_post(path, data)
66
+ end
67
+
43
68
  # Base class for accessing metric definition and data of all
44
69
  # types (counters, gauges, availabilities).
45
70
  class Metrics
@@ -4,5 +4,5 @@
4
4
  # @see https://github.com/hawkular
5
5
  module Hawkular
6
6
  # Version of the Hawkular Ruby Gem
7
- VERSION = '2.5.0'.freeze
7
+ VERSION = '2.6.0'.freeze
8
8
  end
@@ -320,6 +320,17 @@ module Hawkular::Inventory::RSpec
320
320
  expect(config['value']['Driver Name']).to eq('h2')
321
321
  end
322
322
 
323
+ it 'Should get resource with its configurations' do
324
+ wildfly_res_id = hawk_escape_id 'Local~~'
325
+ datasource_res_id = hawk_escape_id 'Local~/subsystem=datasources/data-source=ExampleDS'
326
+ resource_path = CanonicalPath.new(feed_id: feed_id, resource_ids: [wildfly_res_id, datasource_res_id])
327
+
328
+ resource = @client.get_resource resource_path, true
329
+
330
+ expect(resource.properties['Username']).to eq('sa')
331
+ expect(resource.properties['Driver Name']).to eq('h2')
332
+ end
333
+
323
334
  it 'Should list operation definitions of given resource type' do
324
335
  operation_definitions = @client.list_operation_definitions(wildfly_type.to_s)
325
336
 
@@ -194,6 +194,37 @@ v16_context = :metrics_0_16_0
194
194
  expect(@client.gauges.get_data(@random_id).size).to be 1
195
195
  expect(@client.avail.get_data(@random_id).size).to be 1
196
196
  end
197
+
198
+ it 'Should fetch stats for mixed metric', run_for: [services_context] do
199
+ expect(@client.counters.get_data(@random_id).size).to be 0
200
+ expect(@client.gauges.get_data(@random_id).size).to be 0
201
+ expect(@client.avail.get_data(@random_id).size).to be 0
202
+
203
+ @client.push_data(
204
+ counters: [{ id: @random_id, data: [{ value: 1 }] }],
205
+ availabilities: [{ id: @random_id, data: [{ value: 'down' }] }],
206
+ gauges: [{ id: @random_id, data: [{ value: 1.1 }] }]
207
+ )
208
+
209
+ timestamps = []
210
+ timestamps.push(@client.counters.get_data(@random_id).first['timestamp'])
211
+ timestamps.push(@client.gauges.get_data(@random_id).first['timestamp'])
212
+ timestamps.push(@client.avail.get_data(@random_id).first['timestamp'])
213
+
214
+ stats = @client.query_stats(
215
+ gauge_ids: [@random_id],
216
+ counter_ids: [@random_id],
217
+ avail_ids: [@random_id],
218
+ starts: timestamps.min,
219
+ ends: timestamps.max + 1,
220
+ bucket_duration: "#{timestamps.max - timestamps.min + 1}ms"
221
+ )
222
+
223
+ expect(stats.size).to be 3
224
+ expect(stats['gauge'][@random_id].first['avg']).to be 1.1
225
+ expect(stats['counter'][@random_id].first['avg']).to be 1.0
226
+ expect(stats['availability'][@random_id].first['downtimeCount']).to be 1
227
+ end
197
228
  end
198
229
 
199
230
  describe 'Counter metrics' do
@@ -0,0 +1,132 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/entity/f;<%= feed_uuid %>/r;Local~~/r;Local~%2Fsubsystem=datasources%2Fdata-source=ExampleDS
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - identity
14
+ User-Agent:
15
+ - hawkular-client-ruby
16
+ Hawkular-Tenant:
17
+ - hawkular
18
+ Content-Type:
19
+ - application/json
20
+ Host:
21
+ - localhost:8080
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Expires:
28
+ - '0'
29
+ Cache-Control:
30
+ - no-cache, no-store, must-revalidate
31
+ X-Powered-By:
32
+ - Undertow/1
33
+ Server:
34
+ - WildFly/10
35
+ Pragma:
36
+ - no-cache
37
+ Date:
38
+ - Mon, 29 Aug 2016 17:44:34 GMT
39
+ Connection:
40
+ - keep-alive
41
+ Content-Type:
42
+ - application/json
43
+ Content-Length:
44
+ - '759'
45
+ body:
46
+ encoding: UTF-8
47
+ string: |-
48
+ {
49
+ "path" : "/t;hawkular/f;<%= feed_uuid %>/r;Local~~/r;Local~%2Fsubsystem%3Ddatasources%2Fdata-source%3DExampleDS",
50
+ "name" : "Datasource [ExampleDS]",
51
+ "identityHash" : "b1ad1d93643dccfbd37acdeb9d5f9c7de3294eb",
52
+ "contentHash" : "b58b567684c11abcad41d4c9987f5ab7dcc91e9b",
53
+ "syncHash" : "a43968939bf36bfeeeb7cb5845b8cd749e462df",
54
+ "type" : {
55
+ "path" : "/t;hawkular/f;<%= feed_uuid %>/rt;Datasource",
56
+ "name" : "Datasource",
57
+ "identityHash" : "b3291af08b396960f425871b493b6d9ee97e339f",
58
+ "contentHash" : "546c2a207bd841a0c2d94a6ae8a87371c36ffa9f",
59
+ "syncHash" : "f65ba261ef70efe3812e95a9ecb68d4fb6f3157",
60
+ "id" : "Datasource"
61
+ },
62
+ "id" : "Local~/subsystem=datasources/data-source=ExampleDS"
63
+ }
64
+ http_version:
65
+ recorded_at: Mon, 29 Aug 2016 17:44:34 GMT
66
+ - request:
67
+ method: get
68
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/entity/f;<%= feed_uuid %>/r;Local~~/r;Local~%2Fsubsystem=datasources%2Fdata-source=ExampleDS/d;configuration
69
+ body:
70
+ encoding: US-ASCII
71
+ string: ''
72
+ headers:
73
+ Accept:
74
+ - application/json
75
+ Accept-Encoding:
76
+ - identity
77
+ User-Agent:
78
+ - hawkular-client-ruby
79
+ Hawkular-Tenant:
80
+ - hawkular
81
+ Content-Type:
82
+ - application/json
83
+ Host:
84
+ - localhost:8080
85
+ response:
86
+ status:
87
+ code: 200
88
+ message: OK
89
+ headers:
90
+ Expires:
91
+ - '0'
92
+ Cache-Control:
93
+ - no-cache, no-store, must-revalidate
94
+ X-Powered-By:
95
+ - Undertow/1
96
+ Server:
97
+ - WildFly/10
98
+ Pragma:
99
+ - no-cache
100
+ Date:
101
+ - Mon, 29 Aug 2016 17:44:34 GMT
102
+ Connection:
103
+ - keep-alive
104
+ Content-Type:
105
+ - application/json
106
+ Content-Length:
107
+ - '740'
108
+ body:
109
+ encoding: UTF-8
110
+ string: |-
111
+ {
112
+ "path" : "/t;hawkular/f;<%= feed_uuid %>/r;Local~~/r;Local~%2Fsubsystem%3Ddatasources%2Fdata-source%3DExampleDS/d;configuration",
113
+ "name" : "configuration",
114
+ "identityHash" : "823ca07d76929e39fc468d25111455355aa81a8",
115
+ "contentHash" : "20125a70ce2d55719321b336bf632eb518bcb4a",
116
+ "syncHash" : "765d944a948b9f54ffe4b98d869f8b6ee16b2121",
117
+ "value" : {
118
+ "Connection Properties" : null,
119
+ "Datasource Class" : null,
120
+ "Security Domain" : null,
121
+ "Username" : "sa",
122
+ "Driver Name" : "h2",
123
+ "JNDI Name" : "java:jboss/datasources/ExampleDS",
124
+ "Connection URL" : "jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE",
125
+ "Enabled" : "true",
126
+ "Driver Class" : null,
127
+ "Password" : "sa"
128
+ }
129
+ }
130
+ http_version:
131
+ recorded_at: Mon, 29 Aug 2016 17:44:34 GMT
132
+ recorded_with: VCR 3.0.3
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/rl;defines/type=r
5
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/rl;defines/type=r
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -33,7 +33,7 @@ http_interactions:
33
33
  Pragma:
34
34
  - no-cache
35
35
  Date:
36
- - Thu, 14 Jul 2016 16:23:43 GMT
36
+ - Wed, 24 Aug 2016 21:33:49 GMT
37
37
  X-Total-Count:
38
38
  - '1'
39
39
  Connection:
@@ -41,7 +41,7 @@ http_interactions:
41
41
  Content-Type:
42
42
  - application/json
43
43
  Content-Length:
44
- - '517'
44
+ - '669'
45
45
  Link:
46
46
  - <http://localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/rl;defines/type=r>;
47
47
  rel="current"
@@ -50,24 +50,25 @@ http_interactions:
50
50
  string: |-
51
51
  [ {
52
52
  "path" : "/t;hawkular/f;<%= feed_uuid %>/r;Local~~",
53
- "properties" : {
54
- "__identityHash" : "8f7077c6fd492ab39991ce1f7d168a0565fd9e5"
55
- },
56
53
  "name" : "WildFly Server [Local]",
57
- "identityHash" : "8f7077c6fd492ab39991ce1f7d168a0565fd9e5",
54
+ "identityHash" : "6035c8b9c1d4741a5c2fc374d211695d9421edee",
55
+ "contentHash" : "279ff07c7f8bb9a36853a063514dd723667afc",
56
+ "syncHash" : "33965ba2e9465c484f552162cb6a5fe138f6496",
58
57
  "type" : {
59
58
  "path" : "/t;hawkular/f;<%= feed_uuid %>/rt;WildFly%20Server",
60
59
  "name" : "WildFly Server",
61
- "identityHash" : "617542c89b86e3ce52b819c1deae7ca37cf7851",
60
+ "identityHash" : "286de75e6fa8d56674dd8cdf3d46f2910b333",
61
+ "contentHash" : "96dfab5fa91ff8fea2be793138eb9f9d84399bc",
62
+ "syncHash" : "838515c459d3b6a5f0583ffaedd9bcddcc108cb5",
62
63
  "id" : "WildFly Server"
63
64
  },
64
65
  "id" : "Local~~"
65
66
  } ]
66
67
  http_version:
67
- recorded_at: Thu, 14 Jul 2016 16:23:43 GMT
68
+ recorded_at: Wed, 24 Aug 2016 21:33:49 GMT
68
69
  - request:
69
70
  method: get
70
- uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/entity/f;<%= feed_uuid %>/r;Local~~
71
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/entity/f;<%= feed_uuid %>/r;Local~~
71
72
  body:
72
73
  encoding: US-ASCII
73
74
  string: ''
@@ -98,36 +99,37 @@ http_interactions:
98
99
  Pragma:
99
100
  - no-cache
100
101
  Date:
101
- - Thu, 14 Jul 2016 16:23:43 GMT
102
+ - Wed, 24 Aug 2016 21:33:49 GMT
102
103
  Connection:
103
104
  - keep-alive
104
105
  Content-Type:
105
106
  - application/json
106
107
  Content-Length:
107
- - '513'
108
+ - '665'
108
109
  body:
109
110
  encoding: UTF-8
110
111
  string: |-
111
112
  {
112
113
  "path" : "/t;hawkular/f;<%= feed_uuid %>/r;Local~~",
113
- "properties" : {
114
- "__identityHash" : "8f7077c6fd492ab39991ce1f7d168a0565fd9e5"
115
- },
116
114
  "name" : "WildFly Server [Local]",
117
- "identityHash" : "8f7077c6fd492ab39991ce1f7d168a0565fd9e5",
115
+ "identityHash" : "6035c8b9c1d4741a5c2fc374d211695d9421edee",
116
+ "contentHash" : "279ff07c7f8bb9a36853a063514dd723667afc",
117
+ "syncHash" : "33965ba2e9465c484f552162cb6a5fe138f6496",
118
118
  "type" : {
119
119
  "path" : "/t;hawkular/f;<%= feed_uuid %>/rt;WildFly%20Server",
120
120
  "name" : "WildFly Server",
121
- "identityHash" : "617542c89b86e3ce52b819c1deae7ca37cf7851",
121
+ "identityHash" : "286de75e6fa8d56674dd8cdf3d46f2910b333",
122
+ "contentHash" : "96dfab5fa91ff8fea2be793138eb9f9d84399bc",
123
+ "syncHash" : "838515c459d3b6a5f0583ffaedd9bcddcc108cb5",
122
124
  "id" : "WildFly Server"
123
125
  },
124
126
  "id" : "Local~~"
125
127
  }
126
128
  http_version:
127
- recorded_at: Thu, 14 Jul 2016 16:23:43 GMT
129
+ recorded_at: Wed, 24 Aug 2016 21:33:49 GMT
128
130
  - request:
129
131
  method: get
130
- uri: http://jdoe:<%= super_secret_password %>@localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/type=ot
132
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/type=ot
131
133
  body:
132
134
  encoding: US-ASCII
133
135
  string: ''
@@ -158,15 +160,15 @@ http_interactions:
158
160
  Pragma:
159
161
  - no-cache
160
162
  Date:
161
- - Thu, 14 Jul 2016 16:23:43 GMT
163
+ - Wed, 24 Aug 2016 21:33:49 GMT
162
164
  X-Total-Count:
163
- - '7'
165
+ - '10'
164
166
  Connection:
165
167
  - keep-alive
166
168
  Content-Type:
167
169
  - application/json
168
170
  Content-Length:
169
- - '2042'
171
+ - '3324'
170
172
  Link:
171
173
  - <http://localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/type=ot>;
172
174
  rel="current"
@@ -174,62 +176,632 @@ http_interactions:
174
176
  encoding: UTF-8
175
177
  string: |-
176
178
  [ {
179
+ "path" : "/t;hawkular/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Undeploy",
180
+ "name" : "Undeploy",
181
+ "identityHash" : "dff1f5b0a0cc8840825994c38becf0829098f963",
182
+ "contentHash" : "48c1e5d08da1e1b3b11598e2294b3e1a6133f5d",
183
+ "syncHash" : "63cb216eacffc445db5c9c2eb513c23cb337f168",
184
+ "id" : "Undeploy"
185
+ }, {
186
+ "path" : "/t;hawkular/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Suspend",
187
+ "name" : "Suspend",
188
+ "identityHash" : "6ae76b4fe54b4aba5764e596d93f4b31508b7713",
189
+ "contentHash" : "b24247fb5a9d8d8059901182187be57626f3ba71",
190
+ "syncHash" : "697a80574196b0957958de5a687dfc87297e1822",
191
+ "id" : "Suspend"
192
+ }, {
177
193
  "path" : "/t;hawkular/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;JDR",
178
- "properties" : {
179
- "__identityHash" : "417bead4a2974c52ae9884323ecd2840879e1195"
180
- },
181
194
  "name" : "JDR",
182
195
  "identityHash" : "417bead4a2974c52ae9884323ecd2840879e1195",
196
+ "contentHash" : "f13f4669a34d44603bd3826345b2d052363c8ea1",
197
+ "syncHash" : "ef12f67f4a6cce3f23c958fc1f6f1ea8cada",
183
198
  "id" : "JDR"
184
- }, {
185
- "path" : "/t;hawkular/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Reload",
186
- "properties" : {
187
- "__identityHash" : "248fc590d2a2a222938f445ecdad85d7c9f3e91"
188
- },
189
- "name" : "Reload",
190
- "identityHash" : "248fc590d2a2a222938f445ecdad85d7c9f3e91",
191
- "id" : "Reload"
192
199
  }, {
193
200
  "path" : "/t;hawkular/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Resume",
194
- "properties" : {
195
- "__identityHash" : "b5103168d783b0bb67bf88f30c1fad462b635e"
196
- },
197
201
  "name" : "Resume",
198
202
  "identityHash" : "b5103168d783b0bb67bf88f30c1fad462b635e",
203
+ "contentHash" : "b3bdb5a70497bec4a2b7eb1cb0d4f37eb71a2a",
204
+ "syncHash" : "17177798f5262241ff882e6da757caee123c5b4",
199
205
  "id" : "Resume"
200
206
  }, {
201
- "path" : "/t;hawkular/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Shutdown",
202
- "properties" : {
203
- "__identityHash" : "126f14e6849f5c843f1939e64db92a7f5f126e41"
204
- },
205
- "name" : "Shutdown",
206
- "identityHash" : "126f14e6849f5c843f1939e64db92a7f5f126e41",
207
- "id" : "Shutdown"
208
- }, {
209
- "path" : "/t;hawkular/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Suspend",
210
- "properties" : {
211
- "__identityHash" : "d57569ae2270cde6d0843fb1da72eae3d679c6a"
212
- },
213
- "name" : "Suspend",
214
- "identityHash" : "d57569ae2270cde6d0843fb1da72eae3d679c6a",
215
- "id" : "Suspend"
207
+ "path" : "/t;hawkular/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Reload",
208
+ "name" : "Reload",
209
+ "identityHash" : "86311b6b4340542cf30568188ccf4236867a51",
210
+ "contentHash" : "cce7155371fc26686b89c7452337d8419692f31e",
211
+ "syncHash" : "1943bd2c34644ef6f389d75c5cad7e115ec3de33",
212
+ "id" : "Reload"
216
213
  }, {
217
214
  "path" : "/t;hawkular/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Deploy",
218
- "properties" : {
219
- "__identityHash" : "c6252032c0e198b69179c06fdaa95e511836f2f"
220
- },
221
215
  "name" : "Deploy",
222
216
  "identityHash" : "c6252032c0e198b69179c06fdaa95e511836f2f",
217
+ "contentHash" : "fb4192a0d1e98db49f6315e471f852385eb84ca8",
218
+ "syncHash" : "18a2d3719245a6ca7278ace46b3c2e8479929f4",
223
219
  "id" : "Deploy"
224
220
  }, {
225
- "path" : "/t;hawkular/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Undeploy",
226
- "properties" : {
227
- "__identityHash" : "dff1f5b0a0cc8840825994c38becf0829098f963"
228
- },
229
- "name" : "Undeploy",
230
- "identityHash" : "dff1f5b0a0cc8840825994c38becf0829098f963",
231
- "id" : "Undeploy"
221
+ "path" : "/t;hawkular/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Restart%20Deployment",
222
+ "name" : "Restart Deployment",
223
+ "identityHash" : "9e9d46aeb0c98efec38b6f04fbbd7d47ee1e2ad",
224
+ "contentHash" : "2ba8792aa52468e9202693d14a5344d99c748",
225
+ "syncHash" : "67aa3d23392281c73999cb2513c9b5119dd1e86",
226
+ "id" : "Restart Deployment"
227
+ }, {
228
+ "path" : "/t;hawkular/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Disable%20Deployment",
229
+ "name" : "Disable Deployment",
230
+ "identityHash" : "a8b8abfd5fb36dfc7448de959fc4776038144415",
231
+ "contentHash" : "b0bc4bc91049f169d1d1e83a60686f32f13bf9",
232
+ "syncHash" : "67ea89fb1af5c72b50976320f4ce47f3d7dfc7c3",
233
+ "id" : "Disable Deployment"
234
+ }, {
235
+ "path" : "/t;hawkular/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Enable%20Deployment",
236
+ "name" : "Enable Deployment",
237
+ "identityHash" : "951f84398217ffddf766f0b48855217b7855d933",
238
+ "contentHash" : "d768f4a8b677f94969bcb0298972a3bea35c129e",
239
+ "syncHash" : "e1d1e39499efa9ec106e1935faaa6e851ccff210",
240
+ "id" : "Enable Deployment"
241
+ }, {
242
+ "path" : "/t;hawkular/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Shutdown",
243
+ "name" : "Shutdown",
244
+ "identityHash" : "6e415243a4b3296c6a84997e73847e43ce2e86",
245
+ "contentHash" : "7fddb7d8d1d6b1eeefa9af01082e0811d4b484d",
246
+ "syncHash" : "1c2320c0cf1c62b534c54ab5fcccb9849a227be",
247
+ "id" : "Shutdown"
248
+ } ]
249
+ http_version:
250
+ recorded_at: Wed, 24 Aug 2016 21:33:49 GMT
251
+ - request:
252
+ method: get
253
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Undeploy/d;parameterTypes
254
+ body:
255
+ encoding: US-ASCII
256
+ string: ''
257
+ headers:
258
+ Accept:
259
+ - application/json
260
+ Accept-Encoding:
261
+ - identity
262
+ User-Agent:
263
+ - hawkular-client-ruby
264
+ Hawkular-Tenant:
265
+ - hawkular
266
+ Content-Type:
267
+ - application/json
268
+ response:
269
+ status:
270
+ code: 200
271
+ message: OK
272
+ headers:
273
+ Expires:
274
+ - '0'
275
+ Cache-Control:
276
+ - no-cache, no-store, must-revalidate
277
+ X-Powered-By:
278
+ - Undertow/1
279
+ Server:
280
+ - WildFly/10
281
+ Pragma:
282
+ - no-cache
283
+ Date:
284
+ - Wed, 24 Aug 2016 21:33:49 GMT
285
+ X-Total-Count:
286
+ - "-1"
287
+ Connection:
288
+ - keep-alive
289
+ Content-Type:
290
+ - application/json
291
+ Content-Length:
292
+ - '3'
293
+ Link:
294
+ - <http://localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Undeploy/d;parameterTypes>;
295
+ rel="current"
296
+ body:
297
+ encoding: UTF-8
298
+ string: "[ ]"
299
+ http_version:
300
+ recorded_at: Wed, 24 Aug 2016 21:33:49 GMT
301
+ - request:
302
+ method: get
303
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Suspend/d;parameterTypes
304
+ body:
305
+ encoding: US-ASCII
306
+ string: ''
307
+ headers:
308
+ Accept:
309
+ - application/json
310
+ Accept-Encoding:
311
+ - identity
312
+ User-Agent:
313
+ - hawkular-client-ruby
314
+ Hawkular-Tenant:
315
+ - hawkular
316
+ Content-Type:
317
+ - application/json
318
+ response:
319
+ status:
320
+ code: 200
321
+ message: OK
322
+ headers:
323
+ Expires:
324
+ - '0'
325
+ Cache-Control:
326
+ - no-cache, no-store, must-revalidate
327
+ X-Powered-By:
328
+ - Undertow/1
329
+ Server:
330
+ - WildFly/10
331
+ Pragma:
332
+ - no-cache
333
+ Date:
334
+ - Wed, 24 Aug 2016 21:33:49 GMT
335
+ X-Total-Count:
336
+ - '1'
337
+ Connection:
338
+ - keep-alive
339
+ Content-Type:
340
+ - application/json
341
+ Content-Length:
342
+ - '527'
343
+ Link:
344
+ - <http://localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Suspend/d;parameterTypes>;
345
+ rel="current"
346
+ body:
347
+ encoding: UTF-8
348
+ string: |-
349
+ [ {
350
+ "path" : "/t;hawkular/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Suspend/d;parameterTypes",
351
+ "name" : "parameterTypes",
352
+ "identityHash" : "3bd3b9e1b58386881e0cd7283379743d4709917",
353
+ "contentHash" : "9d50537025afe097d697d9dc4b8d932ea442e6",
354
+ "syncHash" : "31301a5b29fbed63f6242bbe939f1891281fc21",
355
+ "value" : {
356
+ "timeout" : {
357
+ "type" : "int",
358
+ "description" : "Timeout in seconds to allow active connections to drain",
359
+ "defaultValue" : "0",
360
+ "required" : false
361
+ }
362
+ }
363
+ } ]
364
+ http_version:
365
+ recorded_at: Wed, 24 Aug 2016 21:33:49 GMT
366
+ - request:
367
+ method: get
368
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;JDR/d;parameterTypes
369
+ body:
370
+ encoding: US-ASCII
371
+ string: ''
372
+ headers:
373
+ Accept:
374
+ - application/json
375
+ Accept-Encoding:
376
+ - identity
377
+ User-Agent:
378
+ - hawkular-client-ruby
379
+ Hawkular-Tenant:
380
+ - hawkular
381
+ Content-Type:
382
+ - application/json
383
+ response:
384
+ status:
385
+ code: 200
386
+ message: OK
387
+ headers:
388
+ Expires:
389
+ - '0'
390
+ Cache-Control:
391
+ - no-cache, no-store, must-revalidate
392
+ X-Powered-By:
393
+ - Undertow/1
394
+ Server:
395
+ - WildFly/10
396
+ Pragma:
397
+ - no-cache
398
+ Date:
399
+ - Wed, 24 Aug 2016 21:33:49 GMT
400
+ X-Total-Count:
401
+ - "-1"
402
+ Connection:
403
+ - keep-alive
404
+ Content-Type:
405
+ - application/json
406
+ Content-Length:
407
+ - '3'
408
+ Link:
409
+ - <http://localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;JDR/d;parameterTypes>;
410
+ rel="current"
411
+ body:
412
+ encoding: UTF-8
413
+ string: "[ ]"
414
+ http_version:
415
+ recorded_at: Wed, 24 Aug 2016 21:33:49 GMT
416
+ - request:
417
+ method: get
418
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Resume/d;parameterTypes
419
+ body:
420
+ encoding: US-ASCII
421
+ string: ''
422
+ headers:
423
+ Accept:
424
+ - application/json
425
+ Accept-Encoding:
426
+ - identity
427
+ User-Agent:
428
+ - hawkular-client-ruby
429
+ Hawkular-Tenant:
430
+ - hawkular
431
+ Content-Type:
432
+ - application/json
433
+ response:
434
+ status:
435
+ code: 200
436
+ message: OK
437
+ headers:
438
+ Expires:
439
+ - '0'
440
+ Cache-Control:
441
+ - no-cache, no-store, must-revalidate
442
+ X-Powered-By:
443
+ - Undertow/1
444
+ Server:
445
+ - WildFly/10
446
+ Pragma:
447
+ - no-cache
448
+ Date:
449
+ - Wed, 24 Aug 2016 21:33:49 GMT
450
+ X-Total-Count:
451
+ - "-1"
452
+ Connection:
453
+ - keep-alive
454
+ Content-Type:
455
+ - application/json
456
+ Content-Length:
457
+ - '3'
458
+ Link:
459
+ - <http://localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Resume/d;parameterTypes>;
460
+ rel="current"
461
+ body:
462
+ encoding: UTF-8
463
+ string: "[ ]"
464
+ http_version:
465
+ recorded_at: Wed, 24 Aug 2016 21:33:49 GMT
466
+ - request:
467
+ method: get
468
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Reload/d;parameterTypes
469
+ body:
470
+ encoding: US-ASCII
471
+ string: ''
472
+ headers:
473
+ Accept:
474
+ - application/json
475
+ Accept-Encoding:
476
+ - identity
477
+ User-Agent:
478
+ - hawkular-client-ruby
479
+ Hawkular-Tenant:
480
+ - hawkular
481
+ Content-Type:
482
+ - application/json
483
+ response:
484
+ status:
485
+ code: 200
486
+ message: OK
487
+ headers:
488
+ Expires:
489
+ - '0'
490
+ Cache-Control:
491
+ - no-cache, no-store, must-revalidate
492
+ X-Powered-By:
493
+ - Undertow/1
494
+ Server:
495
+ - WildFly/10
496
+ Pragma:
497
+ - no-cache
498
+ Date:
499
+ - Wed, 24 Aug 2016 21:33:49 GMT
500
+ X-Total-Count:
501
+ - '1'
502
+ Connection:
503
+ - keep-alive
504
+ Content-Type:
505
+ - application/json
506
+ Content-Length:
507
+ - '676'
508
+ Link:
509
+ - <http://localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Reload/d;parameterTypes>;
510
+ rel="current"
511
+ body:
512
+ encoding: UTF-8
513
+ string: |-
514
+ [ {
515
+ "path" : "/t;hawkular/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Reload/d;parameterTypes",
516
+ "name" : "parameterTypes",
517
+ "identityHash" : "afda80734e6ac55e5de882f9fef973ed10ff96",
518
+ "contentHash" : "e5d6257a995e566cff7cb8c36fab163243e145",
519
+ "syncHash" : "c3d49769d815470209070cc3c7a1a2f4843f2c0",
520
+ "value" : {
521
+ "admin-only" : {
522
+ "type" : "bool",
523
+ "description" : "Whether the server should start in running mode ADMIN_ONLY when it restarts",
524
+ "defaultValue" : "false",
525
+ "required" : false
526
+ },
527
+ "use-current-server-config" : {
528
+ "type" : "bool",
529
+ "defaultValue" : "false",
530
+ "required" : false
531
+ }
532
+ }
533
+ } ]
534
+ http_version:
535
+ recorded_at: Wed, 24 Aug 2016 21:33:49 GMT
536
+ - request:
537
+ method: get
538
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Deploy/d;parameterTypes
539
+ body:
540
+ encoding: US-ASCII
541
+ string: ''
542
+ headers:
543
+ Accept:
544
+ - application/json
545
+ Accept-Encoding:
546
+ - identity
547
+ User-Agent:
548
+ - hawkular-client-ruby
549
+ Hawkular-Tenant:
550
+ - hawkular
551
+ Content-Type:
552
+ - application/json
553
+ response:
554
+ status:
555
+ code: 200
556
+ message: OK
557
+ headers:
558
+ Expires:
559
+ - '0'
560
+ Cache-Control:
561
+ - no-cache, no-store, must-revalidate
562
+ X-Powered-By:
563
+ - Undertow/1
564
+ Server:
565
+ - WildFly/10
566
+ Pragma:
567
+ - no-cache
568
+ Date:
569
+ - Wed, 24 Aug 2016 21:33:49 GMT
570
+ X-Total-Count:
571
+ - "-1"
572
+ Connection:
573
+ - keep-alive
574
+ Content-Type:
575
+ - application/json
576
+ Content-Length:
577
+ - '3'
578
+ Link:
579
+ - <http://localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Deploy/d;parameterTypes>;
580
+ rel="current"
581
+ body:
582
+ encoding: UTF-8
583
+ string: "[ ]"
584
+ http_version:
585
+ recorded_at: Wed, 24 Aug 2016 21:33:49 GMT
586
+ - request:
587
+ method: get
588
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Restart%20Deployment/d;parameterTypes
589
+ body:
590
+ encoding: US-ASCII
591
+ string: ''
592
+ headers:
593
+ Accept:
594
+ - application/json
595
+ Accept-Encoding:
596
+ - identity
597
+ User-Agent:
598
+ - hawkular-client-ruby
599
+ Hawkular-Tenant:
600
+ - hawkular
601
+ Content-Type:
602
+ - application/json
603
+ response:
604
+ status:
605
+ code: 200
606
+ message: OK
607
+ headers:
608
+ Expires:
609
+ - '0'
610
+ Cache-Control:
611
+ - no-cache, no-store, must-revalidate
612
+ X-Powered-By:
613
+ - Undertow/1
614
+ Server:
615
+ - WildFly/10
616
+ Pragma:
617
+ - no-cache
618
+ Date:
619
+ - Wed, 24 Aug 2016 21:33:49 GMT
620
+ X-Total-Count:
621
+ - "-1"
622
+ Connection:
623
+ - keep-alive
624
+ Content-Type:
625
+ - application/json
626
+ Content-Length:
627
+ - '3'
628
+ Link:
629
+ - <http://localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Restart%20Deployment/d;parameterTypes>;
630
+ rel="current"
631
+ body:
632
+ encoding: UTF-8
633
+ string: "[ ]"
634
+ http_version:
635
+ recorded_at: Wed, 24 Aug 2016 21:33:49 GMT
636
+ - request:
637
+ method: get
638
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Disable%20Deployment/d;parameterTypes
639
+ body:
640
+ encoding: US-ASCII
641
+ string: ''
642
+ headers:
643
+ Accept:
644
+ - application/json
645
+ Accept-Encoding:
646
+ - identity
647
+ User-Agent:
648
+ - hawkular-client-ruby
649
+ Hawkular-Tenant:
650
+ - hawkular
651
+ Content-Type:
652
+ - application/json
653
+ response:
654
+ status:
655
+ code: 200
656
+ message: OK
657
+ headers:
658
+ Expires:
659
+ - '0'
660
+ Cache-Control:
661
+ - no-cache, no-store, must-revalidate
662
+ X-Powered-By:
663
+ - Undertow/1
664
+ Server:
665
+ - WildFly/10
666
+ Pragma:
667
+ - no-cache
668
+ Date:
669
+ - Wed, 24 Aug 2016 21:33:49 GMT
670
+ X-Total-Count:
671
+ - "-1"
672
+ Connection:
673
+ - keep-alive
674
+ Content-Type:
675
+ - application/json
676
+ Content-Length:
677
+ - '3'
678
+ Link:
679
+ - <http://localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Disable%20Deployment/d;parameterTypes>;
680
+ rel="current"
681
+ body:
682
+ encoding: UTF-8
683
+ string: "[ ]"
684
+ http_version:
685
+ recorded_at: Wed, 24 Aug 2016 21:33:49 GMT
686
+ - request:
687
+ method: get
688
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Enable%20Deployment/d;parameterTypes
689
+ body:
690
+ encoding: US-ASCII
691
+ string: ''
692
+ headers:
693
+ Accept:
694
+ - application/json
695
+ Accept-Encoding:
696
+ - identity
697
+ User-Agent:
698
+ - hawkular-client-ruby
699
+ Hawkular-Tenant:
700
+ - hawkular
701
+ Content-Type:
702
+ - application/json
703
+ response:
704
+ status:
705
+ code: 200
706
+ message: OK
707
+ headers:
708
+ Expires:
709
+ - '0'
710
+ Cache-Control:
711
+ - no-cache, no-store, must-revalidate
712
+ X-Powered-By:
713
+ - Undertow/1
714
+ Server:
715
+ - WildFly/10
716
+ Pragma:
717
+ - no-cache
718
+ Date:
719
+ - Wed, 24 Aug 2016 21:33:49 GMT
720
+ X-Total-Count:
721
+ - "-1"
722
+ Connection:
723
+ - keep-alive
724
+ Content-Type:
725
+ - application/json
726
+ Content-Length:
727
+ - '3'
728
+ Link:
729
+ - <http://localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Enable%20Deployment/d;parameterTypes>;
730
+ rel="current"
731
+ body:
732
+ encoding: UTF-8
733
+ string: "[ ]"
734
+ http_version:
735
+ recorded_at: Wed, 24 Aug 2016 21:33:49 GMT
736
+ - request:
737
+ method: get
738
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Shutdown/d;parameterTypes
739
+ body:
740
+ encoding: US-ASCII
741
+ string: ''
742
+ headers:
743
+ Accept:
744
+ - application/json
745
+ Accept-Encoding:
746
+ - identity
747
+ User-Agent:
748
+ - hawkular-client-ruby
749
+ Hawkular-Tenant:
750
+ - hawkular
751
+ Content-Type:
752
+ - application/json
753
+ response:
754
+ status:
755
+ code: 200
756
+ message: OK
757
+ headers:
758
+ Expires:
759
+ - '0'
760
+ Cache-Control:
761
+ - no-cache, no-store, must-revalidate
762
+ X-Powered-By:
763
+ - Undertow/1
764
+ Server:
765
+ - WildFly/10
766
+ Pragma:
767
+ - no-cache
768
+ Date:
769
+ - Wed, 24 Aug 2016 21:33:49 GMT
770
+ X-Total-Count:
771
+ - '1'
772
+ Connection:
773
+ - keep-alive
774
+ Content-Type:
775
+ - application/json
776
+ Content-Length:
777
+ - '705'
778
+ Link:
779
+ - <http://localhost:8080/hawkular/inventory/traversal/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Shutdown/d;parameterTypes>;
780
+ rel="current"
781
+ body:
782
+ encoding: UTF-8
783
+ string: |-
784
+ [ {
785
+ "path" : "/t;hawkular/f;<%= feed_uuid %>/rt;WildFly%20Server/ot;Shutdown/d;parameterTypes",
786
+ "name" : "parameterTypes",
787
+ "identityHash" : "1ad5d5963d6978975e958de5abcb49f778695f",
788
+ "contentHash" : "5ff8951bc6a6ab6483f69ec0ab139d5a76e22c",
789
+ "syncHash" : "27163827304a2c50e31b9ce2ee74e5e32f396d58",
790
+ "value" : {
791
+ "timeout" : {
792
+ "type" : "int",
793
+ "description" : "Timeout in seconds to allow active connections to drain",
794
+ "defaultValue" : "0",
795
+ "required" : false
796
+ },
797
+ "restart" : {
798
+ "type" : "bool",
799
+ "description" : "Should the server be restarted after shutdown?",
800
+ "defaultValue" : "false",
801
+ "required" : false
802
+ }
803
+ }
232
804
  } ]
233
805
  http_version:
234
- recorded_at: Thu, 14 Jul 2016 16:23:43 GMT
235
- recorded_with: VCR 3.0.1
806
+ recorded_at: Wed, 24 Aug 2016 21:33:49 GMT
807
+ recorded_with: VCR 3.0.3