Class: ManageEngine::Tracker::RootTracker

Inherits:
DefaultTracker show all
Defined in:
lib/agent/trackers/root_tracker.rb

Instance Attribute Summary collapse

Attributes inherited from DefaultTracker

#child, #endtime, #error, #name, #sibling, #starttime

Instance Method Summary collapse

Methods inherited from DefaultTracker

#==, #duration, #error?, #finish, #hash, #initialize, #setError, #setName, #to_s

Constructor Details

This class inherits a constructor from ManageEngine::Tracker::DefaultTracker

Instance Attribute Details

#statusObject

Returns the value of attribute status.



7
8
9
# File 'lib/agent/trackers/root_tracker.rb', line 7

def status
  @status
end

#urlObject

Returns the value of attribute url.



7
8
9
# File 'lib/agent/trackers/root_tracker.rb', line 7

def url
  @url
end

Instance Method Details

#getAdditionalInfoObject



29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/agent/trackers/root_tracker.rb', line 29

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

#http_method(method) ⇒ Object



13
14
15
# File 'lib/agent/trackers/root_tracker.rb', line 13

def http_method(method)
  @http_method = method
end

#http_params(params) ⇒ Object



17
18
19
# File 'lib/agent/trackers/root_tracker.rb', line 17

def http_params(params)
  @http_params = params
end

#queryString(querystring) ⇒ Object



21
22
23
# File 'lib/agent/trackers/root_tracker.rb', line 21

def queryString(querystring)
  @queryString = querystring
end

#setStatus(httpcode) ⇒ Object



25
26
27
# File 'lib/agent/trackers/root_tracker.rb', line 25

def setStatus(httpcode)
  @status = httpcode
end