Module: Datadog::Core::Remote::Transport::HTTP::API

Defined in:
lib/datadog/core/remote/transport/http/api.rb,
lib/datadog/core/remote/transport/http/api/spec.rb,
lib/datadog/core/remote/transport/http/api/instance.rb

Overview

Namespace for API components

Defined Under Namespace

Classes: Instance, Spec

Constant Summary collapse

ROOT =

Default API versions

'root'
V7 =
'v0.7'

Class Method Summary collapse

Class Method Details

.defaultsObject



38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/datadog/core/remote/transport/http/api.rb', line 38

def defaults
  Datadog::Core::Transport::HTTP::API::Map[
    ROOT => Spec.new do |s|
      s.info = Negotiation::API::Endpoint.new(
        '/info',
      )
    end,
    V7 => Spec.new do |s|
      s.config = Config::API::Endpoint.new(
        '/v0.7/config',
        Core::Encoding::JSONEncoder,
      )
    end,
  ]
end