Sha256: d5fb7cf83f08aed167be68e0ab166b5cc120e44df3af878614c24ec8708c5d48

Contents?: true

Size: 1.86 KB

Versions: 4

Compression:

Stored size: 1.86 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: http://localhost:8080/hawkular/metrics/counters
    body:
      encoding: UTF-8
      string: '{"id":"<%= id %>","dataRetention":123,"tags":{"some":"value"},"tenantId":"vcr-test-tenant-123"}'
    headers:
      Accept:
      - application/json
      Accept-Encoding:
      - gzip, deflate
      Hawkular-Tenant:
      - vcr-test-tenant-123
      Content-Type:
      - application/json
      Content-Length:
      - '122'
      User-Agent:
      - Ruby
  response:
    status:
      code: 201
      message: Created
    headers:
      Connection:
      - keep-alive
      X-Powered-By:
      - Undertow/1
      Server:
      - WildFly/9
      Location:
      - http://localhost:8080/hawkular/metrics/counters/<%= id %>
      Content-Length:
      - '0'
      Date:
      - Thu, 30 Jun 2016 16:31:37 GMT
    body:
      encoding: UTF-8
      string: ''
    http_version: 
  recorded_at: Thu, 30 Jun 2016 16:31:37 GMT
- request:
    method: get
    uri: http://localhost:8080/hawkular/metrics/counters/<%= id %>
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Accept:
      - application/json
      Accept-Encoding:
      - gzip, deflate
      Hawkular-Tenant:
      - vcr-test-tenant-123
      Content-Type:
      - application/json
      User-Agent:
      - Ruby
  response:
    status:
      code: 200
      message: OK
    headers:
      Connection:
      - keep-alive
      X-Powered-By:
      - Undertow/1
      Server:
      - WildFly/9
      Content-Type:
      - application/json
      Content-Length:
      - '139'
      Date:
      - Thu, 30 Jun 2016 16:31:37 GMT
    body:
      encoding: UTF-8
      string: '{"id":"<%= id %>","tags":{"some":"value"},"dataRetention":123,"type":"counter","tenantId":"vcr-test-tenant-123"}'
    http_version: 
  recorded_at: Thu, 30 Jun 2016 16:31:37 GMT
recorded_with: VCR 3.0.1

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hawkular-client-2.6.0 spec/vcr_cassettes/Metrics/metrics_0_8_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml
hawkular-client-2.5.0 spec/vcr_cassettes/Metrics/metrics_0_8_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml
hawkular-client-2.4.0 spec/vcr_cassettes/Metrics/metrics_0_8_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml
hawkular-client-2.3.0 spec/vcr_cassettes/Metrics/metrics_0_8_0/Templates/Counter_metrics/Should_create_and_return_counter_using_Hash_parameter.yml