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,326 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/raw/query
6
- body:
7
- encoding: UTF-8
8
- string: '{"ids":["<%= id1 %>","<%= id2 %>","<%= id3 %>"],"start":null,"end":null,"limit":null,"order":null}'
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
- - '176'
22
- Host:
23
- - 127.0.0.1:8443
24
- response:
25
- status:
26
- code: 204
27
- message: No Content
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
- Date:
40
- - Mon, 15 Aug 2016 15:20:40 GMT
41
- body:
42
- encoding: UTF-8
43
- string: ''
44
- http_version:
45
- recorded_at: Mon, 15 Aug 2016 15:20:40 GMT
46
- - request:
47
- method: post
48
- uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/raw/query
49
- body:
50
- encoding: UTF-8
51
- string: '{"ids":["<%= id1 %>","<%= id2 %>","<%= id3 %>"],"start":null,"end":null,"limit":null,"order":null}'
52
- headers:
53
- Accept:
54
- - application/json
55
- Accept-Encoding:
56
- - identity
57
- User-Agent:
58
- - hawkular-client-ruby
59
- Hawkular-Tenant:
60
- - <%= vcr_test_tenant %>
61
- Content-Type:
62
- - application/json
63
- Content-Length:
64
- - '176'
65
- Host:
66
- - 127.0.0.1:8443
67
- response:
68
- status:
69
- code: 204
70
- message: No Content
71
- headers:
72
- Expires:
73
- - '0'
74
- Cache-Control:
75
- - no-cache, no-store, must-revalidate
76
- X-Powered-By:
77
- - Undertow/1
78
- Server:
79
- - WildFly/10
80
- Pragma:
81
- - no-cache
82
- Date:
83
- - Mon, 15 Aug 2016 15:20:40 GMT
84
- body:
85
- encoding: UTF-8
86
- string: ''
87
- http_version:
88
- recorded_at: Mon, 15 Aug 2016 15:20:40 GMT
89
- - request:
90
- method: post
91
- uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability/raw/query
92
- body:
93
- encoding: UTF-8
94
- string: '{"ids":["<%= id1 %>","<%= id2 %>","<%= id3 %>"],"start":null,"end":null,"limit":null,"order":null}'
95
- headers:
96
- Accept:
97
- - application/json
98
- Accept-Encoding:
99
- - identity
100
- User-Agent:
101
- - hawkular-client-ruby
102
- Hawkular-Tenant:
103
- - <%= vcr_test_tenant %>
104
- Content-Type:
105
- - application/json
106
- Content-Length:
107
- - '176'
108
- Host:
109
- - 127.0.0.1:8443
110
- response:
111
- status:
112
- code: 204
113
- message: No Content
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/10
123
- Pragma:
124
- - no-cache
125
- Date:
126
- - Mon, 15 Aug 2016 15:20:40 GMT
127
- body:
128
- encoding: UTF-8
129
- string: ''
130
- http_version:
131
- recorded_at: Mon, 15 Aug 2016 15:20:40 GMT
132
- - request:
133
- method: post
134
- uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/metrics/raw
135
- body:
136
- encoding: UTF-8
137
- string: '{"gauges":[{"id":"<%= id1 %>","data":[{"value":1.1,"timestamp":1471274440972}]},{"id":"<%= id2 %>","data":[{"value":2.2,"timestamp":1471274440972}]},{"id":"<%= id3 %>","data":[{"value":3.3,"timestamp":1471274440972}]}],"counters":[{"id":"<%= id1 %>","data":[{"value":1,"timestamp":1471274440972}]},{"id":"<%= id2 %>","data":[{"value":2,"timestamp":1471274440972}]},{"id":"<%= id3 %>","data":[{"value":3,"timestamp":1471274440972}]}],"availabilities":[{"id":"<%= id1 %>","data":[{"value":"up","timestamp":1471274440972}]},{"id":"<%= id2 %>","data":[{"value":"down","timestamp":1471274440972}]},{"id":"<%= id3 %>","data":[{"value":"up","timestamp":1471274440972}]}]}'
138
- headers:
139
- Accept:
140
- - application/json
141
- Accept-Encoding:
142
- - identity
143
- User-Agent:
144
- - hawkular-client-ruby
145
- Hawkular-Tenant:
146
- - <%= vcr_test_tenant %>
147
- Content-Type:
148
- - application/json
149
- Content-Length:
150
- - '898'
151
- Host:
152
- - 127.0.0.1:8443
153
- response:
154
- status:
155
- code: 200
156
- message: OK
157
- headers:
158
- Expires:
159
- - '0'
160
- Connection:
161
- - keep-alive
162
- Cache-Control:
163
- - no-cache, no-store, must-revalidate
164
- X-Powered-By:
165
- - Undertow/1
166
- Server:
167
- - WildFly/10
168
- Pragma:
169
- - no-cache
170
- Content-Length:
171
- - '0'
172
- Date:
173
- - Mon, 15 Aug 2016 15:20:40 GMT
174
- body:
175
- encoding: UTF-8
176
- string: ''
177
- http_version:
178
- recorded_at: Mon, 15 Aug 2016 15:20:40 GMT
179
- - request:
180
- method: post
181
- uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/raw/query
182
- body:
183
- encoding: UTF-8
184
- string: '{"ids":["<%= id1 %>","<%= id2 %>","<%= id3 %>"],"start":null,"end":null,"limit":null,"order":null}'
185
- headers:
186
- Accept:
187
- - application/json
188
- Accept-Encoding:
189
- - identity
190
- User-Agent:
191
- - hawkular-client-ruby
192
- Hawkular-Tenant:
193
- - <%= vcr_test_tenant %>
194
- Content-Type:
195
- - application/json
196
- Content-Length:
197
- - '176'
198
- Host:
199
- - 127.0.0.1:8443
200
- response:
201
- status:
202
- code: 200
203
- message: OK
204
- headers:
205
- Expires:
206
- - '0'
207
- Cache-Control:
208
- - no-cache, no-store, must-revalidate
209
- X-Powered-By:
210
- - Undertow/1
211
- Server:
212
- - WildFly/10
213
- Pragma:
214
- - no-cache
215
- Date:
216
- - Mon, 15 Aug 2016 15:20:41 GMT
217
- Connection:
218
- - keep-alive
219
- Content-Type:
220
- - application/json
221
- Content-Length:
222
- - '280'
223
- body:
224
- encoding: UTF-8
225
- string: '[{"id":"<%= id1 %>","data":[{"timestamp":1471274440972,"value":1}]},{"id":"<%= id2 %>","data":[{"timestamp":1471274440972,"value":2}]},{"id":"<%= id3 %>","data":[{"timestamp":1471274440972,"value":3}]}]'
226
- http_version:
227
- recorded_at: Mon, 15 Aug 2016 15:20:41 GMT
228
- - request:
229
- method: post
230
- uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/raw/query
231
- body:
232
- encoding: UTF-8
233
- string: '{"ids":["<%= id1 %>","<%= id2 %>","<%= id3 %>"],"start":null,"end":null,"limit":null,"order":null}'
234
- headers:
235
- Accept:
236
- - application/json
237
- Accept-Encoding:
238
- - identity
239
- User-Agent:
240
- - hawkular-client-ruby
241
- Hawkular-Tenant:
242
- - <%= vcr_test_tenant %>
243
- Content-Type:
244
- - application/json
245
- Content-Length:
246
- - '176'
247
- Host:
248
- - 127.0.0.1:8443
249
- response:
250
- status:
251
- code: 200
252
- message: OK
253
- headers:
254
- Expires:
255
- - '0'
256
- Cache-Control:
257
- - no-cache, no-store, must-revalidate
258
- X-Powered-By:
259
- - Undertow/1
260
- Server:
261
- - WildFly/10
262
- Pragma:
263
- - no-cache
264
- Date:
265
- - Mon, 15 Aug 2016 15:20:41 GMT
266
- Connection:
267
- - keep-alive
268
- Content-Type:
269
- - application/json
270
- Content-Length:
271
- - '286'
272
- body:
273
- encoding: UTF-8
274
- string: '[{"id":"<%= id1 %>","data":[{"timestamp":1471274440972,"value":1.1}]},{"id":"<%= id2 %>","data":[{"timestamp":1471274440972,"value":2.2}]},{"id":"<%= id3 %>","data":[{"timestamp":1471274440972,"value":3.3}]}]'
275
- http_version:
276
- recorded_at: Mon, 15 Aug 2016 15:20:41 GMT
277
- - request:
278
- method: post
279
- uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability/raw/query
280
- body:
281
- encoding: UTF-8
282
- string: '{"ids":["<%= id1 %>","<%= id2 %>","<%= id3 %>"],"start":null,"end":null,"limit":null,"order":null}'
283
- headers:
284
- Accept:
285
- - application/json
286
- Accept-Encoding:
287
- - identity
288
- User-Agent:
289
- - hawkular-client-ruby
290
- Hawkular-Tenant:
291
- - <%= vcr_test_tenant %>
292
- Content-Type:
293
- - application/json
294
- Content-Length:
295
- - '176'
296
- Host:
297
- - 127.0.0.1:8443
298
- response:
299
- status:
300
- code: 200
301
- message: OK
302
- headers:
303
- Expires:
304
- - '0'
305
- Cache-Control:
306
- - no-cache, no-store, must-revalidate
307
- X-Powered-By:
308
- - Undertow/1
309
- Server:
310
- - WildFly/10
311
- Pragma:
312
- - no-cache
313
- Date:
314
- - Mon, 15 Aug 2016 15:20:41 GMT
315
- Connection:
316
- - keep-alive
317
- Content-Type:
318
- - application/json
319
- Content-Length:
320
- - '291'
321
- body:
322
- encoding: UTF-8
323
- string: '[{"id":"<%= id1 %>","data":[{"timestamp":1471274440972,"value":"up"}]},{"id":"<%= id2 %>","data":[{"timestamp":1471274440972,"value":"down"}]},{"id":"<%= id3 %>","data":[{"timestamp":1471274440972,"value":"up"}]}]'
324
- http_version:
325
- recorded_at: Mon, 15 Aug 2016 15:20:41 GMT
326
- recorded_with: VCR 3.0.3
@@ -1,314 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw/
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - application/json
12
- Accept-Encoding:
13
- - identity
14
- User-Agent:
15
- - hawkular-client-ruby
16
- Hawkular-Tenant:
17
- - hawkular
18
- Content-Type:
19
- - application/json
20
- Host:
21
- - 127.0.0.1:8443
22
- response:
23
- status:
24
- code: 204
25
- message: No Content
26
- headers:
27
- Expires:
28
- - '0'
29
- Cache-Control:
30
- - no-cache, no-store, must-revalidate
31
- X-Powered-By:
32
- - Undertow/1
33
- Server:
34
- - WildFly/10
35
- Pragma:
36
- - no-cache
37
- Date:
38
- - Mon, 15 Aug 2016 15:20:41 GMT
39
- body:
40
- encoding: UTF-8
41
- string: ''
42
- http_version:
43
- recorded_at: Mon, 15 Aug 2016 15:20:41 GMT
44
- - request:
45
- method: get
46
- uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/<%= id %>/raw/
47
- body:
48
- encoding: US-ASCII
49
- string: ''
50
- headers:
51
- Accept:
52
- - application/json
53
- Accept-Encoding:
54
- - identity
55
- User-Agent:
56
- - hawkular-client-ruby
57
- Hawkular-Tenant:
58
- - hawkular
59
- Content-Type:
60
- - application/json
61
- Host:
62
- - 127.0.0.1:8443
63
- response:
64
- status:
65
- code: 204
66
- message: No Content
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, 15 Aug 2016 15:20:41 GMT
80
- body:
81
- encoding: UTF-8
82
- string: ''
83
- http_version:
84
- recorded_at: Mon, 15 Aug 2016 15:20:41 GMT
85
- - request:
86
- method: get
87
- uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability/<%= id %>/raw/
88
- body:
89
- encoding: US-ASCII
90
- string: ''
91
- headers:
92
- Accept:
93
- - application/json
94
- Accept-Encoding:
95
- - identity
96
- User-Agent:
97
- - hawkular-client-ruby
98
- Hawkular-Tenant:
99
- - hawkular
100
- Content-Type:
101
- - application/json
102
- Host:
103
- - 127.0.0.1:8443
104
- response:
105
- status:
106
- code: 204
107
- message: No Content
108
- headers:
109
- Expires:
110
- - '0'
111
- Cache-Control:
112
- - no-cache, no-store, must-revalidate
113
- X-Powered-By:
114
- - Undertow/1
115
- Server:
116
- - WildFly/10
117
- Pragma:
118
- - no-cache
119
- Date:
120
- - Mon, 15 Aug 2016 15:20:41 GMT
121
- body:
122
- encoding: UTF-8
123
- string: ''
124
- http_version:
125
- recorded_at: Mon, 15 Aug 2016 15:20:41 GMT
126
- - request:
127
- method: post
128
- uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/metrics/raw
129
- body:
130
- encoding: UTF-8
131
- string: '{"gauges":[{"id":"<%= id %>","data":[{"value":1.1,"timestamp":1471274441339}]}],"counters":[{"id":"<%= id %>","data":[{"value":1,"timestamp":1471274441339}]}],"availabilities":[{"id":"<%= id %>","data":[{"value":"down","timestamp":1471274441339}]}]}'
132
- headers:
133
- Accept:
134
- - application/json
135
- Accept-Encoding:
136
- - identity
137
- User-Agent:
138
- - hawkular-client-ruby
139
- Hawkular-Tenant:
140
- - hawkular
141
- Content-Type:
142
- - application/json
143
- Content-Length:
144
- - '330'
145
- Host:
146
- - 127.0.0.1:8443
147
- response:
148
- status:
149
- code: 200
150
- message: OK
151
- headers:
152
- Expires:
153
- - '0'
154
- Connection:
155
- - keep-alive
156
- Cache-Control:
157
- - no-cache, no-store, must-revalidate
158
- X-Powered-By:
159
- - Undertow/1
160
- Server:
161
- - WildFly/10
162
- Pragma:
163
- - no-cache
164
- Content-Length:
165
- - '0'
166
- Date:
167
- - Mon, 15 Aug 2016 15:20:41 GMT
168
- body:
169
- encoding: UTF-8
170
- string: ''
171
- http_version:
172
- recorded_at: Mon, 15 Aug 2016 15:20:41 GMT
173
- - request:
174
- method: get
175
- uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/counters/<%= id %>/raw/
176
- body:
177
- encoding: US-ASCII
178
- string: ''
179
- headers:
180
- Accept:
181
- - application/json
182
- Accept-Encoding:
183
- - identity
184
- User-Agent:
185
- - hawkular-client-ruby
186
- Hawkular-Tenant:
187
- - hawkular
188
- Content-Type:
189
- - application/json
190
- Host:
191
- - 127.0.0.1:8443
192
- response:
193
- status:
194
- code: 200
195
- message: OK
196
- headers:
197
- Expires:
198
- - '0'
199
- Cache-Control:
200
- - no-cache, no-store, must-revalidate
201
- X-Powered-By:
202
- - Undertow/1
203
- Server:
204
- - WildFly/10
205
- Pragma:
206
- - no-cache
207
- Date:
208
- - Mon, 15 Aug 2016 15:20:41 GMT
209
- Connection:
210
- - keep-alive
211
- Content-Type:
212
- - application/json
213
- Content-Length:
214
- - '39'
215
- body:
216
- encoding: UTF-8
217
- string: '[{"timestamp":1471274441339,"value":1}]'
218
- http_version:
219
- recorded_at: Mon, 15 Aug 2016 15:20:41 GMT
220
- - request:
221
- method: get
222
- uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/gauges/<%= id %>/raw/
223
- body:
224
- encoding: US-ASCII
225
- string: ''
226
- headers:
227
- Accept:
228
- - application/json
229
- Accept-Encoding:
230
- - identity
231
- User-Agent:
232
- - hawkular-client-ruby
233
- Hawkular-Tenant:
234
- - hawkular
235
- Content-Type:
236
- - application/json
237
- Host:
238
- - 127.0.0.1:8443
239
- response:
240
- status:
241
- code: 200
242
- message: OK
243
- headers:
244
- Expires:
245
- - '0'
246
- Cache-Control:
247
- - no-cache, no-store, must-revalidate
248
- X-Powered-By:
249
- - Undertow/1
250
- Server:
251
- - WildFly/10
252
- Pragma:
253
- - no-cache
254
- Date:
255
- - Mon, 15 Aug 2016 15:20:41 GMT
256
- Connection:
257
- - keep-alive
258
- Content-Type:
259
- - application/json
260
- Content-Length:
261
- - '41'
262
- body:
263
- encoding: UTF-8
264
- string: '[{"timestamp":1471274441339,"value":1.1}]'
265
- http_version:
266
- recorded_at: Mon, 15 Aug 2016 15:20:41 GMT
267
- - request:
268
- method: get
269
- uri: https://jdoe:password@127.0.0.1:8443/hawkular/metrics/availability/<%= id %>/raw/
270
- body:
271
- encoding: US-ASCII
272
- string: ''
273
- headers:
274
- Accept:
275
- - application/json
276
- Accept-Encoding:
277
- - identity
278
- User-Agent:
279
- - hawkular-client-ruby
280
- Hawkular-Tenant:
281
- - hawkular
282
- Content-Type:
283
- - application/json
284
- Host:
285
- - 127.0.0.1:8443
286
- response:
287
- status:
288
- code: 200
289
- message: OK
290
- headers:
291
- Expires:
292
- - '0'
293
- Cache-Control:
294
- - no-cache, no-store, must-revalidate
295
- X-Powered-By:
296
- - Undertow/1
297
- Server:
298
- - WildFly/10
299
- Pragma:
300
- - no-cache
301
- Date:
302
- - Mon, 15 Aug 2016 15:20:41 GMT
303
- Connection:
304
- - keep-alive
305
- Content-Type:
306
- - application/json
307
- Content-Length:
308
- - '44'
309
- body:
310
- encoding: UTF-8
311
- string: '[{"timestamp":1471274441339,"value":"down"}]'
312
- http_version:
313
- recorded_at: Mon, 15 Aug 2016 15:20:41 GMT
314
- recorded_with: VCR 3.0.3