hawkular-client 0.1.2 → 0.2.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.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +3 -3
  3. data/CHANGES.rdoc +8 -0
  4. data/README.rdoc +12 -5
  5. data/hawkularclient.gemspec +2 -2
  6. data/lib/alerts/alerts_api.rb +193 -0
  7. data/lib/{hawkularclient.rb → hawkular.rb} +93 -52
  8. data/lib/hawkular_all.rb +7 -0
  9. data/lib/inventory/inventory_api.rb +378 -0
  10. data/lib/metrics/metric_api.rb +20 -10
  11. data/lib/metrics/metrics_client.rb +52 -0
  12. data/lib/metrics/tenant_api.rb +1 -1
  13. data/lib/metrics/version.rb +3 -1
  14. data/lib/version.rb +8 -0
  15. data/spec/integration/alerts_spec.rb +143 -0
  16. data/spec/integration/inventory_spec.rb +191 -0
  17. data/spec/integration/metric_spec.rb +33 -0
  18. data/spec/spec_helper.rb +14 -1
  19. data/spec/unit/base_spec.rb +57 -0
  20. data/spec/vcr_cassettes/Alert/Alerts/Should_acknowledge_an_alert.yml +183 -0
  21. data/spec/vcr_cassettes/Alert/Alerts/Should_fetch_single_alert.yml +69 -0
  22. data/spec/vcr_cassettes/Alert/Alerts/Should_list_alerts.yml +85 -0
  23. data/spec/vcr_cassettes/Alert/Alerts/Should_list_alerts_for_trigger.yml +142 -0
  24. data/spec/vcr_cassettes/Alert/Alerts/Should_list_alerts_for_unknown_trigger.yml +46 -0
  25. data/spec/vcr_cassettes/Alert/Alerts/Should_resolve_an_alert.yml +181 -0
  26. data/spec/vcr_cassettes/Alert/Alerts/Should_resolve_an_alert2.yml +49 -0
  27. data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers.yml +62 -0
  28. data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_ID.yml +55 -0
  29. data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_Tag.yml +68 -0
  30. data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_Tags.yml +68 -0
  31. data/spec/vcr_cassettes/Alert/Triggers/Should_get_a_single_Trigger_with_conditions.yml +138 -0
  32. data/spec/vcr_cassettes/Alert/Triggers/Should_get_a_single_metric_Trigger.yml +50 -0
  33. data/spec/vcr_cassettes/Gauge_metrics/Platform_mem.yml +44 -0
  34. data/spec/vcr_cassettes/Gauge_metrics/Platform_mem_def.yml +45 -0
  35. data/spec/vcr_cassettes/Inventory/Should_List_datasources_with_no_props.yml +228 -0
  36. data/spec/vcr_cassettes/Inventory/Should_list_URLs.yml +105 -0
  37. data/spec/vcr_cassettes/Inventory/Should_list_WildFlys.yml +104 -0
  38. data/spec/vcr_cassettes/Inventory/Should_list_WildFlys_with_props.yml +162 -0
  39. data/spec/vcr_cassettes/Inventory/Should_list_children_of_WildFly.yml +180 -0
  40. data/spec/vcr_cassettes/Inventory/Should_list_feeds.yml +102 -0
  41. data/spec/vcr_cassettes/Inventory/Should_list_heap_metrics_for_WildFlys.yml +308 -0
  42. data/spec/vcr_cassettes/Inventory/Should_list_metrics_for_WildFlys.yml +172 -0
  43. data/spec/vcr_cassettes/Inventory/Should_list_types_with_bad_feed.yml +101 -0
  44. data/spec/vcr_cassettes/Inventory/Should_list_types_with_feed.yml +109 -0
  45. data/spec/vcr_cassettes/Inventory/Should_list_types_without_feed.yml +110 -0
  46. data/spec/vcr_cassettes/Metrics/Status.yml +44 -0
  47. data/spec/vcr_cassettes/No_Tenant/Should_fail.yml +42 -0
  48. data/spec/vcr_cassettes/Tenants/Should_Get_Tenant_For_Explicit_Credentials.yml +50 -0
  49. data/spec/vcr_cassettes/Tenants/Should_Get_Tenant_For_Implicit_Credentials.yml +50 -0
  50. metadata +74 -3
