Class: ManageEngine::APMConstants

Inherits:
Object
  • Object
show all
Defined in:
lib/agent/util/am_constants.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAPMConstants

Returns a new instance of APMConstants.



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/agent/util/am_constants.rb', line 9

def initialize
	
	#File path for APM Conf file
	@apm_gem="apminsight"
	#File path for APM Conf file
	@apm_conf="apminsight.conf"

	#file path for agent id, enable details
	@agent_conf="apminsight.info"

	#file path for agent data store lock
	@agent_lock="apminsight.lock"
	
	#file path for agent data store lock
	@agent_store="apminsight.store"


	#Timeout for opening Connections
	@connection_open_timeout=60

	#Timeout for Reading data from Connections
	@connection_read_timeout=60
	
	#Connection uri
	@connect_uri="arh/connect"
	
	#Connection uri for data
	@connect_data_uri="arh/data?instance_id="

	#Connection uri for trace
	@connect_trace_uri="arh/trace?instance_id="

	#Response Codes 
	@licence_expired = 701
	@licence_exceeds = 702
	@delete_agent = 900
	@unmanage_agent =910
	@manage_agent = 911
	@error_notfound = 404
	@error_server = 500
	@response_code = "response-code"

	#Metrics Formatter -mf
	@mf_apdex = "apdex"
	@mf_namespace = "ns"
	@mf_name = "name"
	@mf_all = "all"

	@mf_separator = "/"
	@mf_transaction = "transaction" + @mf_separator + "http"
	@mf_db = "db"


end

Instance Attribute Details

#agent_confObject (readonly)

Returns the value of attribute agent_conf.



5
6
7
# File 'lib/agent/util/am_constants.rb', line 5

def agent_conf
  @agent_conf
end

#agent_lockObject (readonly)

Returns the value of attribute agent_lock.



7
8
9
# File 'lib/agent/util/am_constants.rb', line 7

def agent_lock
  @agent_lock
end

#agent_storeObject (readonly)

Returns the value of attribute agent_store.



7
8
9
# File 'lib/agent/util/am_constants.rb', line 7

def agent_store
  @agent_store
end

#apm_confObject (readonly)

Returns the value of attribute apm_conf.



5
6
7
# File 'lib/agent/util/am_constants.rb', line 5

def apm_conf
  @apm_conf
end

#apm_gemObject (readonly)

Returns the value of attribute apm_gem.



5
6
7
# File 'lib/agent/util/am_constants.rb', line 5

def apm_gem
  @apm_gem
end

#connect_data_uriObject (readonly)

Returns the value of attribute connect_data_uri.



5
6
7
# File 'lib/agent/util/am_constants.rb', line 5

def connect_data_uri
  @connect_data_uri
end

#connect_trace_uriObject (readonly)

Returns the value of attribute connect_trace_uri.



5
6
7
# File 'lib/agent/util/am_constants.rb', line 5

def connect_trace_uri
  @connect_trace_uri
end

#connect_uriObject (readonly)

Returns the value of attribute connect_uri.



5
6
7
# File 'lib/agent/util/am_constants.rb', line 5

def connect_uri
  @connect_uri
end

#connection_open_timeoutObject (readonly)

Returns the value of attribute connection_open_timeout.



5
6
7
# File 'lib/agent/util/am_constants.rb', line 5

def connection_open_timeout
  @connection_open_timeout
end

#connection_read_timeoutObject (readonly)

Returns the value of attribute connection_read_timeout.



5
6
7
# File 'lib/agent/util/am_constants.rb', line 5

def connection_read_timeout
  @connection_read_timeout
end

#delete_agentObject (readonly)

Returns the value of attribute delete_agent.



6
7
8
# File 'lib/agent/util/am_constants.rb', line 6

def delete_agent
  @delete_agent
end

#error_notfoundObject (readonly)

Returns the value of attribute error_notfound.



6
7
8
# File 'lib/agent/util/am_constants.rb', line 6

def error_notfound
  @error_notfound
end

#error_serverObject (readonly)

Returns the value of attribute error_server.



6
7
8
# File 'lib/agent/util/am_constants.rb', line 6

def error_server
  @error_server
end

#licence_exceedsObject (readonly)

Returns the value of attribute licence_exceeds.



6
7
8
# File 'lib/agent/util/am_constants.rb', line 6

def licence_exceeds
  @licence_exceeds
end

#licence_expiredObject (readonly)

Returns the value of attribute licence_expired.



6
7
8
# File 'lib/agent/util/am_constants.rb', line 6

def licence_expired
  @licence_expired
end

#manage_agentObject (readonly)

Returns the value of attribute manage_agent.



6
7
8
# File 'lib/agent/util/am_constants.rb', line 6

def manage_agent
  @manage_agent
end

#mf_allObject (readonly)

Returns the value of attribute mf_all.



7
8
9
# File 'lib/agent/util/am_constants.rb', line 7

def mf_all
  @mf_all
end

#mf_apdexObject (readonly)

Returns the value of attribute mf_apdex.



7
8
9
# File 'lib/agent/util/am_constants.rb', line 7

def mf_apdex
  @mf_apdex
end

#mf_dbObject (readonly)

Returns the value of attribute mf_db.



7
8
9
# File 'lib/agent/util/am_constants.rb', line 7

def mf_db
  @mf_db
end

#mf_nameObject (readonly)

Returns the value of attribute mf_name.



7
8
9
# File 'lib/agent/util/am_constants.rb', line 7

def mf_name
  @mf_name
end

#mf_namespaceObject (readonly)

Returns the value of attribute mf_namespace.



7
8
9
# File 'lib/agent/util/am_constants.rb', line 7

def mf_namespace
  @mf_namespace
end

#mf_separatorObject (readonly)

Returns the value of attribute mf_separator.



7
8
9
# File 'lib/agent/util/am_constants.rb', line 7

def mf_separator
  @mf_separator
end

#mf_transactionObject (readonly)

Returns the value of attribute mf_transaction.



7
8
9
# File 'lib/agent/util/am_constants.rb', line 7

def mf_transaction
  @mf_transaction
end

#response_codeObject (readonly)

Returns the value of attribute response_code.



6
7
8
# File 'lib/agent/util/am_constants.rb', line 6

def response_code
  @response_code
end

#unmanage_agentObject (readonly)

Returns the value of attribute unmanage_agent.



6
7
8
# File 'lib/agent/util/am_constants.rb', line 6

def unmanage_agent
  @unmanage_agent
end