hawkular-client 2.7.0 → 2.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +19 -2
  3. data/.travis/wait_for_services.rb +23 -0
  4. data/CHANGES.rdoc +11 -0
  5. data/docker-compose.yml +15 -0
  6. data/lib/hawkular/alerts/alerts_api.rb +24 -0
  7. data/lib/hawkular/base_client.rb +7 -0
  8. data/lib/hawkular/inventory/entities.rb +3 -0
  9. data/lib/hawkular/metrics/metric_api.rb +38 -3
  10. data/lib/hawkular/metrics/metrics_client.rb +3 -0
  11. data/lib/hawkular/metrics/tenant_api.rb +2 -2
  12. data/lib/hawkular/version.rb +1 -1
  13. data/spec/integration/alert-resources/alerts-test-data.json +40 -0
  14. data/spec/integration/alert-resources/events-test-data.json +78 -0
  15. data/spec/integration/alert-resources/triggers-test-data.json +66 -0
  16. data/spec/integration/alerts_spec.rb +192 -83
  17. data/spec/integration/hello-world-definitions.json +1 -2
  18. data/spec/integration/inventory_spec.rb +18 -5
  19. data/spec/integration/metric_spec.rb +201 -40
  20. data/spec/integration/operations_spec.rb +45 -1
  21. data/spec/spec_helper.rb +25 -6
  22. data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_acknowledge_an_alert.yml +205 -0
  23. data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_fetch_single_alert.yml +108 -0
  24. data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_list_alerts.yml +59 -0
  25. data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_list_alerts_for_trigger.yml +58 -0
  26. data/spec/vcr_cassettes/Alert/Alerts/{Should_list_alerts_for_unknown_trigger.yml → Templates/Should_list_alerts_for_unknown_trigger.yml} +13 -9
  27. data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_list_open_alerts.yml +59 -0
  28. data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_resolve_an_alert.yml +207 -0
  29. data/spec/vcr_cassettes/Alert/Alerts/Templates/setup.yml +255 -0
  30. data/spec/vcr_cassettes/Alert/Alerts/Templates/setup_cleanup.yml +302 -0
  31. data/spec/vcr_cassettes/Alert/EndToEnd/Templates/Should_create_and_fire_a_trigger.yml +527 -0
  32. data/spec/vcr_cassettes/{Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_return_periods.yml → Alert/Events/Templates/Should_create_an_event.yml} +22 -18
  33. data/spec/vcr_cassettes/{Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml → Alert/Events/Templates/Should_delete_an_event.yml} +28 -24
  34. data/spec/vcr_cassettes/Alert/Events/Templates/Should_list_events.yml +91 -0
  35. data/spec/vcr_cassettes/Alert/Events/Templates/Should_list_events_using_criteria.yml +60 -0
  36. data/spec/vcr_cassettes/Alert/Events/{Should_not_list_events_using_criteria.yml → Templates/Should_not_list_events_using_criteria.yml} +14 -13
  37. data/spec/vcr_cassettes/Alert/Events/Templates/setup.yml +615 -0
  38. data/spec/vcr_cassettes/Alert/Events/Templates/setup_cleanup.yml +567 -0
  39. data/spec/vcr_cassettes/Alert/Groups/{Should_operate_a_complex_group_trigger.yml → Templates/Should_operate_a_complex_group_trigger.yml} +508 -352
  40. data/spec/vcr_cassettes/{Alerts → Alert/Templates}/Should_return_the_version.yml +10 -8
  41. data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_List_Triggers.yml +55 -0
  42. data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_List_Triggers_for_ID.yml +56 -0
  43. data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_List_Triggers_for_Tag.yml +56 -0
  44. data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_List_Triggers_for_Tags.yml +56 -0
  45. data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_bulk_load_triggers.yml +243 -0
  46. data/spec/vcr_cassettes/Alert/Triggers/{Should_create_a_basic_trigger_with_action.yml → Templates/Should_create_a_basic_trigger_with_action.yml} +107 -76
  47. data/spec/vcr_cassettes/Alert/Triggers/{Should_create_a_firing_ALL_ANY_trigger.yml → Templates/Should_create_a_firing_ALL_ANY_trigger.yml} +81 -61
  48. data/spec/vcr_cassettes/{Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml → Alert/Triggers/Templates/Should_create_an_action.yml} +32 -30
  49. data/spec/vcr_cassettes/{Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml → Alert/Triggers/Templates/Should_get_a_single_Trigger_with_conditions.yml} +29 -29
  50. data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_get_a_single_metric_Trigger.yml +50 -0
  51. data/spec/vcr_cassettes/Alert/Triggers/{Should_get_the_action_definitions.yml → Templates/Should_get_the_action_definitions.yml} +46 -73
  52. data/spec/vcr_cassettes/Alert/Triggers/{Should_not_create_an_action_for_unknown_plugin.yml → Templates/Should_not_create_an_action_for_unknown_plugin.yml} +12 -8
  53. data/spec/vcr_cassettes/{Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml → Alert/Triggers/Templates/Should_not_create_an_action_for_unknown_properties.yml} +27 -26
  54. data/spec/vcr_cassettes/Alert/Triggers/Templates/setup.yml +52 -0
  55. data/spec/vcr_cassettes/{Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml → Alert/Triggers/Templates/setup_cleanup.yml} +51 -51
  56. data/spec/vcr_cassettes/Inventory/NonSecure/inventory_0_17/Templates/Should_list_metrics_of_given_metric_type.yml +29 -25
  57. data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Get_metric_definition_by_id.yml +3 -3
  58. data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Retrieve_metric_rate_points.yml +5 -5
  59. data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_Availability_definition.yml +4 -4
  60. data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_Counter_definition.yml +4 -4
  61. data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_gauge_definition.yml +4 -4
  62. data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_push_metric_data_to_existing_gauge.yml +4 -4
  63. data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_update_tags_for_Availability_definition.yml +6 -6
  64. data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_update_tags_for_gauge_definition.yml +8 -8
  65. data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/setup_client.yml +44 -0
  66. data/spec/vcr_cassettes/Metrics/NonSecure/{metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml → metrics_services/Templates/All_Tags_for_metrics/Should_fetch_all_metric_tags_for_metrics_definitions.yml} +159 -53
  67. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/Should_group_contiguous_values.yml +47 -6
  68. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml +12 -12
  69. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/setup_client.yml +44 -0
  70. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +17 -17
  71. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +23 -23
  72. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml +19 -19
  73. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml +12 -12
  74. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/setup_client.yml +44 -0
  75. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml +19 -19
  76. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml +12 -12
  77. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_periods.yml +5 -5
  78. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory.yml +151 -5
  79. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory_def.yml +152 -6
  80. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/setup_client.yml +44 -0
  81. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_fetch_rate_stats_for_mixed_metric.yml +33 -33
  82. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_fetch_stats_for_mixed_metric.yml +31 -32
  83. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +108 -20
  84. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +26 -26
  85. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml +27 -27
  86. data/spec/vcr_cassettes/Metrics/NonSecure/{metrics_0_16_0/Templates/Status/Should_return_the_version.yml → metrics_services/Templates/Mixed_metrics/setup_client.yml} +3 -3
  87. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/No_Tenant/Should_fail.yml +43 -4
  88. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Status/Should_return_the_version.yml +44 -3
  89. data/spec/vcr_cassettes/Metrics/NonSecure/{metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_Hash.yml → metrics_services/Templates/String_metrics/Should_create_string_definition_using_Hash.yml} +9 -9
  90. data/spec/vcr_cassettes/Metrics/NonSecure/{metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_MetricDefinition.yml → metrics_services/Templates/String_metrics/Should_create_string_definition_using_MetricDefinition.yml} +9 -9
  91. data/spec/vcr_cassettes/Metrics/NonSecure/{metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml → metrics_services/Templates/String_metrics/Should_push_metric_data_to_existing_string.yml} +27 -27
  92. data/spec/vcr_cassettes/Metrics/NonSecure/{metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml → metrics_services/Templates/String_metrics/Should_push_metric_data_to_non-existing_string.yml} +15 -15
  93. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/String_metrics/setup_client.yml +44 -0
  94. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Tags_Metrics/setup_client.yml +44 -0
  95. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Tenants/Should_create_and_return_tenant.yml +10 -6
  96. data/spec/vcr_cassettes/Metrics/{Secure/metrics_0_16_0/Templates/Status/Should_return_the_version.yml → NonSecure/metrics_services/Templates/Tenants/setup_client.yml} +5 -5
  97. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/setup_client.yml +44 -0
  98. data/spec/vcr_cassettes/Metrics/Secure/metrics_services/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +80 -33
  99. data/spec/vcr_cassettes/Operation/NonSecure/Operation/Add_XA_datasource_should_be_doable.json +23 -0
  100. data/spec/vcr_cassettes/Operation/NonSecure/Operation/{Add_datasource_should_be_doable.json → Add_non-XA_datasource_should_be_doable.json} +0 -0
  101. metadata +111 -156
  102. data/spec/vcr_cassettes/Alert/Alerts/Should_acknowledge_an_alert.yml +0 -183
  103. data/spec/vcr_cassettes/Alert/Alerts/Should_fetch_single_alert.yml +0 -69
  104. data/spec/vcr_cassettes/Alert/Alerts/Should_list_alerts.yml +0 -85
  105. data/spec/vcr_cassettes/Alert/Alerts/Should_list_alerts_for_trigger.yml +0 -142
  106. data/spec/vcr_cassettes/Alert/Alerts/Should_resolve_an_alert.yml +0 -181
  107. data/spec/vcr_cassettes/Alert/Alerts/Should_resolve_an_alert2.yml +0 -49
  108. data/spec/vcr_cassettes/Alert/EndToEnd/Should_create_and_fire_a_trigger.yml +0 -1187
  109. data/spec/vcr_cassettes/Alert/Events/Should_create_an_event.yml +0 -50
  110. data/spec/vcr_cassettes/Alert/Events/Should_list_events.yml +0 -101
  111. data/spec/vcr_cassettes/Alert/Events/Should_list_events_using_criteria.yml +0 -79
  112. data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers.yml +0 -62
  113. data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_ID.yml +0 -55
  114. data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_Tag.yml +0 -68
  115. data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_Tags.yml +0 -68
  116. data/spec/vcr_cassettes/Alert/Triggers/Should_bulk_load_triggers.yml +0 -225
  117. data/spec/vcr_cassettes/Alert/Triggers/Should_create_an_action.yml +0 -134
  118. data/spec/vcr_cassettes/Alert/Triggers/Should_create_an_action_for_webhooks.yml +0 -220
  119. data/spec/vcr_cassettes/Alert/Triggers/Should_get_a_single_Trigger_with_conditions.yml +0 -138
  120. data/spec/vcr_cassettes/Alert/Triggers/Should_get_a_single_metric_Trigger.yml +0 -50
  121. data/spec/vcr_cassettes/Alert/Triggers/Should_not_create_an_action_for_unknown_properties.yml +0 -134
  122. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml +0 -99
  123. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_group_contiguous_values.yml +0 -97
  124. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml +0 -240
  125. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml +0 -99
  126. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml +0 -99
  127. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +0 -240
  128. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml +0 -281
  129. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml +0 -240
  130. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +0 -326
  131. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +0 -314
  132. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/No_Tenant/Should_fail.yml +0 -50
  133. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Simple/Should_be_Cool.yml +0 -48
  134. data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Tenants/Should_create_and_return_tenant.yml +0 -99
  135. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml +0 -99
  136. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml +0 -99
  137. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_group_contiguous_values.yml +0 -97
  138. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml +0 -240
  139. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml +0 -99
  140. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml +0 -99
  141. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +0 -240
  142. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +0 -328
  143. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml +0 -281
  144. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml +0 -144
  145. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_Hash.yml +0 -99
  146. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_MetricDefinition.yml +0 -99
  147. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml +0 -281
  148. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml +0 -144
  149. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_return_periods.yml +0 -97
  150. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml +0 -240
  151. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +0 -326
  152. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +0 -314
  153. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml +0 -285
  154. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/No_Tenant/Should_fail.yml +0 -50
  155. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Simple/Should_be_Cool.yml +0 -48
  156. data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Tenants/Should_create_and_return_tenant.yml +0 -99