@@ -0,0 +1,68 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers?tags=resourceId%7C75bfdd05-d03d-481e-bf32-c724c7719d8b~Local,app%7CMyShop
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/9
31
+ Pragma:
32
+ - no-cache
33
+ Date:
34
+ - Thu, 26 Nov 2015 11:35:52 GMT
35
+ X-Total-Count:
36
+ - '7'
37
+ Connection:
38
+ - keep-alive
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '6062'
43
+ Link:
44
+ - <http://localhost:8080/hawkular/alerts/triggers?tags=resourceId%7C75bfdd05-d03d-481e-bf32-c724c7719d8b~Local,app%7CMyShop>;
45
+ rel="current", <http://localhost:8080/hawkular/alerts/triggers?tags=resourceId%7C75bfdd05-d03d-481e-bf32-c724c7719d8b~Local,app%7CMyShop&page=0>;
46
+ rel="last"
47
+ body:
48
+ encoding: UTF-8
49
+ string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local_web_rejected_sessions","name":"Web
50
+ Sessions Rejected","description":"Rejected Web Sessions for 75bfdd05-d03d-481e-bf32-c724c7719d8b~Local","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"LOW","context":{"alertType":"REJECTED_SESSIONS","resourceName":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local","resourcePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;75bfdd05-d03d-481e-bf32-c724c7719d8b/r;75bfdd05-d03d-481e-bf32-c724c7719d8b~Local~~","resourceType":"App
51
+ Server","triggerType":"Threshold"},"tags":{"resourceId":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local"},"autoDisable":true,"autoEnable":true,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","orphan":false,"group":false},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local_web_expired_sessions","name":"Web
52
+ Sessions Expired","description":"Expired Web Sessions for 75bfdd05-d03d-481e-bf32-c724c7719d8b~Local","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"LOW","context":{"alertType":"EXPIRED_SESSIONS","resourceName":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local","resourcePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;75bfdd05-d03d-481e-bf32-c724c7719d8b/r;75bfdd05-d03d-481e-bf32-c724c7719d8b~Local~~","resourceType":"App
53
+ Server","triggerType":"Threshold"},"tags":{"resourceId":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local"},"autoDisable":true,"autoEnable":true,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","orphan":false,"group":false},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local_web_active_sessions","name":"Web
54
+ Sessions Active","description":"Active Web Sessions for 75bfdd05-d03d-481e-bf32-c724c7719d8b~Local","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"MEDIUM","context":{"alertType":"ACTIVE_SESSIONS","resourceName":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local","resourcePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;75bfdd05-d03d-481e-bf32-c724c7719d8b/r;75bfdd05-d03d-481e-bf32-c724c7719d8b~Local~~","resourceType":"App
55
+ Server","triggerType":"Range"},"tags":{"resourceId":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local"},"autoDisable":true,"autoEnable":true,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":false,"firingMatch":"ALL","orphan":false,"group":false},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local_jvm_nheap","name":"JVM
56
+ Non Heap Used","description":"JVM Non Heap Used for 75bfdd05-d03d-481e-bf32-c724c7719d8b~Local","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","context":{"alertType":"NHEAP","resourceName":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local","resourcePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;75bfdd05-d03d-481e-bf32-c724c7719d8b/r;75bfdd05-d03d-481e-bf32-c724c7719d8b~Local~~","resourceType":"App
57
+ Server","triggerType":"RangeByPercent","triggerTypeProperty1":"MI~R~[75bfdd05-d03d-481e-bf32-c724c7719d8b~Local~~]~MT~WildFly
58
+ Memory Metrics~Heap Max","triggerTypeProperty2":"Heap Max"},"tags":{"resourceId":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local"},"autoDisable":true,"autoEnable":true,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":false,"firingMatch":"ANY","orphan":false,"group":false},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local_jvm_pheap","name":"JVM
59
+ Heap Used","description":"JVM Heap Used for 75bfdd05-d03d-481e-bf32-c724c7719d8b~Local","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"MEDIUM","context":{"alertType":"PHEAP","resourceName":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local","resourcePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;snert/r;snert~Local~~","resourceType":"App
60
+ Server","triggerType":"RangeByPercent","triggerTypeProperty1":"MI~R~[75bfdd05-d03d-481e-bf32-c724c7719d8b~Local~~]~MT~WildFly
61
+ Memory Metrics~Heap Max","triggerTypeProperty2":"Heap Max"},"tags":{"resourceId":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local"},"autoDisable":true,"autoEnable":true,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ANY","orphan":false,"group":false},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local_jvm_garba","name":"JVM
62
+ Accumulated GC Duration","description":"Accumulated GC Duration for 75bfdd05-d03d-481e-bf32-c724c7719d8b~Local","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"HIGH","context":{"alertType":"GARBA","resourceName":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local","resourcePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;snert/r;snert~Local~~","resourceType":"App
63
+ Server","triggerType":"Threshold"},"tags":{"resourceId":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local"},"autoDisable":true,"autoEnable":true,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":false,"firingMatch":"ALL","orphan":false,"group":false},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local_failed_deployment","name":"Deployment
64
+ Failure","description":"Deployment failure for 75bfdd05-d03d-481e-bf32-c724c7719d8b~Local","eventType":"ALERT","eventCategory":null,"eventText":null,"severity":"MEDIUM","context":{"alertType":"DEPLOYMENT_FAIL","resourceName":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local","resourcePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/f;75bfdd05-d03d-481e-bf32-c724c7719d8b/r;75bfdd05-d03d-481e-bf32-c724c7719d8b~Local~~","resourceType":"App
65
+ Server Deployment","triggerType":"Event"},"tags":{"resourceId":"75bfdd05-d03d-481e-bf32-c724c7719d8b~Local"},"autoDisable":true,"autoEnable":true,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","enabled":true,"firingMatch":"ALL","orphan":false,"group":false}]'
66
+ http_version:
67
+ recorded_at: Thu, 26 Nov 2015 11:35:52 GMT
68
+ recorded_with: VCR 3.0.0
@@ -0,0 +1,138 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/snert~Local_jvm_nheap
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/9
31
+ Pragma:
32
+ - no-cache
33
+ Date:
34
+ - Mon, 09 Nov 2015 07:06:05 GMT
35
+ Connection:
36
+ - keep-alive
37
+ Content-Type:
38
+ - application/json
39
+ Content-Length:
40
+ - '703'
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"snert~Local_jvm_nheap","name":"JVM
44
+ Non Heap Used","context":{"description":"JVM Non Heap Used for snert~Local","resourceName":"snert~Local","resourcePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/e;test/f;snert/r;snert~Local~~","resourceType":"App
45
+ Server","triggerType":"RangeByPercent","triggerTypeProperty1":"MI~R~[snert~Local~~]~MT~WildFly
46
+ Memory Metrics~Heap Max"},"actions":{"email":["jdoe@acme.com"]},"autoDisable":true,"autoEnable":true,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","description":"JVM
47
+ Non Heap Used for snert~Local","enabled":true,"firingMatch":"ALL","orphan":false,"group":false,"severity":"HIGH"}'
48
+ http_version:
49
+ recorded_at: Mon, 09 Nov 2015 07:06:05 GMT
50
+ - request:
51
+ method: get
52
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/snert~Local_jvm_nheap/conditions
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ''
56
+ headers:
57
+ Accept:
58
+ - application/json
59
+ Accept-Encoding:
60
+ - gzip, deflate
61
+ Content-Type:
62
+ - application/json
63
+ User-Agent:
64
+ - Ruby
65
+ response:
66
+ status:
67
+ code: 200
68
+ message: OK
69
+ headers:
70
+ Expires:
71
+ - '0'
72
+ Cache-Control:
73
+ - no-cache, no-store, must-revalidate
74
+ X-Powered-By:
75
+ - Undertow/1
76
+ Server:
77
+ - WildFly/9
78
+ Pragma:
79
+ - no-cache
80
+ Date:
81
+ - Mon, 09 Nov 2015 07:06:05 GMT
82
+ Connection:
83
+ - keep-alive
84
+ Content-Type:
85
+ - application/json
86
+ Content-Length:
87
+ - '470'
88
+ body:
89
+ encoding: UTF-8
90
+ string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_nheap","triggerMode":"FIRING","type":"RANGE","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"snert~Local_jvm_nheap-FIRING-1-1","context":{"description":"Non
91
+ Heap Used","unit":"B"},"dataId":"MI~R~[snert~Local~~]~MT~WildFly Memory Metrics~NonHeap
92
+ Used","operatorLow":"INCLUSIVE","operatorHigh":"INCLUSIVE","thresholdLow":9.55252736E7,"thresholdHigh":3.821010944E8,"inRange":false}]'
93
+ http_version:
94
+ recorded_at: Mon, 09 Nov 2015 07:06:05 GMT
95
+ - request:
96
+ method: get
97
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/snert~Local_jvm_nheap/dampenings
98
+ body:
99
+ encoding: US-ASCII
100
+ string: ''
101
+ headers:
102
+ Accept:
103
+ - application/json
104
+ Accept-Encoding:
105
+ - gzip, deflate
106
+ Content-Type:
107
+ - application/json
108
+ User-Agent:
109
+ - Ruby
110
+ response:
111
+ status:
112
+ code: 200
113
+ message: OK
114
+ headers:
115
+ Expires:
116
+ - '0'
117
+ Cache-Control:
118
+ - no-cache, no-store, must-revalidate
119
+ X-Powered-By:
120
+ - Undertow/1
121
+ Server:
122
+ - WildFly/9
123
+ Pragma:
124
+ - no-cache
125
+ Date:
126
+ - Mon, 09 Nov 2015 07:06:05 GMT
127
+ Connection:
128
+ - keep-alive
129
+ Content-Type:
130
+ - application/json
131
+ Content-Length:
132
+ - '262'
133
+ body:
134
+ encoding: UTF-8
135
+ string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_nheap","triggerMode":"FIRING","type":"STRICT_TIME","evalTrueSetting":0,"evalTotalSetting":0,"evalTimeSetting":420000,"dampeningId":"snert~Local_jvm_nheap-FIRING","currentEvals":{}}]'
136
+ http_version:
137
+ recorded_at: Mon, 09 Nov 2015 07:06:05 GMT
138
+ recorded_with: VCR 3.0.0
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers/snert~Local_jvm_nheap
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/9
31
+ Pragma:
32
+ - no-cache
33
+ Date:
34
+ - Mon, 09 Nov 2015 07:06:04 GMT
35
+ Connection:
36
+ - keep-alive
37
+ Content-Type:
38
+ - application/json
39
+ Content-Length:
40
+ - '703'
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"snert~Local_jvm_nheap","name":"JVM
44
+ Non Heap Used","context":{"description":"JVM Non Heap Used for snert~Local","resourceName":"snert~Local","resourcePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/e;test/f;snert/r;snert~Local~~","resourceType":"App
45
+ Server","triggerType":"RangeByPercent","triggerTypeProperty1":"MI~R~[snert~Local~~]~MT~WildFly
46
+ Memory Metrics~Heap Max"},"actions":{"email":["jdoe@acme.com"]},"autoDisable":true,"autoEnable":true,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","description":"JVM
47
+ Non Heap Used for snert~Local","enabled":true,"firingMatch":"ALL","orphan":false,"group":false,"severity":"HIGH"}'
48
+ http_version:
49
+ recorded_at: Mon, 09 Nov 2015 07:06:04 GMT
50
+ recorded_with: VCR 3.0.0
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8080/hawkular/metrics/gauges/MI~R~%5Bsnert~platform~%2FOP_SYSTEM=Apple%20(Capitan)%2042%2FMEMORY=Mem%5D~MT~Total%20Memory/data/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Hawkular-Tenant:
15
+ - 28026b36-8fe4-4332-84c8-524e173a68bf
16
+ Tenantid:
17
+ - 28026b36-8fe4-4332-84c8-524e173a68bf
18
+ Content-Type:
19
+ - application/json
20
+ User-Agent:
21
+ - Ruby
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Connection:
28
+ - keep-alive
29
+ X-Powered-By:
30
+ - Undertow/1
31
+ Server:
32
+ - WildFly/9
33
+ Content-Type:
34
+ - application/json
35
+ Content-Length:
36
+ - '3693'
37
+ Date:
38
+ - Mon, 30 Nov 2015 10:37:21 GMT
39
+ body:
40
+ encoding: UTF-8
41
+ string: '[{"timestamp":1448879836323,"value":1.7179869184E10},{"timestamp":1448879776316,"value":1.7179869184E10},{"timestamp":1448879716312,"value":1.7179869184E10},{"timestamp":1448879656306,"value":1.7179869184E10},{"timestamp":1448879596299,"value":1.7179869184E10},{"timestamp":1448879536292,"value":1.7179869184E10},{"timestamp":1448879476286,"value":1.7179869184E10},{"timestamp":1448879416274,"value":1.7179869184E10},{"timestamp":1448879356267,"value":1.7179869184E10},{"timestamp":1448879296259,"value":1.7179869184E10},{"timestamp":1448879236251,"value":1.7179869184E10},{"timestamp":1448879176242,"value":1.7179869184E10},{"timestamp":1448879116236,"value":1.7179869184E10},{"timestamp":1448879056228,"value":1.7179869184E10},{"timestamp":1448878996219,"value":1.7179869184E10},{"timestamp":1448878936215,"value":1.7179869184E10},{"timestamp":1448878876206,"value":1.7179869184E10},{"timestamp":1448878816200,"value":1.7179869184E10},{"timestamp":1448878756191,"value":1.7179869184E10},{"timestamp":1448878696183,"value":1.7179869184E10},{"timestamp":1448878636178,"value":1.7179869184E10},{"timestamp":1448878576171,"value":1.7179869184E10},{"timestamp":1448878516162,"value":1.7179869184E10},{"timestamp":1448878456157,"value":1.7179869184E10},{"timestamp":1448878396154,"value":1.7179869184E10},{"timestamp":1448878336145,"value":1.7179869184E10},{"timestamp":1448878276139,"value":1.7179869184E10},{"timestamp":1448878216134,"value":1.7179869184E10},{"timestamp":1448878156124,"value":1.7179869184E10},{"timestamp":1448878096115,"value":1.7179869184E10},{"timestamp":1448878036111,"value":1.7179869184E10},{"timestamp":1448877976102,"value":1.7179869184E10},{"timestamp":1448877916097,"value":1.7179869184E10},{"timestamp":1448877856090,"value":1.7179869184E10},{"timestamp":1448877796085,"value":1.7179869184E10},{"timestamp":1448877736077,"value":1.7179869184E10},{"timestamp":1448877676073,"value":1.7179869184E10},{"timestamp":1448877616064,"value":1.7179869184E10},{"timestamp":1448877556060,"value":1.7179869184E10},{"timestamp":1448877496051,"value":1.7179869184E10},{"timestamp":1448877436044,"value":1.7179869184E10},{"timestamp":1448877376035,"value":1.7179869184E10},{"timestamp":1448877316026,"value":1.7179869184E10},{"timestamp":1448877256021,"value":1.7179869184E10},{"timestamp":1448877196015,"value":1.7179869184E10},{"timestamp":1448877136006,"value":1.7179869184E10},{"timestamp":1448877076000,"value":1.7179869184E10},{"timestamp":1448877015995,"value":1.7179869184E10},{"timestamp":1448876955987,"value":1.7179869184E10},{"timestamp":1448876895981,"value":1.7179869184E10},{"timestamp":1448876835969,"value":1.7179869184E10},{"timestamp":1448876775924,"value":1.7179869184E10},{"timestamp":1448876715898,"value":1.7179869184E10},{"timestamp":1448876655893,"value":1.7179869184E10},{"timestamp":1448876595885,"value":1.7179869184E10},{"timestamp":1448876535875,"value":1.7179869184E10},{"timestamp":1448876475869,"value":1.7179869184E10},{"timestamp":1448876415863,"value":1.7179869184E10},{"timestamp":1448876355856,"value":1.7179869184E10},{"timestamp":1448876295846,"value":1.7179869184E10},{"timestamp":1448876235839,"value":1.7179869184E10},{"timestamp":1448876175834,"value":1.7179869184E10},{"timestamp":1448876115827,"value":1.7179869184E10},{"timestamp":1448876055817,"value":1.7179869184E10},{"timestamp":1448875995808,"value":1.7179869184E10},{"timestamp":1448875935801,"value":1.7179869184E10},{"timestamp":1448875875792,"value":1.7179869184E10},{"timestamp":1448875815782,"value":1.7179869184E10},{"timestamp":1448875755777,"value":1.7179869184E10},{"timestamp":1448875695769,"value":1.7179869184E10},{"timestamp":1448875635757,"value":1.7179869184E10}]'
42
+ http_version:
43
+ recorded_at: Mon, 30 Nov 2015 10:37:21 GMT
44
+ recorded_with: VCR 3.0.0
@@ -0,0 +1,45 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:8080/hawkular/metrics/gauges/MI~R~%5Bsnert~platform~%2FOP_SYSTEM=Apple%20(Capitan)%2042%2FMEMORY=Mem%5D~MT~Total%20Memory
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Hawkular-Tenant:
15
+ - 28026b36-8fe4-4332-84c8-524e173a68bf
16
+ Tenantid:
17
+ - 28026b36-8fe4-4332-84c8-524e173a68bf
18
+ Content-Type:
19
+ - application/json
20
+ User-Agent:
21
+ - Ruby
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Connection:
28
+ - keep-alive
29
+ X-Powered-By:
30
+ - Undertow/1
31
+ Server:
32
+ - WildFly/9
33
+ Content-Type:
34
+ - application/json
35
+ Content-Length:
36
+ - '191'
37
+ Date:
38
+ - Mon, 30 Nov 2015 10:35:29 GMT
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"id":"MI~R~[snert~platform~/OPERATING_SYSTEM=Apple Mac OS X 10.11.1
42
+ (El Capitan) build 15B42/MEMORY=Memory]~MT~Total Memory","type":"gauge","tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf"}'
43
+ http_version:
44
+ recorded_at: Mon, 30 Nov 2015 10:35:29 GMT
45
+ recorded_with: VCR 3.0.0
@@ -0,0 +1,228 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/tenant
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
+ Content-Encoding:
24
+ - gzip
25
+ Expires:
26
+ - '0'
27
+ Cache-Control:
28
+ - no-cache, no-store, must-revalidate
29
+ X-Powered-By:
30
+ - Undertow/1
31
+ Server:
32
+ - WildFly/9
33
+ Pragma:
34
+ - no-cache
35
+ Date:
36
+ - Tue, 01 Dec 2015 13:25:38 GMT
37
+ Connection:
38
+ - keep-alive
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '85'
43
+ body:
44
+ encoding: ASCII-8BIT
45
+ string: !binary |-
46
+ H4sIAAAAAAAAAKvmUlBQKkgsyVBSsFJQ0i+xNrIwMDJLMjbTtUhLNdE1MTY2
47
+ 0rUwSbbQNTUySTU0N040s0hKU9IB6cpMAeshSgNXLQAnmwH5aQAAAA==
48
+ http_version:
49
+ recorded_at: Tue, 01 Dec 2015 13:25:38 GMT
50
+ - request:
51
+ method: get
52
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/snert/resourceTypes/Datasource/resources
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ''
56
+ headers:
57
+ Accept:
58
+ - application/json
59
+ Accept-Encoding:
60
+ - gzip, deflate
61
+ Hawkular-Tenant:
62
+ - 28026b36-8fe4-4332-84c8-524e173a68bf
63
+ Tenantid:
64
+ - 28026b36-8fe4-4332-84c8-524e173a68bf
65
+ Content-Type:
66
+ - application/json
67
+ User-Agent:
68
+ - Ruby
69
+ response:
70
+ status:
71
+ code: 200
72
+ message: OK
73
+ headers:
74
+ Content-Encoding:
75
+ - gzip
76
+ Expires:
77
+ - '0'
78
+ Cache-Control:
79
+ - no-cache, no-store, must-revalidate
80
+ X-Powered-By:
81
+ - Undertow/1
82
+ Server:
83
+ - WildFly/9
84
+ Pragma:
85
+ - no-cache
86
+ Date:
87
+ - Tue, 01 Dec 2015 13:25:38 GMT
88
+ X-Total-Count:
89
+ - '2'
90
+ Connection:
91
+ - keep-alive
92
+ Content-Type:
93
+ - application/json
94
+ Content-Length:
95
+ - '228'
96
+ Link:
97
+ - <http://localhost:8080/hawkular/inventory/feeds/snert/resourceTypes/Datasource/resources>;
98
+ rel="current"
99
+ body:
100
+ encoding: ASCII-8BIT
101
+ string: !binary |-
102
+ H4sIAAAAAAAAANWRTQuCQBCG7/6KZaFby9ZqtiTdIoK6dRQPo64UfoW7EhL6
103
+ 2/MjMspOXuq0vDPMu8/Ma6ObhhC+gDphtEKYKovxGTNd3SQ8EAYxdJ0Rbnic
104
+ LJgh5ksdTO4GNLBkIjJFs+6tDqkHUVW96QnbytyVhVQiXvugQKZ55glZ1xtF
105
+ OrnewTXMI8g2RzxtaFRxEQ1NgzYKTlmb56etde2WQNya48/W2X9v1PWyRRqY
106
+ QnbP7XTgD4PXE9DBA9Av62vl9BcC2YvCi1II/y2QnntUIC/rayVy7vZEzXMk
107
+ AwAA
108
+ http_version:
109
+ recorded_at: Tue, 01 Dec 2015 13:25:38 GMT
110
+ - request:
111
+ method: get
112
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/snert/resources/snert~Local~%2Fsubsystem=datasources%2Fdata-source=HawkularDS/data?dataType=configuration
113
+ body:
114
+ encoding: US-ASCII
115
+ string: ''
116
+ headers:
117
+ Accept:
118
+ - application/json
119
+ Accept-Encoding:
120
+ - gzip, deflate
121
+ Hawkular-Tenant:
122
+ - 28026b36-8fe4-4332-84c8-524e173a68bf
123
+ Tenantid:
124
+ - 28026b36-8fe4-4332-84c8-524e173a68bf
125
+ Content-Type:
126
+ - application/json
127
+ User-Agent:
128
+ - Ruby
129
+ response:
130
+ status:
131
+ code: 404
132
+ message: Not Found
133
+ headers:
134
+ Content-Encoding:
135
+ - gzip
136
+ Expires:
137
+ - '0'
138
+ Cache-Control:
139
+ - no-cache, no-store, must-revalidate
140
+ X-Powered-By:
141
+ - Undertow/1
142
+ Server:
143
+ - WildFly/9
144
+ Pragma:
145
+ - no-cache
146
+ Date:
147
+ - Tue, 01 Dec 2015 13:25:38 GMT
148
+ Connection:
149
+ - keep-alive
150
+ Content-Type:
151
+ - application/json
152
+ Content-Length:
153
+ - '420'
154
+ body:
155
+ encoding: ASCII-8BIT
156
+ string: !binary |-
157
+ H4sIAAAAAAAAAO1TQW+CMBi9+ysaLl4EN2GOaDipyZZsuuh2IhwqFGhWW9KW
158
+ GWL0t68FlC1qYjJ3WLJwgO/xfY/Xx/s2LQAMxDnjzyIxwAAYUwbGUMIJlVgW
159
+ IGY5jQCjANICsBjIFCmMELbGNAEZlKkYAN8fQcooDiF50YjflcOee9PrL+2+
160
+ 6cbIMR3b7pmuE7rmXc9Bt/c27LvLuBsPBUVcdnl13z0xRbELOmCOCJQo8juA
161
+ I+K1sXiBHFE5i9sKYQR5i9nbfDRRna9FhoQ/R4LlPEQKuKoUXeZLUQiJVl6k
162
+ bKk+I/6ARIXryqxK7wGu33MC+XhxrD1kVEJMxRnlTRwU9BgJX/XHOMk5lJjR
163
+ IAiMjk5RhBQJETpEG1XrXJVDmqRMVsNTDqgGnR/9yldXNVODokKNn1ljgKAk
164
+ 3XYadq6PrmSLFGdTuKqUNT+vVnYQP1d+lC2VJ8YRn9QW1WoZT6y09tnC9ENR
165
+ MF5YMMPWikWIWPsMnBJ2vWOfS8S/HZctyMU+7ffmd136sjYnhOFoT/RtKw+t
166
+ ICiftq3tJ+uISmvrBQAA
167
+ http_version:
168
+ recorded_at: Tue, 01 Dec 2015 13:25:38 GMT
169
+ - request:
170
+ method: get
171
+ uri: http://jdoe:password@localhost:8080/hawkular/inventory/feeds/snert/resources/snert~Local~%2Fsubsystem=datasources%2Fdata-source=KeycloakDS/data?dataType=configuration
172
+ body:
173
+ encoding: US-ASCII
174
+ string: ''
175
+ headers:
176
+ Accept:
177
+ - application/json
178
+ Accept-Encoding:
179
+ - gzip, deflate
180
+ Hawkular-Tenant:
181
+ - 28026b36-8fe4-4332-84c8-524e173a68bf
182
+ Tenantid:
183
+ - 28026b36-8fe4-4332-84c8-524e173a68bf
184
+ Content-Type:
185
+ - application/json
186
+ User-Agent:
187
+ - Ruby
188
+ response:
189
+ status:
190
+ code: 404
191
+ message: Not Found
192
+ headers:
193
+ Content-Encoding:
194
+ - gzip
195
+ Expires:
196
+ - '0'
197
+ Cache-Control:
198
+ - no-cache, no-store, must-revalidate
199
+ X-Powered-By:
200
+ - Undertow/1
201
+ Server:
202
+ - WildFly/9
203
+ Pragma:
204
+ - no-cache
205
+ Date:
206
+ - Tue, 01 Dec 2015 13:25:38 GMT
207
+ Connection:
208
+ - keep-alive
209
+ Content-Type:
210
+ - application/json
211
+ Content-Length:
212
+ - '423'
213
+ body:
214
+ encoding: ASCII-8BIT
215
+ string: !binary |-
216
+ H4sIAAAAAAAAAO1TwW6CQBS8+xUbLl4EW7WWaDyph6atGm1PhMMKD9i47prd
217
+ pYYY/fbugkobNTGpPTRpOMAb3htmh3mbCkIWCMHFq4wt1EHWiKMBVnjIFFEZ
218
+ injKQsQZwixDPEIqAY1RyteExWiFVSI7yPP6mHFGAkwnBvHqqttw7xrtebNt
219
+ uxG07Faz2bDdVuDaD40W3D82cdudR/WoKxkIVRfFfffCNcXOr6EpUKwg9GpI
220
+ AO1ViZxgAUyNo6pGOIXebPw+7Q9151u2AulNQfJUBKCBm0oxZTqXmVSw7IXa
221
+ luIz8g9I1Lip7KLsPUMWUI4Xg9mp9oAzhQmTF5SXcdDQUyg93R+ROBVYEc58
222
+ 37dqJkUhaBIqTYg2uja5yocMSZ6skicf0A0mP+aVp69iZg/KArV+Zo2F/Jx0
223
+ WyvZhTm6li0TshrhZaGs/Hl7ZUfxU+1H3lJ4Yp3wKWPRXi0XsZPg9SKlWDiE
224
+ fWgKLjIHr4iz5CFQ55CBc8Jud+xLifi347oFudqnw978rktf1uaMMBIeiL5t
225
+ 5bEV+fnTtrL9BCrxBVXrBQAA
226
+ http_version:
227
+ recorded_at: Tue, 01 Dec 2015 13:25:38 GMT
228
+ recorded_with: VCR 3.0.0