Sha256: 855346fb479ed89a5dbac2ae8ed02dde9d6f806911637109dcdfb4161e280b06

Contents?: true

Size: 472 Bytes

Versions: 26

Compression:

Stored size: 472 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

        def policy_name
          :'metrics::metrics'
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
pact_broker-2.65.0 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.64.0 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.63.0 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.62.0 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.61.0 lib/pact_broker/api/resources/metrics.rb
pact_broker-2.60.1 lib/pact_broker/api/resources/metrics.rb