@@ -1,138 +0,0 @@
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
@@ -1,50 +0,0 @@
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
@@ -1,134 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/plugins/email
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - application/json
12
- Accept-Encoding:
13
- - gzip, deflate
14
- Content-Type:
15
- - application/json
16
- User-Agent:
17
- - Ruby
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Expires:
24
- - '0'
25
- Cache-Control:
26
- - no-cache, no-store, must-revalidate
27
- X-Powered-By:
28
- - Undertow/1
29
- Server:
30
- - WildFly/10
31
- Pragma:
32
- - no-cache
33
- Date:
34
- - Mon, 14 Mar 2016 10:54:55 GMT
35
- Connection:
36
- - keep-alive
37
- Content-Type:
38
- - application/json
39
- Content-Length:
40
- - '87'
41
- body:
42
- encoding: ASCII-8BIT
43
- string: '["cc","from","from-name","template.hawkular.url","template.html","template.plain","to"]'
44
- http_version:
45
- recorded_at: Mon, 14 Mar 2016 10:54:55 GMT
46
- - request:
47
- method: post
48
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/actions
49
- body:
50
- encoding: UTF-8
51
- string: '{"actionId":"my-id3","actionPlugin":"email","properties":{"foo":"bar"}}'
52
- headers:
53
- Accept:
54
- - application/json
55
- Accept-Encoding:
56
- - gzip, deflate
57
- Content-Type:
58
- - application/json
59
- Content-Length:
60
- - '71'
61
- User-Agent:
62
- - Ruby
63
- response:
64
- status:
65
- code: 200
66
- message: OK
67
- headers:
68
- Expires:
69
- - '0'
70
- Cache-Control:
71
- - no-cache, no-store, must-revalidate
72
- X-Powered-By:
73
- - Undertow/1
74
- Server:
75
- - WildFly/10
76
- Pragma:
77
- - no-cache
78
- Date:
79
- - Mon, 14 Mar 2016 10:54:55 GMT
80
- Connection:
81
- - keep-alive
82
- Content-Type:
83
- - application/json
84
- Content-Length:
85
- - '121'
86
- body:
87
- encoding: ASCII-8BIT
88
- string: '{"tenantId":"28026b36-8fe4-4332-84c8-524e173a68bf","actionPlugin":"email","actionId":"my-id3","properties":{"foo":"bar"}}'
89
- http_version:
90
- recorded_at: Mon, 14 Mar 2016 10:54:55 GMT
91
- - request:
92
- method: delete
93
- uri: http://jdoe:password@localhost:8080/hawkular/alerts/actions/email/my-id3
94
- body:
95
- encoding: US-ASCII
96
- string: ''
97
- headers:
98
- Accept:
99
- - application/json
100
- Accept-Encoding:
101
- - gzip, deflate
102
- Content-Type:
103
- - application/json
104
- User-Agent:
105
- - Ruby
106
- response:
107
- status:
108
- code: 200
109
- message: OK
110
- headers:
111
- Expires:
112
- - '0'
113
- Cache-Control:
114
- - no-cache, no-store, must-revalidate
115
- X-Powered-By:
116
- - Undertow/1
117
- Server:
118
- - WildFly/10
119
- Pragma:
120
- - no-cache
121
- Date:
122
- - Mon, 14 Mar 2016 10:54:55 GMT
123
- Connection:
124
- - keep-alive
125
- Content-Type:
126
- - application/json
127
- Content-Length:
128
- - '0'
129
- body:
130
- encoding: UTF-8
131
- string: ''
132
- http_version:
133
- recorded_at: Mon, 14 Mar 2016 10:54:55 GMT
134
- recorded_with: VCR 3.0.0
@@ -1,99 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability
6
- body:
7
- encoding: UTF-8
8
- string: '{"id":"<%= id %>","dataRetention":123,"tags":{"some":"value"}}'
9
- headers:
10
- Accept:
11
- - application/json
12
- Accept-Encoding:
13
- - identity
14
- User-Agent:
15
- - hawkular-client-ruby
16
- Hawkular-Tenant:
17
- - <%= vcr_test_tenant %>
18
- Content-Type:
19
- - application/json
20
- Content-Length:
21
- - '89'
22
- Host:
23
- - localhost:8080
24
- response:
25
- status:
26
- code: 201
27
- message: Created
28
- headers:
29
- Expires:
30
- - '0'
31
- Cache-Control:
32
- - no-cache, no-store, must-revalidate
33
- X-Powered-By:
34
- - Undertow/1
35
- Server:
36
- - WildFly/10
37
- Pragma:
38
- - no-cache
39
- Location:
40
- - http://localhost:8080/hawkular/metrics/availability/<%= id %>
41
- Date:
42
- - Mon, 15 Aug 2016 15:20:38 GMT
43
- Connection:
44
- - keep-alive
45
- Content-Length:
46
- - '0'
47
- body:
48
- encoding: UTF-8
49
- string: ''
50
- http_version:
51
- recorded_at: Mon, 15 Aug 2016 15:20:38 GMT
52
- - request:
53
- method: get
54
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>
55
- body:
56
- encoding: US-ASCII
57
- string: ''
58
- headers:
59
- Accept:
60
- - application/json
61
- Accept-Encoding:
62
- - identity
63
- User-Agent:
64
- - hawkular-client-ruby
65
- Hawkular-Tenant:
66
- - <%= vcr_test_tenant %>
67
- Content-Type:
68
- - application/json
69
- Host:
70
- - localhost:8080
71
- response:
72
- status:
73
- code: 200
74
- message: OK
75
- headers:
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/10
84
- Pragma:
85
- - no-cache
86
- Date:
87
- - Mon, 15 Aug 2016 15:20:38 GMT
88
- Connection:
89
- - keep-alive
90
- Content-Type:
91
- - application/json
92
- Content-Length:
93
- - '196'
94
- body:
95
- encoding: UTF-8
96
- string: '{"id":"<%= id %>","tags":{"some":"value"},"dataRetention":123,"type":"availability","tenantId":"<%= vcr_test_tenant %>"}'
97
- http_version:
98
- recorded_at: Mon, 15 Aug 2016 15:20:38 GMT
99
- recorded_with: VCR 3.0.3
@@ -1,97 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw
6
- body:
7
- encoding: UTF-8
8
- string: '[{"timestamp":<%= minus50 %>,"value":"up"},{"timestamp":<%= minus40 %>,"value":"up"},{"timestamp":<%= minus30 %>,"value":"down"},{"timestamp":<%= minus20 %>,"value":"down"},{"timestamp":<%= minus10 %>,"value":"down"},{"timestamp":<%= now %>,"value":"up"}]'
9
- headers:
10
- Accept:
11
- - application/json
12
- Accept-Encoding:
13
- - identity
14
- User-Agent:
15
- - hawkular-client-ruby
16
- Hawkular-Tenant:
17
- - <%= vcr_test_tenant %>
18
- Content-Type:
19
- - application/json
20
- Content-Length:
21
- - '253'
22
- Host:
23
- - localhost:8080
24
- response:
25
- status:
26
- code: 200
27
- message: OK
28
- headers:
29
- Expires:
30
- - '0'
31
- Connection:
32
- - keep-alive
33
- Cache-Control:
34
- - no-cache, no-store, must-revalidate
35
- X-Powered-By:
36
- - Undertow/1
37
- Server:
38
- - WildFly/10
39
- Pragma:
40
- - no-cache
41
- Content-Length:
42
- - '0'
43
- Date:
44
- - Mon, 15 Aug 2016 15:20:38 GMT
45
- body:
46
- encoding: UTF-8
47
- string: ''
48
- http_version:
49
- recorded_at: Mon, 15 Aug 2016 15:20:38 GMT
50
- - request:
51
- method: get
52
- uri: http://jdoe:password@localhost:8080/hawkular/metrics/availability/<%= id %>/raw/?distinct=true&order=ASC
53
- body:
54
- encoding: US-ASCII
55
- string: ''
56
- headers:
57
- Accept:
58
- - application/json
59
- Accept-Encoding:
60
- - identity
61
- User-Agent:
62
- - hawkular-client-ruby
63
- Hawkular-Tenant:
64
- - <%= vcr_test_tenant %>
65
- Content-Type:
66
- - application/json
67
- Host:
68
- - localhost:8080
69
- response:
70
- status:
71
- code: 200
72
- message: OK
73
- headers:
74
- Expires:
75
- - '0'
76
- Cache-Control:
77
- - no-cache, no-store, must-revalidate
78
- X-Powered-By:
79
- - Undertow/1
80
- Server:
81
- - WildFly/10
82
- Pragma:
83
- - no-cache
84
- Date:
85
- - Mon, 15 Aug 2016 15:20:38 GMT
86
- Connection:
87
- - keep-alive
88
- Content-Type:
89
- - application/json
90
- Content-Length:
91
- - '126'
92
- body:
93
- encoding: UTF-8
94
- string: '[{"timestamp":<%= minus50 %>,"value":"up"},{"timestamp":<%= minus30 %>,"value":"down"},{"timestamp":<%= now %>,"value":"up"}]'
95
- http_version:
96
- recorded_at: Mon, 15 Aug 2016 15:20:38 GMT
97
- recorded_with: VCR 3.0.3