Sha256: 4631cc340973ddfaf6b36b8c2daf52eb0ec9957fd1caa5acd6a323bda92d4915
Contents?: true
Size: 760 Bytes
Versions: 14
Compression:
Stored size: 760 Bytes
Contents
# frozen_string_literal: true module Datadog module Core module Telemetry module V2 # Base request object for Telemetry V2. # # `#to_h` is the main API, which returns a Ruby # Hash that will be serialized as JSON. class Request # @param [String] request_type the Telemetry request type, which dictates how the Hash payload should be processed def initialize(request_type) @request_type = request_type end # Converts this request to a Hash that will # be serialized as JSON. # @return [Hash] def to_h { request_type: @request_type } end end end end end end
Version data entries
14 entries across 14 versions & 2 rubygems