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.
- checksums.yaml +4 -4
- data/.travis.yml +19 -2
- data/.travis/wait_for_services.rb +23 -0
- data/CHANGES.rdoc +11 -0
- data/docker-compose.yml +15 -0
- data/lib/hawkular/alerts/alerts_api.rb +24 -0
- data/lib/hawkular/base_client.rb +7 -0
- data/lib/hawkular/inventory/entities.rb +3 -0
- data/lib/hawkular/metrics/metric_api.rb +38 -3
- data/lib/hawkular/metrics/metrics_client.rb +3 -0
- data/lib/hawkular/metrics/tenant_api.rb +2 -2
- data/lib/hawkular/version.rb +1 -1
- data/spec/integration/alert-resources/alerts-test-data.json +40 -0
- data/spec/integration/alert-resources/events-test-data.json +78 -0
- data/spec/integration/alert-resources/triggers-test-data.json +66 -0
- data/spec/integration/alerts_spec.rb +192 -83
- data/spec/integration/hello-world-definitions.json +1 -2
- data/spec/integration/inventory_spec.rb +18 -5
- data/spec/integration/metric_spec.rb +201 -40
- data/spec/integration/operations_spec.rb +45 -1
- data/spec/spec_helper.rb +25 -6
- data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_acknowledge_an_alert.yml +205 -0
- data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_fetch_single_alert.yml +108 -0
- data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_list_alerts.yml +59 -0
- data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_list_alerts_for_trigger.yml +58 -0
- data/spec/vcr_cassettes/Alert/Alerts/{Should_list_alerts_for_unknown_trigger.yml → Templates/Should_list_alerts_for_unknown_trigger.yml} +13 -9
- data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_list_open_alerts.yml +59 -0
- data/spec/vcr_cassettes/Alert/Alerts/Templates/Should_resolve_an_alert.yml +207 -0
- data/spec/vcr_cassettes/Alert/Alerts/Templates/setup.yml +255 -0
- data/spec/vcr_cassettes/Alert/Alerts/Templates/setup_cleanup.yml +302 -0
- data/spec/vcr_cassettes/Alert/EndToEnd/Templates/Should_create_and_fire_a_trigger.yml +527 -0
- 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
- 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
- data/spec/vcr_cassettes/Alert/Events/Templates/Should_list_events.yml +91 -0
- data/spec/vcr_cassettes/Alert/Events/Templates/Should_list_events_using_criteria.yml +60 -0
- data/spec/vcr_cassettes/Alert/Events/{Should_not_list_events_using_criteria.yml → Templates/Should_not_list_events_using_criteria.yml} +14 -13
- data/spec/vcr_cassettes/Alert/Events/Templates/setup.yml +615 -0
- data/spec/vcr_cassettes/Alert/Events/Templates/setup_cleanup.yml +567 -0
- data/spec/vcr_cassettes/Alert/Groups/{Should_operate_a_complex_group_trigger.yml → Templates/Should_operate_a_complex_group_trigger.yml} +508 -352
- data/spec/vcr_cassettes/{Alerts → Alert/Templates}/Should_return_the_version.yml +10 -8
- data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_List_Triggers.yml +55 -0
- data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_List_Triggers_for_ID.yml +56 -0
- data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_List_Triggers_for_Tag.yml +56 -0
- data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_List_Triggers_for_Tags.yml +56 -0
- data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_bulk_load_triggers.yml +243 -0
- 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
- 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
- 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
- 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
- data/spec/vcr_cassettes/Alert/Triggers/Templates/Should_get_a_single_metric_Trigger.yml +50 -0
- data/spec/vcr_cassettes/Alert/Triggers/{Should_get_the_action_definitions.yml → Templates/Should_get_the_action_definitions.yml} +46 -73
- 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
- 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
- data/spec/vcr_cassettes/Alert/Triggers/Templates/setup.yml +52 -0
- 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
- data/spec/vcr_cassettes/Inventory/NonSecure/inventory_0_17/Templates/Should_list_metrics_of_given_metric_type.yml +29 -25
- data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Get_metric_definition_by_id.yml +3 -3
- data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Retrieve_metric_rate_points.yml +5 -5
- data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_Availability_definition.yml +4 -4
- data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_Counter_definition.yml +4 -4
- data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_create_gauge_definition.yml +4 -4
- data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_push_metric_data_to_existing_gauge.yml +4 -4
- data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_update_tags_for_Availability_definition.yml +6 -6
- data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/Should_update_tags_for_gauge_definition.yml +8 -8
- data/spec/vcr_cassettes/Metrics/NonSecure/ID_with_special_characters/Templates/setup_client.yml +44 -0
- 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
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/Should_group_contiguous_values.yml +47 -6
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/Should_push_metric_data_to_non-existing_Availability.yml +12 -12
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Availability_metrics/setup_client.yml +44 -0
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +17 -17
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +23 -23
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml +19 -19
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml +12 -12
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Counter_metrics/setup_client.yml +44 -0
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml +19 -19
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml +12 -12
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_periods.yml +5 -5
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory.yml +151 -5
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/Should_return_platform_memory_def.yml +152 -6
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/setup_client.yml +44 -0
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_fetch_rate_stats_for_mixed_metric.yml +33 -33
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_fetch_stats_for_mixed_metric.yml +31 -32
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +108 -20
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +26 -26
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Mixed_metrics/Should_send_mixed_metric_request_of_a_single_type.yml +27 -27
- 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
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/No_Tenant/Should_fail.yml +43 -4
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Status/Should_return_the_version.yml +44 -3
- 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
- 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
- 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
- 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
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/String_metrics/setup_client.yml +44 -0
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Tags_Metrics/setup_client.yml +44 -0
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Tenants/Should_create_and_return_tenant.yml +10 -6
- 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
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/setup_client.yml +44 -0
- data/spec/vcr_cassettes/Metrics/Secure/metrics_services/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +80 -33
- data/spec/vcr_cassettes/Operation/NonSecure/Operation/Add_XA_datasource_should_be_doable.json +23 -0
- data/spec/vcr_cassettes/Operation/NonSecure/Operation/{Add_datasource_should_be_doable.json → Add_non-XA_datasource_should_be_doable.json} +0 -0
- metadata +111 -156
- data/spec/vcr_cassettes/Alert/Alerts/Should_acknowledge_an_alert.yml +0 -183
- data/spec/vcr_cassettes/Alert/Alerts/Should_fetch_single_alert.yml +0 -69
- data/spec/vcr_cassettes/Alert/Alerts/Should_list_alerts.yml +0 -85
- data/spec/vcr_cassettes/Alert/Alerts/Should_list_alerts_for_trigger.yml +0 -142
- data/spec/vcr_cassettes/Alert/Alerts/Should_resolve_an_alert.yml +0 -181
- data/spec/vcr_cassettes/Alert/Alerts/Should_resolve_an_alert2.yml +0 -49
- data/spec/vcr_cassettes/Alert/EndToEnd/Should_create_and_fire_a_trigger.yml +0 -1187
- data/spec/vcr_cassettes/Alert/Events/Should_create_an_event.yml +0 -50
- data/spec/vcr_cassettes/Alert/Events/Should_list_events.yml +0 -101
- data/spec/vcr_cassettes/Alert/Events/Should_list_events_using_criteria.yml +0 -79
- data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers.yml +0 -62
- data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_ID.yml +0 -55
- data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_Tag.yml +0 -68
- data/spec/vcr_cassettes/Alert/Triggers/Should_List_Triggers_for_Tags.yml +0 -68
- data/spec/vcr_cassettes/Alert/Triggers/Should_bulk_load_triggers.yml +0 -225
- data/spec/vcr_cassettes/Alert/Triggers/Should_create_an_action.yml +0 -134
- data/spec/vcr_cassettes/Alert/Triggers/Should_create_an_action_for_webhooks.yml +0 -220
- data/spec/vcr_cassettes/Alert/Triggers/Should_get_a_single_Trigger_with_conditions.yml +0 -138
- data/spec/vcr_cassettes/Alert/Triggers/Should_get_a_single_metric_Trigger.yml +0 -50
- data/spec/vcr_cassettes/Alert/Triggers/Should_not_create_an_action_for_unknown_properties.yml +0 -134
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml +0 -99
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_group_contiguous_values.yml +0 -97
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml +0 -240
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml +0 -99
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml +0 -99
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +0 -240
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml +0 -281
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml +0 -240
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +0 -326
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +0 -314
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/No_Tenant/Should_fail.yml +0 -50
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Simple/Should_be_Cool.yml +0 -48
- data/spec/vcr_cassettes/Metrics/NonSecure/metrics_0_16_0/Templates/Tenants/Should_create_and_return_tenant.yml +0 -99
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_create_Availability_definition_using_MetricDefinition_parameter.yml +0 -99
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_create_and_return_Availability_using_Hash_parameter.yml +0 -99
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_group_contiguous_values.yml +0 -97
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Availability_metrics/Should_update_tags_for_Availability_definition.yml +0 -240
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml +0 -99
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_create_counter_definition_using_MetricDefinition_parameter.yml +0 -99
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_as_bucketed_results.yml +0 -240
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_get_metrics_with_limit_and_order.yml +0 -328
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_existing_counter.yml +0 -281
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Counter_metrics/Should_push_metric_data_to_non-existing_counter.yml +0 -144
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_Hash.yml +0 -99
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_create_gauge_definition_using_MetricDefinition.yml +0 -99
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_existing_gauge.yml +0 -281
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_push_metric_data_to_non-existing_gauge.yml +0 -144
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_return_periods.yml +0 -97
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Gauge_metrics/Should_update_tags_for_gauge_definition.yml +0 -240
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_requests_raw_data_for_multiple_metrics.yml +0 -326
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Mixed_metrics/Should_send_mixed_metric_request.yml +0 -314
- 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
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/No_Tenant/Should_fail.yml +0 -50
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Simple/Should_be_Cool.yml +0 -48
- data/spec/vcr_cassettes/Metrics/Secure/metrics_0_16_0/Templates/Tenants/Should_create_and_return_tenant.yml +0 -99
@@ -2,7 +2,153 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://jdoe:password@localhost:8080/<%= tenant %>/metrics/
|
5
|
+
uri: http://jdoe:password@localhost:8080/<%= tenant %>/metrics/status
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- identity
|
14
|
+
User-Agent:
|
15
|
+
- <%= tenant %>-client-ruby
|
16
|
+
Hawkular-Tenant:
|
17
|
+
- <%= tenant %>
|
18
|
+
Content-Type:
|
19
|
+
- application/json
|
20
|
+
Host:
|
21
|
+
- localhost:8080
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
X-Powered-By:
|
30
|
+
- Undertow/1
|
31
|
+
Server:
|
32
|
+
- WildFly/10
|
33
|
+
Content-Type:
|
34
|
+
- application/json
|
35
|
+
Content-Length:
|
36
|
+
- '133'
|
37
|
+
Date:
|
38
|
+
- Thu, 13 Oct 2016 03:30:38 GMT
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"MetricsService":"STARTED","Implementation-Version":"0.20.1.Final","Built-From-Git-SHA1":"f23946235446d3425db31d262b47b4f950ddabb3"}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Thu, 13 Oct 2016 03:30:38 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: http://jdoe:password@localhost:8080/<%= tenant %>/inventory/status
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Accept:
|
52
|
+
- application/json
|
53
|
+
Accept-Encoding:
|
54
|
+
- identity
|
55
|
+
User-Agent:
|
56
|
+
- <%= tenant %>-client-ruby
|
57
|
+
Hawkular-Tenant:
|
58
|
+
- <%= tenant %>
|
59
|
+
Content-Type:
|
60
|
+
- application/json
|
61
|
+
Host:
|
62
|
+
- localhost:8080
|
63
|
+
response:
|
64
|
+
status:
|
65
|
+
code: 200
|
66
|
+
message: OK
|
67
|
+
headers:
|
68
|
+
Connection:
|
69
|
+
- keep-alive
|
70
|
+
X-Powered-By:
|
71
|
+
- Undertow/1
|
72
|
+
Server:
|
73
|
+
- WildFly/10
|
74
|
+
Content-Type:
|
75
|
+
- application/json
|
76
|
+
Content-Length:
|
77
|
+
- '234'
|
78
|
+
Date:
|
79
|
+
- Thu, 13 Oct 2016 03:30:38 GMT
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: |-
|
83
|
+
{
|
84
|
+
"Implementation-Version" : "0.20.0.Final",
|
85
|
+
"Built-From-Git-SHA1" : "a3b55c0c65a141fdbb007524d063b5d57bf2d96c",
|
86
|
+
"Inventory-Implementation" : "org.<%= tenant %>.inventory.impl.tinkerpop.TinkerpopInventory",
|
87
|
+
"Initialized" : "true"
|
88
|
+
}
|
89
|
+
http_version:
|
90
|
+
recorded_at: Thu, 13 Oct 2016 03:30:38 GMT
|
91
|
+
- request:
|
92
|
+
method: get
|
93
|
+
uri: http://jdoe:password@localhost:8080/<%= tenant %>/inventory/traversal/type=f
|
94
|
+
body:
|
95
|
+
encoding: US-ASCII
|
96
|
+
string: ''
|
97
|
+
headers:
|
98
|
+
Accept:
|
99
|
+
- application/json
|
100
|
+
Accept-Encoding:
|
101
|
+
- identity
|
102
|
+
User-Agent:
|
103
|
+
- <%= tenant %>-client-ruby
|
104
|
+
Hawkular-Tenant:
|
105
|
+
- <%= tenant %>
|
106
|
+
Content-Type:
|
107
|
+
- application/json
|
108
|
+
Host:
|
109
|
+
- localhost:8080
|
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/10
|
123
|
+
Pragma:
|
124
|
+
- no-cache
|
125
|
+
Date:
|
126
|
+
- Thu, 13 Oct 2016 03:30:38 GMT
|
127
|
+
X-Total-Count:
|
128
|
+
- '1'
|
129
|
+
Connection:
|
130
|
+
- keep-alive
|
131
|
+
Content-Type:
|
132
|
+
- application/json
|
133
|
+
Content-Length:
|
134
|
+
- '300'
|
135
|
+
Link:
|
136
|
+
- <http://localhost:8080/<%= tenant %>/inventory/traversal/type=f>; rel="current"
|
137
|
+
body:
|
138
|
+
encoding: UTF-8
|
139
|
+
string: |-
|
140
|
+
[ {
|
141
|
+
"path" : "/t;<%= tenant %>/f;d19d84dc-f403-4f5b-a987-fbd48863ea4f",
|
142
|
+
"identityHash" : "12efca83e331bdae189fa5db13d2d5a6b70f5a6",
|
143
|
+
"contentHash" : "da39a3ee5e6b4bd3255bfef95601890afd879",
|
144
|
+
"syncHash" : "af2860c4e1bb64fc3177139eeb3ab967d654f324",
|
145
|
+
"id" : "d19d84dc-f403-4f5b-a987-fbd48863ea4f"
|
146
|
+
} ]
|
147
|
+
http_version:
|
148
|
+
recorded_at: Thu, 13 Oct 2016 03:30:38 GMT
|
149
|
+
- request:
|
150
|
+
method: get
|
151
|
+
uri: http://jdoe:password@localhost:8080/<%= tenant %>/metrics/gauges/MI~R~%5Bd19d84dc-f403-4f5b-a987-fbd48863ea4f%2Fplatform~%2FOPERATING_SYSTEM=d19d84dc-f403-4f5b-a987-fbd48863ea4f_OperatingSystem%2FMEMORY=Memory%5D~MT~Platform_Memory_Total%20Memory/raw/
|
6
152
|
body:
|
7
153
|
encoding: US-ASCII
|
8
154
|
string: ''
|
@@ -35,16 +181,16 @@ http_interactions:
|
|
35
181
|
Pragma:
|
36
182
|
- no-cache
|
37
183
|
Date:
|
38
|
-
-
|
184
|
+
- Thu, 13 Oct 2016 03:30:38 GMT
|
39
185
|
Connection:
|
40
186
|
- keep-alive
|
41
187
|
Content-Type:
|
42
188
|
- application/json
|
43
189
|
Content-Length:
|
44
|
-
- '
|
190
|
+
- '10609'
|
45
191
|
body:
|
46
192
|
encoding: UTF-8
|
47
|
-
string: '[{"timestamp":1471274424000,"value":1.6438841344E10},{"timestamp":1471274364000,"value":1.6438841344E10},{"timestamp":1471274304001,"value":1.6438841344E10},{"timestamp":1471274244000,"value":1.6438841344E10},{"timestamp":1471274184000,"value":1.6438841344E10},{"timestamp":1471274124001,"value":1.6438841344E10},{"timestamp":1471274063001,"value":1.6438841344E10},{"timestamp":1471274003000,"value":1.6438841344E10},{"timestamp":1471273943000,"value":1.6438841344E10},{"timestamp":1471273883001,"value":1.6438841344E10},{"timestamp":1471273823000,"value":1.6438841344E10},{"timestamp":1471273763000,"value":1.6438841344E10},{"timestamp":1471273702001,"value":1.6438841344E10},{"timestamp":1471273642000,"value":1.6438841344E10},{"timestamp":1471273582000,"value":1.6438841344E10},{"timestamp":1471273522000,"value":1.6438841344E10},{"timestamp":1471273461001,"value":1.6438841344E10},{"timestamp":1471273401000,"value":1.6438841344E10},{"timestamp":1471273340001,"value":1.6438841344E10},{"timestamp":1471273280000,"value":1.6438841344E10},{"timestamp":1471273219001,"value":1.6438841344E10},{"timestamp":1471273159000,"value":1.6438841344E10},{"timestamp":1471273099000,"value":1.6438841344E10},{"timestamp":1471273039000,"value":1.6438841344E10},{"timestamp":1471272979001,"value":1.6438841344E10},{"timestamp":1471272919000,"value":1.6438841344E10},{"timestamp":1471272859000,"value":1.6438841344E10},{"timestamp":1471272799001,"value":1.6438841344E10},{"timestamp":1471272739001,"value":1.6438841344E10},{"timestamp":1471272679001,"value":1.6438841344E10},{"timestamp":1471272619001,"value":1.6438841344E10},{"timestamp":1471272559001,"value":1.6438841344E10},{"timestamp":1471272499000,"value":1.6438841344E10},{"timestamp":1471272439001,"value":1.6438841344E10},{"timestamp":1471272379000,"value":1.6438841344E10},{"timestamp":1471272319001,"value":1.6438841344E10},{"timestamp":1471272259001,"value":1.6438841344E10},{"timestamp":1471272199001,"value":1.6438841344E10},{"timestamp":1471272139000,"value":1.6438841344E10},{"timestamp":1471272079001,"value":1.6438841344E10},{"timestamp":1471272018001,"value":1.6438841344E10},{"timestamp":1471271957001,"value":1.6438841344E10},{"timestamp":1471271897001,"value":1.6438841344E10},{"timestamp":1471271837000,"value":1.6438841344E10},{"timestamp":1471271777000,"value":1.6438841344E10},{"timestamp":1471271717000,"value":1.6438841344E10},{"timestamp":1471271657001,"value":1.6438841344E10},{"timestamp":1471271597001,"value":1.6438841344E10},{"timestamp":1471271537016,"value":1.6438841344E10},{"timestamp":1471271477000,"value":1.6438841344E10},{"timestamp":1471271417001,"value":1.6438841344E10},{"timestamp":1471271357001,"value":1.6438841344E10},{"timestamp":1471271297001,"value":1.6438841344E10},{"timestamp":1471271237000,"value":1.6438841344E10},{"timestamp":1471271177001,"value":1.6438841344E10},{"timestamp":1471271117000,"value":1.6438841344E10},{"timestamp":1471271057001,"value":1.6438841344E10},{"timestamp":1471270996002,"value":1.6438841344E10},{"timestamp":1471270936001,"value":1.6438841344E10},{"timestamp":1471270876001,"value":1.6438841344E10},{"timestamp":1471270816000,"value":1.6438841344E10},{"timestamp":1471270756001,"value":1.6438841344E10},{"timestamp":1471270696002,"value":1.6438841344E10},{"timestamp":1471270636001,"value":1.6438841344E10},{"timestamp":1471270576000,"value":1.6438841344E10},{"timestamp":1471270516001,"value":1.6438841344E10},{"timestamp":1471270456001,"value":1.6438841344E10},{"timestamp":1471270396002,"value":1.6438841344E10},{"timestamp":1471270336001,"value":1.6438841344E10},{"timestamp":1471270276000,"value":1.6438841344E10},{"timestamp":1471270216000,"value":1.6438841344E10},{"timestamp":1471270156000,"value":1.6438841344E10},{"timestamp":1471270095055,"value":1.6438841344E10}]'
|
193
|
+
string: '[{"timestamp":1476329399006,"value":1.6438665216E10},{"timestamp":1476329339006,"value":1.6438665216E10},{"timestamp":1476329279006,"value":1.6438665216E10},{"timestamp":1476329219005,"value":1.6438665216E10},{"timestamp":1476329159005,"value":1.6438665216E10},{"timestamp":1476329099006,"value":1.6438665216E10},{"timestamp":1476329039006,"value":1.6438665216E10},{"timestamp":1476328979019,"value":1.6438665216E10},{"timestamp":1476328919005,"value":1.6438665216E10},{"timestamp":1476328859005,"value":1.6438665216E10},{"timestamp":1476328798006,"value":1.6438665216E10},{"timestamp":1476328738005,"value":1.6438665216E10},{"timestamp":1476328678006,"value":1.6438665216E10},{"timestamp":1476328618006,"value":1.6438665216E10},{"timestamp":1476328558006,"value":1.6438665216E10},{"timestamp":1476328497005,"value":1.6438665216E10},{"timestamp":1476328437006,"value":1.6438665216E10},{"timestamp":1476328377005,"value":1.6438665216E10},{"timestamp":1476328317005,"value":1.6438665216E10},{"timestamp":1476328257005,"value":1.6438665216E10},{"timestamp":1476328197004,"value":1.6438665216E10},{"timestamp":1476328137006,"value":1.6438665216E10},{"timestamp":1476328076005,"value":1.6438665216E10},{"timestamp":1476328016005,"value":1.6438665216E10},{"timestamp":1476327956005,"value":1.6438665216E10},{"timestamp":1476327895005,"value":1.6438665216E10},{"timestamp":1476327835005,"value":1.6438665216E10},{"timestamp":1476327775005,"value":1.6438665216E10},{"timestamp":1476327715005,"value":1.6438665216E10},{"timestamp":1476327655022,"value":1.6438665216E10},{"timestamp":1476327595005,"value":1.6438665216E10},{"timestamp":1476325203005,"value":1.6438665216E10},{"timestamp":1476325143005,"value":1.6438665216E10},{"timestamp":1476325083004,"value":1.6438665216E10},{"timestamp":1476325023005,"value":1.6438665216E10},{"timestamp":1476324962006,"value":1.6438665216E10},{"timestamp":1476324902005,"value":1.6438665216E10},{"timestamp":1476324842005,"value":1.6438665216E10},{"timestamp":1476324782006,"value":1.6438665216E10},{"timestamp":1476324722005,"value":1.6438665216E10},{"timestamp":1476324662005,"value":1.6438665216E10},{"timestamp":1476324602005,"value":1.6438665216E10},{"timestamp":1476324542004,"value":1.6438665216E10},{"timestamp":1476324481005,"value":1.6438665216E10},{"timestamp":1476324421005,"value":1.6438665216E10},{"timestamp":1476324361005,"value":1.6438665216E10},{"timestamp":1476324301005,"value":1.6438665216E10},{"timestamp":1476324241005,"value":1.6438665216E10},{"timestamp":1476324181005,"value":1.6438665216E10},{"timestamp":1476324120005,"value":1.6438665216E10},{"timestamp":1476324060005,"value":1.6438665216E10},{"timestamp":1476324000005,"value":1.6438665216E10},{"timestamp":1476300775012,"value":1.6438665216E10},{"timestamp":1476300715021,"value":1.6438665216E10},{"timestamp":1476300654013,"value":1.6438665216E10},{"timestamp":1476323940005,"value":1.6438665216E10},{"timestamp":1476323880005,"value":1.6438665216E10},{"timestamp":1476323820006,"value":1.6438665216E10},{"timestamp":1476323760005,"value":1.6438665216E10},{"timestamp":1476323700006,"value":1.6438665216E10},{"timestamp":1476323640005,"value":1.6438665216E10},{"timestamp":1476323580005,"value":1.6438665216E10},{"timestamp":1476323520005,"value":1.6438665216E10},{"timestamp":1476323460004,"value":1.6438665216E10},{"timestamp":1476323400005,"value":1.6438665216E10},{"timestamp":1476323340004,"value":1.6438665216E10},{"timestamp":1476323280004,"value":1.6438665216E10},{"timestamp":1476323220005,"value":1.6438665216E10},{"timestamp":1476323160006,"value":1.6438665216E10},{"timestamp":1476323100005,"value":1.6438665216E10},{"timestamp":1476323040008,"value":1.6438665216E10},{"timestamp":1476322980005,"value":1.6438665216E10},{"timestamp":1476322920005,"value":1.6438665216E10},{"timestamp":1476322860021,"value":1.6438665216E10},{"timestamp":1476322800006,"value":1.6438665216E10},{"timestamp":1476322739005,"value":1.6438665216E10},{"timestamp":1476322679005,"value":1.6438665216E10},{"timestamp":1476322619005,"value":1.6438665216E10},{"timestamp":1476322559005,"value":1.6438665216E10},{"timestamp":1476322499005,"value":1.6438665216E10},{"timestamp":1476322439005,"value":1.6438665216E10},{"timestamp":1476322379005,"value":1.6438665216E10},{"timestamp":1476322319006,"value":1.6438665216E10},{"timestamp":1476322259005,"value":1.6438665216E10},{"timestamp":1476322199005,"value":1.6438665216E10},{"timestamp":1476322139005,"value":1.6438665216E10},{"timestamp":1476322079004,"value":1.6438665216E10},{"timestamp":1476322019005,"value":1.6438665216E10},{"timestamp":1476321959005,"value":1.6438665216E10},{"timestamp":1476321899005,"value":1.6438665216E10},{"timestamp":1476321839005,"value":1.6438665216E10},{"timestamp":1476321779005,"value":1.6438665216E10},{"timestamp":1476321718005,"value":1.6438665216E10},{"timestamp":1476321658005,"value":1.6438665216E10},{"timestamp":1476321598005,"value":1.6438665216E10},{"timestamp":1476321538004,"value":1.6438665216E10},{"timestamp":1476321478005,"value":1.6438665216E10},{"timestamp":1476321418005,"value":1.6438665216E10},{"timestamp":1476321358005,"value":1.6438665216E10},{"timestamp":1476321298005,"value":1.6438665216E10},{"timestamp":1476321238005,"value":1.6438665216E10},{"timestamp":1476321177005,"value":1.6438665216E10},{"timestamp":1476321117006,"value":1.6438665216E10},{"timestamp":1476321057005,"value":1.6438665216E10},{"timestamp":1476320997005,"value":1.6438665216E10},{"timestamp":1476320937006,"value":1.6438665216E10},{"timestamp":1476320877005,"value":1.6438665216E10},{"timestamp":1476320817017,"value":1.6438665216E10},{"timestamp":1476320757005,"value":1.6438665216E10},{"timestamp":1476320697005,"value":1.6438665216E10},{"timestamp":1476320637005,"value":1.6438665216E10},{"timestamp":1476320577004,"value":1.6438665216E10},{"timestamp":1476320516006,"value":1.6438665216E10},{"timestamp":1476320456019,"value":1.6438665216E10},{"timestamp":1476320396005,"value":1.6438665216E10},{"timestamp":1476320336005,"value":1.6438665216E10},{"timestamp":1476320276005,"value":1.6438665216E10},{"timestamp":1476320215006,"value":1.6438665216E10},{"timestamp":1476320155006,"value":1.6438665216E10},{"timestamp":1476320095005,"value":1.6438665216E10},{"timestamp":1476320035004,"value":1.6438665216E10},{"timestamp":1476319974007,"value":1.6438665216E10},{"timestamp":1476319914005,"value":1.6438665216E10},{"timestamp":1476319854007,"value":1.6438665216E10},{"timestamp":1476319794006,"value":1.6438665216E10},{"timestamp":1476319733005,"value":1.6438665216E10},{"timestamp":1476319673005,"value":1.6438665216E10},{"timestamp":1476319612006,"value":1.6438665216E10},{"timestamp":1476319552005,"value":1.6438665216E10},{"timestamp":1476319492019,"value":1.6438665216E10},{"timestamp":1476319432005,"value":1.6438665216E10},{"timestamp":1476319372005,"value":1.6438665216E10},{"timestamp":1476319312006,"value":1.6438665216E10},{"timestamp":1476319252006,"value":1.6438665216E10},{"timestamp":1476319192005,"value":1.6438665216E10},{"timestamp":1476319132006,"value":1.6438665216E10},{"timestamp":1476319072005,"value":1.6438665216E10},{"timestamp":1476319012005,"value":1.6438665216E10},{"timestamp":1476318952006,"value":1.6438665216E10},{"timestamp":1476318892005,"value":1.6438665216E10},{"timestamp":1476318832005,"value":1.6438665216E10},{"timestamp":1476318771006,"value":1.6438665216E10},{"timestamp":1476318711005,"value":1.6438665216E10},{"timestamp":1476318651006,"value":1.6438665216E10},{"timestamp":1476318590006,"value":1.6438665216E10},{"timestamp":1476318529006,"value":1.6438665216E10},{"timestamp":1476318469005,"value":1.6438665216E10},{"timestamp":1476318408006,"value":1.6438665216E10},{"timestamp":1476318348005,"value":1.6438665216E10},{"timestamp":1476318288021,"value":1.6438665216E10},{"timestamp":1476318228005,"value":1.6438665216E10},{"timestamp":1476318168005,"value":1.6438665216E10},{"timestamp":1476318108005,"value":1.6438665216E10},{"timestamp":1476318047004,"value":1.6438665216E10},{"timestamp":1476317987019,"value":1.6438665216E10},{"timestamp":1476317927003,"value":1.6438665216E10},{"timestamp":1476317867004,"value":1.6438665216E10},{"timestamp":1476317807004,"value":1.6438665216E10},{"timestamp":1476317747003,"value":1.6438665216E10},{"timestamp":1476317687004,"value":1.6438665216E10},{"timestamp":1476317627006,"value":1.6438665216E10},{"timestamp":1476317567006,"value":1.6438665216E10},{"timestamp":1476317507005,"value":1.6438665216E10},{"timestamp":1476317447005,"value":1.6438665216E10},{"timestamp":1476317387006,"value":1.6438665216E10},{"timestamp":1476317327005,"value":1.6438665216E10},{"timestamp":1476317266006,"value":1.6438665216E10},{"timestamp":1476317205006,"value":1.6438665216E10},{"timestamp":1476317145006,"value":1.6438665216E10},{"timestamp":1476317085006,"value":1.6438665216E10},{"timestamp":1476317025021,"value":1.6438665216E10},{"timestamp":1476316965006,"value":1.6438665216E10},{"timestamp":1476316904006,"value":1.6438665216E10},{"timestamp":1476316844005,"value":1.6438665216E10},{"timestamp":1476316784010,"value":1.6438665216E10},{"timestamp":1476316724006,"value":1.6438665216E10},{"timestamp":1476316664006,"value":1.6438665216E10},{"timestamp":1476316604005,"value":1.6438665216E10},{"timestamp":1476316544006,"value":1.6438665216E10},{"timestamp":1476316484012,"value":1.6438665216E10},{"timestamp":1476316424006,"value":1.6438665216E10},{"timestamp":1476316364006,"value":1.6438665216E10},{"timestamp":1476316304007,"value":1.6438665216E10},{"timestamp":1476316244006,"value":1.6438665216E10},{"timestamp":1476316184027,"value":1.6438665216E10},{"timestamp":1476316124006,"value":1.6438665216E10},{"timestamp":1476316064006,"value":1.6438665216E10},{"timestamp":1476316004006,"value":1.6438665216E10},{"timestamp":1476315944006,"value":1.6438665216E10},{"timestamp":1476315884012,"value":1.6438665216E10},{"timestamp":1476315824008,"value":1.6438665216E10},{"timestamp":1476315764007,"value":1.6438665216E10},{"timestamp":1476315704009,"value":1.6438665216E10},{"timestamp":1476315644010,"value":1.6438665216E10},{"timestamp":1476315584023,"value":1.6438665216E10},{"timestamp":1476315524009,"value":1.6438665216E10},{"timestamp":1476315464008,"value":1.6438665216E10},{"timestamp":1476315404012,"value":1.6438665216E10},{"timestamp":1476315344012,"value":1.6438665216E10},{"timestamp":1476315284250,"value":1.6438665216E10},{"timestamp":1476315224019,"value":1.6438665216E10},{"timestamp":1476315164013,"value":1.6438665216E10},{"timestamp":1476315104009,"value":1.6438665216E10},{"timestamp":1476315044023,"value":1.6438665216E10}]'
|
48
194
|
http_version:
|
49
|
-
recorded_at:
|
195
|
+
recorded_at: Thu, 13 Oct 2016 03:30:38 GMT
|
50
196
|
recorded_with: VCR 3.0.3
|
@@ -2,7 +2,153 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://jdoe:password@localhost:8080/<%= tenant %>/metrics/
|
5
|
+
uri: http://jdoe:password@localhost:8080/<%= tenant %>/metrics/status
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- identity
|
14
|
+
User-Agent:
|
15
|
+
- <%= tenant %>-client-ruby
|
16
|
+
Hawkular-Tenant:
|
17
|
+
- <%= tenant %>
|
18
|
+
Content-Type:
|
19
|
+
- application/json
|
20
|
+
Host:
|
21
|
+
- localhost:8080
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
X-Powered-By:
|
30
|
+
- Undertow/1
|
31
|
+
Server:
|
32
|
+
- WildFly/10
|
33
|
+
Content-Type:
|
34
|
+
- application/json
|
35
|
+
Content-Length:
|
36
|
+
- '133'
|
37
|
+
Date:
|
38
|
+
- Thu, 13 Oct 2016 03:30:35 GMT
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"MetricsService":"STARTED","Implementation-Version":"0.20.1.Final","Built-From-Git-SHA1":"f23946235446d3425db31d262b47b4f950ddabb3"}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Thu, 13 Oct 2016 03:30:35 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: http://jdoe:password@localhost:8080/<%= tenant %>/inventory/status
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Accept:
|
52
|
+
- application/json
|
53
|
+
Accept-Encoding:
|
54
|
+
- identity
|
55
|
+
User-Agent:
|
56
|
+
- <%= tenant %>-client-ruby
|
57
|
+
Hawkular-Tenant:
|
58
|
+
- <%= tenant %>
|
59
|
+
Content-Type:
|
60
|
+
- application/json
|
61
|
+
Host:
|
62
|
+
- localhost:8080
|
63
|
+
response:
|
64
|
+
status:
|
65
|
+
code: 200
|
66
|
+
message: OK
|
67
|
+
headers:
|
68
|
+
Connection:
|
69
|
+
- keep-alive
|
70
|
+
X-Powered-By:
|
71
|
+
- Undertow/1
|
72
|
+
Server:
|
73
|
+
- WildFly/10
|
74
|
+
Content-Type:
|
75
|
+
- application/json
|
76
|
+
Content-Length:
|
77
|
+
- '234'
|
78
|
+
Date:
|
79
|
+
- Thu, 13 Oct 2016 03:30:35 GMT
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: |-
|
83
|
+
{
|
84
|
+
"Implementation-Version" : "0.20.0.Final",
|
85
|
+
"Built-From-Git-SHA1" : "a3b55c0c65a141fdbb007524d063b5d57bf2d96c",
|
86
|
+
"Inventory-Implementation" : "org.<%= tenant %>.inventory.impl.tinkerpop.TinkerpopInventory",
|
87
|
+
"Initialized" : "true"
|
88
|
+
}
|
89
|
+
http_version:
|
90
|
+
recorded_at: Thu, 13 Oct 2016 03:30:35 GMT
|
91
|
+
- request:
|
92
|
+
method: get
|
93
|
+
uri: http://jdoe:password@localhost:8080/<%= tenant %>/inventory/traversal/type=f
|
94
|
+
body:
|
95
|
+
encoding: US-ASCII
|
96
|
+
string: ''
|
97
|
+
headers:
|
98
|
+
Accept:
|
99
|
+
- application/json
|
100
|
+
Accept-Encoding:
|
101
|
+
- identity
|
102
|
+
User-Agent:
|
103
|
+
- <%= tenant %>-client-ruby
|
104
|
+
Hawkular-Tenant:
|
105
|
+
- <%= tenant %>
|
106
|
+
Content-Type:
|
107
|
+
- application/json
|
108
|
+
Host:
|
109
|
+
- localhost:8080
|
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/10
|
123
|
+
Pragma:
|
124
|
+
- no-cache
|
125
|
+
Date:
|
126
|
+
- Thu, 13 Oct 2016 03:30:35 GMT
|
127
|
+
X-Total-Count:
|
128
|
+
- '1'
|
129
|
+
Connection:
|
130
|
+
- keep-alive
|
131
|
+
Content-Type:
|
132
|
+
- application/json
|
133
|
+
Content-Length:
|
134
|
+
- '300'
|
135
|
+
Link:
|
136
|
+
- <http://localhost:8080/<%= tenant %>/inventory/traversal/type=f>; rel="current"
|
137
|
+
body:
|
138
|
+
encoding: UTF-8
|
139
|
+
string: |-
|
140
|
+
[ {
|
141
|
+
"path" : "/t;<%= tenant %>/f;d19d84dc-f403-4f5b-a987-fbd48863ea4f",
|
142
|
+
"identityHash" : "12efca83e331bdae189fa5db13d2d5a6b70f5a6",
|
143
|
+
"contentHash" : "da39a3ee5e6b4bd3255bfef95601890afd879",
|
144
|
+
"syncHash" : "af2860c4e1bb64fc3177139eeb3ab967d654f324",
|
145
|
+
"id" : "d19d84dc-f403-4f5b-a987-fbd48863ea4f"
|
146
|
+
} ]
|
147
|
+
http_version:
|
148
|
+
recorded_at: Thu, 13 Oct 2016 03:30:35 GMT
|
149
|
+
- request:
|
150
|
+
method: get
|
151
|
+
uri: http://jdoe:password@localhost:8080/<%= tenant %>/metrics/gauges/MI~R~%5Bd19d84dc-f403-4f5b-a987-fbd48863ea4f%2Fplatform~%2FOPERATING_SYSTEM=d19d84dc-f403-4f5b-a987-fbd48863ea4f_OperatingSystem%2FMEMORY=Memory%5D~MT~Platform_Memory_Total%20Memory
|
6
152
|
body:
|
7
153
|
encoding: US-ASCII
|
8
154
|
string: ''
|
@@ -35,17 +181,17 @@ http_interactions:
|
|
35
181
|
Pragma:
|
36
182
|
- no-cache
|
37
183
|
Date:
|
38
|
-
-
|
184
|
+
- Thu, 13 Oct 2016 03:30:35 GMT
|
39
185
|
Connection:
|
40
186
|
- keep-alive
|
41
187
|
Content-Type:
|
42
188
|
- application/json
|
43
189
|
Content-Length:
|
44
|
-
- '
|
190
|
+
- '292'
|
45
191
|
body:
|
46
192
|
encoding: UTF-8
|
47
|
-
string: '{"id":"MI~R~[
|
48
|
-
Memory","dataRetention":
|
193
|
+
string: '{"id":"MI~R~[d19d84dc-f403-4f5b-a987-fbd48863ea4f/platform~/OPERATING_SYSTEM=d19d84dc-f403-4f5b-a987-fbd48863ea4f_OperatingSystem/MEMORY=Memory]~MT~Platform_Memory_Total
|
194
|
+
Memory","dataRetention":14,"type":"gauge","tenantId":"<%= tenant %>","minTimestamp":1476294284064,"maxTimestamp":1476329399006}'
|
49
195
|
http_version:
|
50
|
-
recorded_at:
|
196
|
+
recorded_at: Thu, 13 Oct 2016 03:30:35 GMT
|
51
197
|
recorded_with: VCR 3.0.3
|
data/spec/vcr_cassettes/Metrics/NonSecure/metrics_services/Templates/Gauge_metrics/setup_client.yml
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://jdoe:password@localhost:8080/hawkular/metrics/status
|
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
|
+
- <%= type %>metrics_services-vcr-tenant-e034c355-5c5e-4a5e-8258-242088759e96
|
18
|
+
Content-Type:
|
19
|
+
- application/json
|
20
|
+
Host:
|
21
|
+
- localhost:8080
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
X-Powered-By:
|
30
|
+
- Undertow/1
|
31
|
+
Server:
|
32
|
+
- WildFly/10
|
33
|
+
Content-Type:
|
34
|
+
- application/json
|
35
|
+
Content-Length:
|
36
|
+
- '133'
|
37
|
+
Date:
|
38
|
+
- Thu, 13 Oct 2016 03:30:38 GMT
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"MetricsService":"STARTED","Implementation-Version":"0.20.1.Final","Built-From-Git-SHA1":"f23946235446d3425db31d262b47b4f950ddabb3"}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Thu, 13 Oct 2016 03:30:38 GMT
|
44
|
+
recorded_with: VCR 3.0.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/
|
5
|
+
uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -35,18 +35,18 @@ http_interactions:
|
|
35
35
|
Pragma:
|
36
36
|
- no-cache
|
37
37
|
Date:
|
38
|
-
-
|
38
|
+
- Thu, 13 Oct 2016 03:22:22 GMT
|
39
39
|
body:
|
40
40
|
encoding: UTF-8
|
41
41
|
string: ''
|
42
42
|
http_version:
|
43
|
-
recorded_at:
|
43
|
+
recorded_at: Thu, 13 Oct 2016 03:22:22 GMT
|
44
44
|
- request:
|
45
45
|
method: post
|
46
|
-
uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/
|
46
|
+
uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/raw
|
47
47
|
body:
|
48
48
|
encoding: UTF-8
|
49
|
-
string: '{"gauges":[],"counters":[{"id":"<%= id %>","data":[{"value":100.0,"timestamp":
|
49
|
+
string: '{"gauges":[],"counters":[{"id":"<%= id %>","data":[{"value":100.0,"timestamp":1476328942622}]}],"availabilities":[],"strings":[]}'
|
50
50
|
headers:
|
51
51
|
Accept:
|
52
52
|
- application/json
|
@@ -59,7 +59,7 @@ http_interactions:
|
|
59
59
|
Content-Type:
|
60
60
|
- application/json
|
61
61
|
Content-Length:
|
62
|
-
- '
|
62
|
+
- '156'
|
63
63
|
Host:
|
64
64
|
- localhost:8080
|
65
65
|
response:
|
@@ -82,18 +82,18 @@ http_interactions:
|
|
82
82
|
Content-Length:
|
83
83
|
- '0'
|
84
84
|
Date:
|
85
|
-
-
|
85
|
+
- Thu, 13 Oct 2016 03:22:22 GMT
|
86
86
|
body:
|
87
87
|
encoding: UTF-8
|
88
88
|
string: ''
|
89
89
|
http_version:
|
90
|
-
recorded_at:
|
90
|
+
recorded_at: Thu, 13 Oct 2016 03:22:22 GMT
|
91
91
|
- request:
|
92
92
|
method: post
|
93
|
-
uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/
|
93
|
+
uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/raw
|
94
94
|
body:
|
95
95
|
encoding: UTF-8
|
96
|
-
string: '{"gauges":[],"counters":[{"id":"<%= id %>","data":[{"value":110.0,"timestamp":
|
96
|
+
string: '{"gauges":[],"counters":[{"id":"<%= id %>","data":[{"value":110.0,"timestamp":1476328942626}]}],"availabilities":[],"strings":[]}'
|
97
97
|
headers:
|
98
98
|
Accept:
|
99
99
|
- application/json
|
@@ -106,7 +106,7 @@ http_interactions:
|
|
106
106
|
Content-Type:
|
107
107
|
- application/json
|
108
108
|
Content-Length:
|
109
|
-
- '
|
109
|
+
- '156'
|
110
110
|
Host:
|
111
111
|
- localhost:8080
|
112
112
|
response:
|
@@ -129,18 +129,18 @@ http_interactions:
|
|
129
129
|
Content-Length:
|
130
130
|
- '0'
|
131
131
|
Date:
|
132
|
-
-
|
132
|
+
- Thu, 13 Oct 2016 03:22:22 GMT
|
133
133
|
body:
|
134
134
|
encoding: UTF-8
|
135
135
|
string: ''
|
136
136
|
http_version:
|
137
|
-
recorded_at:
|
137
|
+
recorded_at: Thu, 13 Oct 2016 03:22:22 GMT
|
138
138
|
- request:
|
139
139
|
method: post
|
140
|
-
uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/
|
140
|
+
uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/raw
|
141
141
|
body:
|
142
142
|
encoding: UTF-8
|
143
|
-
string: '{"gauges":[],"counters":[{"id":"<%= id %>","data":[{"value":130.0,"timestamp":
|
143
|
+
string: '{"gauges":[],"counters":[{"id":"<%= id %>","data":[{"value":130.0,"timestamp":1476328942630}]}],"availabilities":[],"strings":[]}'
|
144
144
|
headers:
|
145
145
|
Accept:
|
146
146
|
- application/json
|
@@ -153,7 +153,7 @@ http_interactions:
|
|
153
153
|
Content-Type:
|
154
154
|
- application/json
|
155
155
|
Content-Length:
|
156
|
-
- '
|
156
|
+
- '156'
|
157
157
|
Host:
|
158
158
|
- localhost:8080
|
159
159
|
response:
|
@@ -176,18 +176,18 @@ http_interactions:
|
|
176
176
|
Content-Length:
|
177
177
|
- '0'
|
178
178
|
Date:
|
179
|
-
-
|
179
|
+
- Thu, 13 Oct 2016 03:22:22 GMT
|
180
180
|
body:
|
181
181
|
encoding: UTF-8
|
182
182
|
string: ''
|
183
183
|
http_version:
|
184
|
-
recorded_at:
|
184
|
+
recorded_at: Thu, 13 Oct 2016 03:22:22 GMT
|
185
185
|
- request:
|
186
186
|
method: post
|
187
|
-
uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/
|
187
|
+
uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/raw
|
188
188
|
body:
|
189
189
|
encoding: UTF-8
|
190
|
-
string: '{"gauges":[],"counters":[{"id":"<%= id %>","data":[{"value":200.0,"timestamp":
|
190
|
+
string: '{"gauges":[],"counters":[{"id":"<%= id %>","data":[{"value":200.0,"timestamp":1476328942633}]}],"availabilities":[],"strings":[]}'
|
191
191
|
headers:
|
192
192
|
Accept:
|
193
193
|
- application/json
|
@@ -200,7 +200,7 @@ http_interactions:
|
|
200
200
|
Content-Type:
|
201
201
|
- application/json
|
202
202
|
Content-Length:
|
203
|
-
- '
|
203
|
+
- '156'
|
204
204
|
Host:
|
205
205
|
- localhost:8080
|
206
206
|
response:
|
@@ -223,15 +223,15 @@ http_interactions:
|
|
223
223
|
Content-Length:
|
224
224
|
- '0'
|
225
225
|
Date:
|
226
|
-
-
|
226
|
+
- Thu, 13 Oct 2016 03:22:22 GMT
|
227
227
|
body:
|
228
228
|
encoding: UTF-8
|
229
229
|
string: ''
|
230
230
|
http_version:
|
231
|
-
recorded_at:
|
231
|
+
recorded_at: Thu, 13 Oct 2016 03:22:22 GMT
|
232
232
|
- request:
|
233
233
|
method: get
|
234
|
-
uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/
|
234
|
+
uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/raw/
|
235
235
|
body:
|
236
236
|
encoding: US-ASCII
|
237
237
|
string: ''
|
@@ -264,7 +264,7 @@ http_interactions:
|
|
264
264
|
Pragma:
|
265
265
|
- no-cache
|
266
266
|
Date:
|
267
|
-
-
|
267
|
+
- Thu, 13 Oct 2016 03:22:22 GMT
|
268
268
|
Connection:
|
269
269
|
- keep-alive
|
270
270
|
Content-Type:
|
@@ -273,15 +273,15 @@ http_interactions:
|
|
273
273
|
- '161'
|
274
274
|
body:
|
275
275
|
encoding: UTF-8
|
276
|
-
string: '[{"timestamp":
|
276
|
+
string: '[{"timestamp":1476328942633,"value":200},{"timestamp":1476328942630,"value":130},{"timestamp":1476328942626,"value":110},{"timestamp":1476328942622,"value":100}]'
|
277
277
|
http_version:
|
278
|
-
recorded_at:
|
278
|
+
recorded_at: Thu, 13 Oct 2016 03:22:22 GMT
|
279
279
|
- request:
|
280
280
|
method: post
|
281
281
|
uri: http://jdoe:password@localhost:8080/hawkular/metrics/metrics/stats/query
|
282
282
|
body:
|
283
283
|
encoding: UTF-8
|
284
|
-
string: '{"metrics":{"gauge":[],"counter":["<%= id %>"],"availability":[]},"start":
|
284
|
+
string: '{"metrics":{"gauge":[],"counter":["<%= id %>"],"availability":[]},"start":1476328942622,"end":1476328942634,"bucketDuration":"12ms","types":["gauge","gauge_rate","counter","counter_rate","availability"]}'
|
285
285
|
headers:
|
286
286
|
Accept:
|
287
287
|
- application/json
|
@@ -313,16 +313,16 @@ http_interactions:
|
|
313
313
|
Pragma:
|
314
314
|
- no-cache
|
315
315
|
Date:
|
316
|
-
-
|
316
|
+
- Thu, 13 Oct 2016 03:22:22 GMT
|
317
317
|
Connection:
|
318
318
|
- keep-alive
|
319
319
|
Content-Type:
|
320
320
|
- application/json
|
321
321
|
Content-Length:
|
322
|
-
- '
|
322
|
+
- '404'
|
323
323
|
body:
|
324
324
|
encoding: UTF-8
|
325
|
-
string: '{"counter_rate":{"<%= id %>":[{"start":
|
325
|
+
string: '{"counter_rate":{"<%= id %>":[{"start":1476328942622,"end":1476328942634,"min":150000.0,"avg":616666.6666666667,"median":300000.0,"max":1400000.0,"sum":1850000.0,"samples":3,"empty":false}]},"counter":{"<%= id %>":[{"start":1476328942622,"end":1476328942634,"min":100.0,"avg":135.0,"median":110.0,"max":200.0,"sum":540.0,"samples":4,"empty":false}]}}'
|
326
326
|
http_version:
|
327
|
-
recorded_at:
|
328
|
-
recorded_with: VCR 3.0.
|
327
|
+
recorded_at: Thu, 13 Oct 2016 03:22:22 GMT
|
328
|
+
recorded_with: VCR 3.0.3
|