Sha256: 7e42faf73587329b6ae884074dc22e502d0e241af4064ead00d8fb49ecd0aca9

Contents?: true

Size: 991 Bytes

Versions: 19

Compression:

Stored size: 991 Bytes

Contents

require 'agent/trackers/default_tracker'

module ManageEngine
  module Tracker
    class RootTracker < DefaultTracker
      
      attr_accessor :status, :url
      
      def url=(url = "unknown")
        @url = ManageEngine::APMObjectHolder.instance.txn_util.normalizeName(url)
      end
      
      def http_method(method)
        @http_method = method
      end
      
      def http_params(params)
        @http_params = params
      end
      
      def queryString(querystring)
        @queryString = querystring
      end
      
      def setStatus(httpcode)
        @status = httpcode
      end
      
      def getAdditionalInfo
        info = super
        if (@http_method != nil && @queryString != nil && @status != nil)
          if (info == nil)
            info = Hash.new
          end
          info["http_method_name"] = @http_method
          info["http_query_str"] = @queryString
          info["httpcode"] = @status
        end
        info
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
apminsight-1.8.8 lib/agent/trackers/root_tracker.rb
site24x7_apminsight-1.8.8 lib/agent/trackers/root_tracker.rb
apminsight-1.8.7 lib/agent/trackers/root_tracker.rb
site24x7_apminsight-1.8.7 lib/agent/trackers/root_tracker.rb
apminsight-1.8.6 lib/agent/trackers/root_tracker.rb
site24x7_apminsight-1.8.6 lib/agent/trackers/root_tracker.rb
site24x7_apminsight-1.8.5.1 lib/agent/trackers/root_tracker.rb
site24x7_apminsight-1.8.5 lib/agent/trackers/root_tracker.rb
apminsight-1.8.3 lib/agent/trackers/root_tracker.rb
site24x7_apminsight-1.8.3 lib/agent/trackers/root_tracker.rb
apminsight-1.8.2 lib/agent/trackers/root_tracker.rb
site24x7_apminsight-1.8.2 lib/agent/trackers/root_tracker.rb
site24x7_apminsight-1.8.1 lib/agent/trackers/root_tracker.rb
site24x7_apminsight-1.8.0 lib/agent/trackers/root_tracker.rb
site24x7_apminsight-1.7.3.0 lib/agent/trackers/root_tracker.rb
site24x7_apminsight-1.7.2 lib/agent/trackers/root_tracker.rb
site24x7_apminsight-1.7.0 lib/agent/trackers/root_tracker.rb
site24x7_apminsight-1.6.1 lib/agent/trackers/root_tracker.rb
site24x7_apminsight-1.6.0 lib/agent/trackers/root_tracker.rb