Sha256: 1d356fea5e48f6d3611a3914c1bd521d8f824713001343de954417750c81baa5

Contents?: true

Size: 405 Bytes

Versions: 36

Compression:

Stored size: 405 Bytes

Contents

require 'pact_broker/api/resources/base_resource'

module PactBroker
  module Api
    module Resources
      class Metrics < BaseResource
        def content_types_provided
          [["application/hal+json", :to_json]]
        end

        def allowed_methods
          ["GET", "OPTIONS"]
        end

        def to_json
          metrics_service.metrics.to_json
        end
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
pact_broker-2.60.0 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.59.2 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.59.1 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.59.0 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.58.3 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.58.2 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.58.0 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.57.0 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.56.1 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.56.0 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.55.0 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.54.0 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.53.0 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.52.2 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.52.1 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.52.0 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.51.0 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.50.1 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.50.0 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.49.0 lib/pact_broker/api/resources/metrics.rb