--- http_interactions: - request: method: post uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters body: encoding: UTF-8 string: '{"id":"<%= id %>"}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate Content-Type: - application/json Content-Length: - '45' User-Agent: - Ruby response: status: code: 201 message: Created headers: Connection: - keep-alive X-Powered-By: - Undertow/1 Server: - WildFly/10 Location: - http://localhost:8080/hawkular/metrics/counters/<%= id %> Content-Length: - '0' Date: - Tue, 10 May 2016 09:54:44 GMT body: encoding: UTF-8 string: '' http_version: recorded_at: Tue, 10 May 2016 09:54:44 GMT - request: method: post uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data body: encoding: UTF-8 string: '[{"value":110,"timestamp":<%= now - 110 %>},{"value":100,"timestamp":<%= now - 100 %>},{"value":90,"timestamp":<%= now - 90 %>},{"value":80,"timestamp":<%= now - 80 %>},{"value":70,"timestamp":<%= now - 70 %>},{"value":60,"timestamp":<%= now - 60 %>},{"value":50,"timestamp":<%= now - 50 %>},{"value":40,"timestamp":<%= now - 40 %>},{"value":30,"timestamp":<%= now - 30 %>},{"value":20,"timestamp":<%= now - 20 %>},{"value":10,"timestamp":<%= now - 10 %>}]' headers: Accept: - application/json Accept-Encoding: - gzip, deflate Content-Type: - application/json Content-Length: - '432' User-Agent: - Ruby response: status: code: 200 message: OK headers: Connection: - keep-alive X-Powered-By: - Undertow/1 Server: - WildFly/10 Content-Length: - '0' Date: - Tue, 10 May 2016 09:54:44 GMT body: encoding: UTF-8 string: '' http_version: recorded_at: Tue, 10 May 2016 09:54:44 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/?buckets=5&end=<%= now - 5 %>&start=<%= now - 105 %> body: encoding: US-ASCII string: '' headers: Accept: - application/json Accept-Encoding: - gzip, deflate Content-Type: - application/json User-Agent: - Ruby response: status: code: 200 message: OK headers: Connection: - keep-alive X-Powered-By: - Undertow/1 Server: - WildFly/10 Content-Type: - application/json Content-Length: - '587' Date: - Tue, 10 May 2016 09:54:44 GMT body: encoding: ASCII-8BIT string: '[{"start":<%= now - 105 %>,"end":<%= now - 85 %>,"min":90.0,"avg":95.0,"median":90.0,"max":100.0,"samples":2,"empty":false},{"start":<%= now - 85 %>,"end":<%= now - 65 %>,"min":70.0,"avg":75.0,"median":70.0,"max":80.0,"samples":2,"empty":false},{"start":<%= now - 65 %>,"end":<%= now - 45 %>,"min":50.0,"avg":55.0,"median":50.0,"max":60.0,"samples":2,"empty":false},{"start":<%= now - 45 %>,"end":<%= now - 25 %>,"min":30.0,"avg":35.0,"median":30.0,"max":40.0,"samples":2,"empty":false},{"start":<%= now - 25 %>,"end":<%= now - 5 %>,"min":10.0,"avg":15.0,"median":10.0,"max":20.0,"samples":2,"empty":false}]' http_version: recorded_at: Tue, 10 May 2016 09:54:44 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/?buckets=2&end=<%= now - 5 %>&start=<%= now - 105 %> body: encoding: US-ASCII string: '' headers: Accept: - application/json Accept-Encoding: - gzip, deflate Content-Type: - application/json User-Agent: - Ruby response: status: code: 200 message: OK headers: Connection: - keep-alive X-Powered-By: - Undertow/1 Server: - WildFly/10 Content-Type: - application/json Content-Length: - '236' Date: - Tue, 10 May 2016 09:54:44 GMT body: encoding: ASCII-8BIT string: '[{"start":<%= now - 105 %>,"end":<%= now - 55 %>,"min":60.0,"avg":80.0,"median":80.0,"max":100.0,"samples":5,"empty":false},{"start":<%= now - 55 %>,"end":<%= now - 5 %>,"min":10.0,"avg":30.0,"median":30.0,"max":50.0,"samples":5,"empty":false}]' http_version: recorded_at: Tue, 10 May 2016 09:54:44 GMT - request: method: get uri: http://jdoe:password@localhost:8080/hawkular/metrics/counters/<%= id %>/data/?bucketDuration=50ms&end=<%= now - 5 %>&start=<%= now - 105 %> body: encoding: US-ASCII string: '' headers: Accept: - application/json Accept-Encoding: - gzip, deflate Content-Type: - application/json User-Agent: - Ruby response: status: code: 200 message: OK headers: Connection: - keep-alive X-Powered-By: - Undertow/1 Server: - WildFly/10 Content-Type: - application/json Content-Length: - '236' Date: - Tue, 10 May 2016 09:54:44 GMT body: encoding: ASCII-8BIT string: '[{"start":<%= now - 105 %>,"end":<%= now - 55 %>,"min":60.0,"avg":80.0,"median":80.0,"max":100.0,"samples":5,"empty":false},{"start":<%= now - 55 %>,"end":<%= now - 5 %>,"min":10.0,"avg":30.0,"median":30.0,"max":50.0,"samples":5,"empty":false}]' http_version: recorded_at: Tue, 10 May 2016 09:54:44 GMT recorded_with: VCR 3.0.1