hawkular-client 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
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,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/?triggerIds=does-not-exist
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:46:52 GMT
35
+ Connection:
36
+ - keep-alive
37
+ Content-Type:
38
+ - application/json
39
+ Content-Length:
40
+ - '2'
41
+ body:
42
+ encoding: UTF-8
43
+ string: '[]'
44
+ http_version:
45
+ recorded_at: Thu, 26 Nov 2015 11:46:52 GMT
46
+ recorded_with: VCR 3.0.0
@@ -0,0 +1,181 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/alert/28026b36-8fe4-4332-84c8-524e173a68bf-snert~Local_jvm_garba-1446977734134
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
+ - Sun, 08 Nov 2015 20:13:44 GMT
35
+ Connection:
36
+ - keep-alive
37
+ Content-Type:
38
+ - application/json
39
+ Content-Length:
40
+ - '5960'
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","alertId":"28026b36-8fe4-4332-84c8-524e173a68bf-snert~Local_jvm_garba-1446977734134","triggerId":"snert~Local_jvm_garba","ctime":1446977734134,"evalSets":[[{"evalTimestamp":1446977313541,"dataTimestamp":1446977313014,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_garba","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"snert~Local_jvm_garba-FIRING-1-1","context":{"unit":"ms","description":"GC
44
+ Duration"},"dataId":"MI~R~[snert~Local~~]~MT~WildFly Memory Metrics~Accumulated
45
+ GC Duration","operator":"GT","threshold":200.0},"value":8022.0}],[{"evalTimestamp":1446977373629,"dataTimestamp":1446977373037,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_garba","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"snert~Local_jvm_garba-FIRING-1-1","context":{"unit":"ms","description":"GC
46
+ Duration"},"dataId":"MI~R~[snert~Local~~]~MT~WildFly Memory Metrics~Accumulated
47
+ GC Duration","operator":"GT","threshold":200.0},"value":8058.0}],[{"evalTimestamp":1446977433699,"dataTimestamp":1446977433070,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_garba","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"snert~Local_jvm_garba-FIRING-1-1","context":{"unit":"ms","description":"GC
48
+ Duration"},"dataId":"MI~R~[snert~Local~~]~MT~WildFly Memory Metrics~Accumulated
49
+ GC Duration","operator":"GT","threshold":200.0},"value":8058.0}],[{"evalTimestamp":1446977493788,"dataTimestamp":1446977493112,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_garba","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"snert~Local_jvm_garba-FIRING-1-1","context":{"unit":"ms","description":"GC
50
+ Duration"},"dataId":"MI~R~[snert~Local~~]~MT~WildFly Memory Metrics~Accumulated
51
+ GC Duration","operator":"GT","threshold":200.0},"value":8075.0}],[{"evalTimestamp":1446977553867,"dataTimestamp":1446977553153,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_garba","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"snert~Local_jvm_garba-FIRING-1-1","context":{"unit":"ms","description":"GC
52
+ Duration"},"dataId":"MI~R~[snert~Local~~]~MT~WildFly Memory Metrics~Accumulated
53
+ GC Duration","operator":"GT","threshold":200.0},"value":8075.0}],[{"evalTimestamp":1446977613965,"dataTimestamp":1446977613197,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_garba","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"snert~Local_jvm_garba-FIRING-1-1","context":{"unit":"ms","description":"GC
54
+ Duration"},"dataId":"MI~R~[snert~Local~~]~MT~WildFly Memory Metrics~Accumulated
55
+ GC Duration","operator":"GT","threshold":200.0},"value":8112.0}],[{"evalTimestamp":1446977674050,"dataTimestamp":1446977673226,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_garba","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"snert~Local_jvm_garba-FIRING-1-1","context":{"unit":"ms","description":"GC
56
+ Duration"},"dataId":"MI~R~[snert~Local~~]~MT~WildFly Memory Metrics~Accumulated
57
+ GC Duration","operator":"GT","threshold":200.0},"value":8125.0}],[{"evalTimestamp":1446977734129,"dataTimestamp":1446977733251,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_garba","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"snert~Local_jvm_garba-FIRING-1-1","context":{"unit":"ms","description":"GC
58
+ Duration"},"dataId":"MI~R~[snert~Local~~]~MT~WildFly Memory Metrics~Accumulated
59
+ GC Duration","operator":"GT","threshold":200.0},"value":8125.0}]],"severity":"HIGH","status":"OPEN","ackTime":0,"ackBy":null,"resolvedTime":0,"resolvedBy":null,"trigger":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"snert~Local_jvm_garba","name":"Accumulated
60
+ GC Duration","context":{"description":"Accumulated GC Duration for snert~Local","resourceName":"snert~Local","resourcePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/e;test/f;snert/r;snert~Local~~","resourceType":"App
61
+ Server","triggerType":"Threshold"},"actions":{"email":["jdoe@acme.com"]},"autoDisable":true,"autoEnable":true,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","description":"Accumulated
62
+ GC Duration for snert~Local","enabled":true,"firingMatch":"ALL","orphan":false,"group":false,"severity":"HIGH"},"dampening":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_garba","triggerMode":"FIRING","type":"STRICT_TIME","evalTrueSetting":0,"evalTotalSetting":0,"evalTimeSetting":420000,"dampeningId":"snert~Local_jvm_garba-FIRING","currentEvals":{"1":{"evalTimestamp":1446977734129,"dataTimestamp":1446977733251,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_garba","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"snert~Local_jvm_garba-FIRING-1-1","context":{"unit":"ms","description":"GC
63
+ Duration"},"dataId":"MI~R~[snert~Local~~]~MT~WildFly Memory Metrics~Accumulated
64
+ GC Duration","operator":"GT","threshold":200.0},"value":8125.0}}},"context":{"description":"Accumulated
65
+ GC Duration for snert~Local","resourceName":"snert~Local","resourcePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/e;test/f;snert/r;snert~Local~~","resourceType":"App
66
+ Server","triggerType":"Threshold"}}'
67
+ http_version:
68
+ recorded_at: Sun, 08 Nov 2015 20:13:44 GMT
69
+ - request:
70
+ method: put
71
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/resolve/28026b36-8fe4-4332-84c8-524e173a68bf-snert~Local_jvm_garba-1446977734134?resolvedBy=Heiko&resolvedNotes=Hello%20Ruby%20World%20:-)
72
+ body:
73
+ encoding: UTF-8
74
+ string: '{}'
75
+ headers:
76
+ Accept:
77
+ - application/json
78
+ Accept-Encoding:
79
+ - gzip, deflate
80
+ Content-Type:
81
+ - application/json
82
+ Content-Length:
83
+ - '2'
84
+ User-Agent:
85
+ - Ruby
86
+ response:
87
+ status:
88
+ code: 200
89
+ message: OK
90
+ headers:
91
+ Expires:
92
+ - '0'
93
+ Cache-Control:
94
+ - no-cache, no-store, must-revalidate
95
+ X-Powered-By:
96
+ - Undertow/1
97
+ Server:
98
+ - WildFly/9
99
+ Pragma:
100
+ - no-cache
101
+ Date:
102
+ - Sun, 08 Nov 2015 20:13:48 GMT
103
+ Connection:
104
+ - keep-alive
105
+ Content-Type:
106
+ - application/json
107
+ Content-Length:
108
+ - '0'
109
+ body:
110
+ encoding: UTF-8
111
+ string: ''
112
+ http_version:
113
+ recorded_at: Sun, 08 Nov 2015 20:13:48 GMT
114
+ - request:
115
+ method: get
116
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/alert/28026b36-8fe4-4332-84c8-524e173a68bf-snert~Local_jvm_garba-1446977734134
117
+ body:
118
+ encoding: US-ASCII
119
+ string: ''
120
+ headers:
121
+ Accept:
122
+ - application/json
123
+ Accept-Encoding:
124
+ - gzip, deflate
125
+ Content-Type:
126
+ - application/json
127
+ User-Agent:
128
+ - Ruby
129
+ response:
130
+ status:
131
+ code: 200
132
+ message: OK
133
+ headers:
134
+ Expires:
135
+ - '0'
136
+ Cache-Control:
137
+ - no-cache, no-store, must-revalidate
138
+ X-Powered-By:
139
+ - Undertow/1
140
+ Server:
141
+ - WildFly/9
142
+ Pragma:
143
+ - no-cache
144
+ Date:
145
+ - Sun, 08 Nov 2015 20:14:07 GMT
146
+ Connection:
147
+ - keep-alive
148
+ Content-Type:
149
+ - application/json
150
+ Content-Length:
151
+ - '6058'
152
+ body:
153
+ encoding: UTF-8
154
+ string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","alertId":"28026b36-8fe4-4332-84c8-524e173a68bf-snert~Local_jvm_garba-1446977734134","triggerId":"snert~Local_jvm_garba","ctime":1446977734134,"evalSets":[[{"evalTimestamp":1446977313541,"dataTimestamp":1446977313014,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_garba","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"snert~Local_jvm_garba-FIRING-1-1","context":{"unit":"ms","description":"GC
155
+ Duration"},"dataId":"MI~R~[snert~Local~~]~MT~WildFly Memory Metrics~Accumulated
156
+ GC Duration","operator":"GT","threshold":200.0},"value":8022.0}],[{"evalTimestamp":1446977373629,"dataTimestamp":1446977373037,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_garba","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"snert~Local_jvm_garba-FIRING-1-1","context":{"unit":"ms","description":"GC
157
+ Duration"},"dataId":"MI~R~[snert~Local~~]~MT~WildFly Memory Metrics~Accumulated
158
+ GC Duration","operator":"GT","threshold":200.0},"value":8058.0}],[{"evalTimestamp":1446977433699,"dataTimestamp":1446977433070,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_garba","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"snert~Local_jvm_garba-FIRING-1-1","context":{"unit":"ms","description":"GC
159
+ Duration"},"dataId":"MI~R~[snert~Local~~]~MT~WildFly Memory Metrics~Accumulated
160
+ GC Duration","operator":"GT","threshold":200.0},"value":8058.0}],[{"evalTimestamp":1446977493788,"dataTimestamp":1446977493112,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_garba","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"snert~Local_jvm_garba-FIRING-1-1","context":{"unit":"ms","description":"GC
161
+ Duration"},"dataId":"MI~R~[snert~Local~~]~MT~WildFly Memory Metrics~Accumulated
162
+ GC Duration","operator":"GT","threshold":200.0},"value":8075.0}],[{"evalTimestamp":1446977553867,"dataTimestamp":1446977553153,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_garba","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"snert~Local_jvm_garba-FIRING-1-1","context":{"unit":"ms","description":"GC
163
+ Duration"},"dataId":"MI~R~[snert~Local~~]~MT~WildFly Memory Metrics~Accumulated
164
+ GC Duration","operator":"GT","threshold":200.0},"value":8075.0}],[{"evalTimestamp":1446977613965,"dataTimestamp":1446977613197,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_garba","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"snert~Local_jvm_garba-FIRING-1-1","context":{"unit":"ms","description":"GC
165
+ Duration"},"dataId":"MI~R~[snert~Local~~]~MT~WildFly Memory Metrics~Accumulated
166
+ GC Duration","operator":"GT","threshold":200.0},"value":8112.0}],[{"evalTimestamp":1446977674050,"dataTimestamp":1446977673226,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_garba","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"snert~Local_jvm_garba-FIRING-1-1","context":{"unit":"ms","description":"GC
167
+ Duration"},"dataId":"MI~R~[snert~Local~~]~MT~WildFly Memory Metrics~Accumulated
168
+ GC Duration","operator":"GT","threshold":200.0},"value":8125.0}],[{"evalTimestamp":1446977734129,"dataTimestamp":1446977733251,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_garba","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"snert~Local_jvm_garba-FIRING-1-1","context":{"unit":"ms","description":"GC
169
+ Duration"},"dataId":"MI~R~[snert~Local~~]~MT~WildFly Memory Metrics~Accumulated
170
+ GC Duration","operator":"GT","threshold":200.0},"value":8125.0}]],"severity":"HIGH","status":"RESOLVED","ackTime":0,"ackBy":null,"resolvedTime":1447013628344,"resolvedBy":"Heiko","notes":[{"user":"Heiko","ctime":1447013628344,"text":"Hello
171
+ Ruby World :-)"}],"trigger":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"snert~Local_jvm_garba","name":"Accumulated
172
+ GC Duration","context":{"description":"Accumulated GC Duration for snert~Local","resourceName":"snert~Local","resourcePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/e;test/f;snert/r;snert~Local~~","resourceType":"App
173
+ Server","triggerType":"Threshold"},"actions":{"email":["jdoe@acme.com"]},"autoDisable":true,"autoEnable":true,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","description":"Accumulated
174
+ GC Duration for snert~Local","enabled":true,"firingMatch":"ALL","orphan":false,"group":false,"severity":"HIGH"},"dampening":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_garba","triggerMode":"FIRING","type":"STRICT_TIME","evalTrueSetting":0,"evalTotalSetting":0,"evalTimeSetting":420000,"dampeningId":"snert~Local_jvm_garba-FIRING","currentEvals":{"1":{"evalTimestamp":1446977734129,"dataTimestamp":1446977733251,"type":"THRESHOLD","condition":{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","triggerId":"snert~Local_jvm_garba","triggerMode":"FIRING","type":"THRESHOLD","conditionSetSize":1,"conditionSetIndex":1,"conditionId":"snert~Local_jvm_garba-FIRING-1-1","context":{"unit":"ms","description":"GC
175
+ Duration"},"dataId":"MI~R~[snert~Local~~]~MT~WildFly Memory Metrics~Accumulated
176
+ GC Duration","operator":"GT","threshold":200.0},"value":8125.0}}},"context":{"description":"Accumulated
177
+ GC Duration for snert~Local","resourceName":"snert~Local","resourcePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/e;test/f;snert/r;snert~Local~~","resourceType":"App
178
+ Server","triggerType":"Threshold"}}'
179
+ http_version:
180
+ recorded_at: Sun, 08 Nov 2015 20:14:07 GMT
181
+ recorded_with: VCR 3.0.0
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/resolve/28026b36-8fe4-4332-84c8-524e173a68bf-snert~Local_jvm_garba-1446977734134
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{}'
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ Content-Type:
15
+ - application/json
16
+ Content-Length:
17
+ - '2'
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 500
23
+ message: Internal Server Error
24
+ headers:
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
+ - Sun, 08 Nov 2015 20:26:08 GMT
37
+ Connection:
38
+ - keep-alive
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '104'
43
+ body:
44
+ encoding: UTF-8
45
+ string: '{"errorMsg":"Internal error: java.lang.IllegalArgumentException: Note
46
+ must have non-null user and text"}'
47
+ http_version:
48
+ recorded_at: Sun, 08 Nov 2015 20:26:08 GMT
49
+ recorded_with: VCR 3.0.0
@@ -0,0 +1,62 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers
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
+ X-Total-Count:
36
+ - '3'
37
+ Connection:
38
+ - keep-alive
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '2036'
43
+ Link:
44
+ - <http://localhost:8080/hawkular/alerts/triggers>; rel="current", <http://localhost:8080/hawkular/alerts/triggers?page=0>;
45
+ rel="last"
46
+ body:
47
+ encoding: UTF-8
48
+ string: '[{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"snert~Local_jvm_nheap","name":"JVM
49
+ 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
50
+ Server","triggerType":"RangeByPercent","triggerTypeProperty1":"MI~R~[snert~Local~~]~MT~WildFly
51
+ Memory Metrics~Heap Max"},"actions":{"email":["jdoe@acme.com"]},"autoDisable":true,"autoEnable":true,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","description":"JVM
52
+ Non Heap Used for snert~Local","enabled":true,"firingMatch":"ALL","orphan":false,"group":false,"severity":"HIGH"},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"snert~Local_jvm_pheap","name":"JVM
53
+ Heap Used","context":{"description":"JVM Heap Used for snert~Local","resourceName":"snert~Local","resourcePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/e;test/f;snert/r;snert~Local~~","resourceType":"App
54
+ Server","triggerType":"RangeByPercent","triggerTypeProperty1":"MI~R~[snert~Local~~]~MT~WildFly
55
+ Memory Metrics~Heap Max"},"actions":{"email":["jdoe@acme.com"]},"autoDisable":true,"autoEnable":true,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","description":"JVM
56
+ Heap Used for snert~Local","enabled":true,"firingMatch":"ALL","orphan":false,"group":false,"severity":"MEDIUM"},{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","id":"snert~Local_jvm_garba","name":"Accumulated
57
+ GC Duration","context":{"description":"Accumulated GC Duration for snert~Local","resourceName":"snert~Local","resourcePath":"/t;28026b36-8fe4-4332-84c8-524e173a68bf/e;test/f;snert/r;snert~Local~~","resourceType":"App
58
+ Server","triggerType":"Threshold"},"actions":{"email":["jdoe@acme.com"]},"autoDisable":true,"autoEnable":true,"autoResolve":false,"autoResolveAlerts":true,"autoResolveMatch":"ALL","description":"Accumulated
59
+ GC Duration for snert~Local","enabled":false,"firingMatch":"ALL","orphan":false,"group":false,"severity":"HIGH"}]'
60
+ http_version:
61
+ recorded_at: Mon, 09 Nov 2015 07:06:04 GMT
62
+ recorded_with: VCR 3.0.0
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://jdoe:password@localhost:8080/hawkular/alerts/triggers?triggerIds=75bfdd05-d03d-481e-bf32-c724c7719d8b~Local_jvm_pheap
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 10:31:56 GMT
35
+ X-Total-Count:
36
+ - '1'
37
+ Connection:
38
+ - keep-alive
39
+ Content-Type:
40
+ - application/json
41
+ Content-Length:
42
+ - '907'
43
+ Link:
44
+ - <http://localhost:8080/hawkular/alerts/triggers?triggerIds=75bfdd05-d03d-481e-bf32-c724c7719d8b~Local_jvm_pheap>;
45
+ rel="current", <http://localhost:8080/hawkular/alerts/triggers?triggerIds=75bfdd05-d03d-481e-bf32-c724c7719d8b~Local_jvm_pheap&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_jvm_pheap","name":"JVM
50
+ 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
51
+ Server","triggerType":"RangeByPercent","triggerTypeProperty1":"MI~R~[75bfdd05-d03d-481e-bf32-c724c7719d8b~Local~~]~MT~WildFly
52
+ 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}]'
53
+ http_version:
54
+ recorded_at: Thu, 26 Nov 2015 10:31:56 GMT
55
+ recorded_with: VCR 3.0.0
@@ -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
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:13:28 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>;
45
+ rel="current", <http://localhost:8080/hawkular/alerts/triggers?tags=resourceId%7C75bfdd05-d03d-481e-bf32-c724c7719d8b~Local&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:13:28 GMT
68
+ recorded_with: VCR 3.0.0