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.



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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# File 'lib/agent/util/am_constants.rb', line 12

def initialize
  @conf_location=ENV.has_key?('APMINSIGHT_HOME') ? ENV['APMINSIGHT_HOME']+"/" : "./"
	#File path for APM Conf file
	@apm_gem="apminsight"
	@s247_apm_gem="site24x7_apminsight"
	
	#File path for APM Conf file
	@apm_conf=@conf_location + "apminsight.conf"

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

	#file path for agent data store lock
	@agent_lock=@conf_location + "apminsight.lock"
	
	#file path for agent data store lock
	@agent_store=@conf_location + "apminsight.store"
	
	#file name for url merge patterns
	@mergepattern_conf=@conf_location + "transaction_merge_patterns.conf"


	#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="

	#Connection uri for config update
	@connect_config_update_uri="arh/agent_config_update?instance_id="
	
	#Site24x7 url for agent communication
	@site24x7USurl = "https://plusinsight.site24x7.com/"
	@site24x7EUurl = "https://plusinsight.site24x7.eu/"
    @site24x7CNurl = "https://plusinsight.site24x7.cn/"
    @site24x7AUurl = "https://plusinsight.site24x7.net.au/"
    @site24x7INurl = "https://plusinsight.site24x7.in/"
    @site24x7GDurl = "https://gdplusinsight.site24x7.com/"
    @site24x7JPurl = "https://plusinsight.site24x7.jp/"
    @site24x7CAurl = "https://plusinsight.site24x7.ca/"
    @site24x7SAurl = "https://plusinsight.site24x7.sa/"
    @site24x7UKurl = "https://plusinsight.site24x7.uk/"
    @site24x7HDFCurl = "https://hdplusinsight.site24x7.in/"
	
	#Response Codes 
	@licence_expired = 701
	@licence_exceeds = 702
	@delete_agent = 900
	@unmanage_agent =910
	@manage_agent = 911
	@agent_config_updated = 920
	@error_notfound = 404
	@error_server = 500
	@response_code = "response-code"
	@custom_config_info = "custom_config_info"
	@agent_specific_info = "agent_specific_info"

	#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"
	@mf_overflow = "0verf10w"

    @mf_logmetric = "logmetric"
    @mf_logmetric_warning = "warning"
    @mf_err_st = "err_st"
    @mf_exception_st = "exception_st"
    @mf_loginfo = "loginfo"
    @mf_loginfo_time = "time"
    @mf_loginfo_level = "level"
    @mf_loginfo_str = "str"
    @mf_loginfo_err_clz = "err_clz"
    @mf_loginfo_st = "st"
    @mf_loginfo_level_warn = "WARN"

    @en_alphabets = "YXBtaWza"
    @en_numerals = "24876981"
    
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_config_updatedObject (readonly)

Returns the value of attribute agent_config_updated.



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

def agent_config_updated
  @agent_config_updated
end

#agent_lockObject (readonly)

Returns the value of attribute agent_lock.



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

def agent_lock
  @agent_lock
end

#agent_specific_infoObject (readonly)

Returns the value of attribute agent_specific_info.



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

def agent_specific_info
  @agent_specific_info
end

#agent_storeObject (readonly)

Returns the value of attribute agent_store.



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

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

#conf_locationObject (readonly)

Returns the value of attribute conf_location.



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

def conf_location
  @conf_location
end

#connect_config_update_uriObject (readonly)

Returns the value of attribute connect_config_update_uri.



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

def connect_config_update_uri
  @connect_config_update_uri
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

#custom_config_infoObject (readonly)

Returns the value of attribute custom_config_info.



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

def custom_config_info
  @custom_config_info
end

#delete_agentObject (readonly)

Returns the value of attribute delete_agent.



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

def delete_agent
  @delete_agent
end

#en_alphabetsObject (readonly)

Returns the value of attribute en_alphabets.



10
11
12
# File 'lib/agent/util/am_constants.rb', line 10

def en_alphabets
  @en_alphabets
end

#en_numeralsObject (readonly)

Returns the value of attribute en_numerals.



10
11
12
# File 'lib/agent/util/am_constants.rb', line 10

def en_numerals
  @en_numerals
end

#error_notfoundObject (readonly)

Returns the value of attribute error_notfound.



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

def error_notfound
  @error_notfound
end

#error_serverObject (readonly)

Returns the value of attribute error_server.



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

def error_server
  @error_server
end

#licence_exceedsObject (readonly)

Returns the value of attribute licence_exceeds.



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

def licence_exceeds
  @licence_exceeds
end

#licence_expiredObject (readonly)

Returns the value of attribute licence_expired.



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

def licence_expired
  @licence_expired
end

#manage_agentObject (readonly)

Returns the value of attribute manage_agent.



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

def manage_agent
  @manage_agent
end

#mergepattern_confObject (readonly)

Returns the value of attribute mergepattern_conf.



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

def mergepattern_conf
  @mergepattern_conf
end

#mf_allObject (readonly)

Returns the value of attribute mf_all.



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

def mf_all
  @mf_all
end

#mf_apdexObject (readonly)

Returns the value of attribute mf_apdex.



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

def mf_apdex
  @mf_apdex
end

#mf_dbObject (readonly)

Returns the value of attribute mf_db.



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

def mf_db
  @mf_db
end

#mf_err_stObject (readonly)

Returns the value of attribute mf_err_st.



9
10
11
# File 'lib/agent/util/am_constants.rb', line 9

def mf_err_st
  @mf_err_st
end

#mf_exception_stObject (readonly)

Returns the value of attribute mf_exception_st.



9
10
11
# File 'lib/agent/util/am_constants.rb', line 9

def mf_exception_st
  @mf_exception_st
end

#mf_loginfoObject (readonly)

Returns the value of attribute mf_loginfo.



9
10
11
# File 'lib/agent/util/am_constants.rb', line 9

def mf_loginfo
  @mf_loginfo
end

#mf_loginfo_err_clzObject (readonly)

Returns the value of attribute mf_loginfo_err_clz.



9
10
11
# File 'lib/agent/util/am_constants.rb', line 9

def mf_loginfo_err_clz
  @mf_loginfo_err_clz
end

#mf_loginfo_levelObject (readonly)

Returns the value of attribute mf_loginfo_level.



9
10
11
# File 'lib/agent/util/am_constants.rb', line 9

def mf_loginfo_level
  @mf_loginfo_level
end

#mf_loginfo_level_warnObject (readonly)

Returns the value of attribute mf_loginfo_level_warn.



9
10
11
# File 'lib/agent/util/am_constants.rb', line 9

def mf_loginfo_level_warn
  @mf_loginfo_level_warn
end

#mf_loginfo_stObject (readonly)

Returns the value of attribute mf_loginfo_st.



9
10
11
# File 'lib/agent/util/am_constants.rb', line 9

def mf_loginfo_st
  @mf_loginfo_st
end

#mf_loginfo_strObject (readonly)

Returns the value of attribute mf_loginfo_str.



9
10
11
# File 'lib/agent/util/am_constants.rb', line 9

def mf_loginfo_str
  @mf_loginfo_str
end

#mf_loginfo_timeObject (readonly)

Returns the value of attribute mf_loginfo_time.



9
10
11
# File 'lib/agent/util/am_constants.rb', line 9

def mf_loginfo_time
  @mf_loginfo_time
end

#mf_logmetricObject (readonly)

Returns the value of attribute mf_logmetric.



9
10
11
# File 'lib/agent/util/am_constants.rb', line 9

def mf_logmetric
  @mf_logmetric
end

#mf_logmetric_warningObject (readonly)

Returns the value of attribute mf_logmetric_warning.



9
10
11
# File 'lib/agent/util/am_constants.rb', line 9

def mf_logmetric_warning
  @mf_logmetric_warning
end

#mf_nameObject (readonly)

Returns the value of attribute mf_name.



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

def mf_name
  @mf_name
end

#mf_namespaceObject (readonly)

Returns the value of attribute mf_namespace.



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

def mf_namespace
  @mf_namespace
end

#mf_overflowObject (readonly)

Returns the value of attribute mf_overflow.



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

def mf_overflow
  @mf_overflow
end

#mf_separatorObject (readonly)

Returns the value of attribute mf_separator.



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

def mf_separator
  @mf_separator
end

#mf_transactionObject (readonly)

Returns the value of attribute mf_transaction.



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

def mf_transaction
  @mf_transaction
end

#response_codeObject (readonly)

Returns the value of attribute response_code.



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

def response_code
  @response_code
end

#s247_apm_gemObject (readonly)

Returns the value of attribute s247_apm_gem.



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

def s247_apm_gem
  @s247_apm_gem
end

#site24x7AUurlObject (readonly)

Returns the value of attribute site24x7AUurl.



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

def site24x7AUurl
  @site24x7AUurl
end

#site24x7CAurlObject (readonly)

Returns the value of attribute site24x7CAurl.



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

def site24x7CAurl
  @site24x7CAurl
end

#site24x7CNurlObject (readonly)

Returns the value of attribute site24x7CNurl.



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

def site24x7CNurl
  @site24x7CNurl
end

#site24x7EUurlObject (readonly)

Returns the value of attribute site24x7EUurl.



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

def site24x7EUurl
  @site24x7EUurl
end

#site24x7GDurlObject (readonly)

Returns the value of attribute site24x7GDurl.



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

def site24x7GDurl
  @site24x7GDurl
end

#site24x7HDFCurlObject (readonly)

Returns the value of attribute site24x7HDFCurl.



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

def site24x7HDFCurl
  @site24x7HDFCurl
end

#site24x7INurlObject (readonly)

Returns the value of attribute site24x7INurl.



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

def site24x7INurl
  @site24x7INurl
end

#site24x7JPurlObject (readonly)

Returns the value of attribute site24x7JPurl.



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

def site24x7JPurl
  @site24x7JPurl
end

#site24x7SAurlObject (readonly)

Returns the value of attribute site24x7SAurl.



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

def site24x7SAurl
  @site24x7SAurl
end

#site24x7UKurlObject (readonly)

Returns the value of attribute site24x7UKurl.



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

def site24x7UKurl
  @site24x7UKurl
end

#site24x7USurlObject (readonly)

Returns the value of attribute site24x7USurl.



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

def site24x7USurl
  @site24x7USurl
end

#unmanage_agentObject (readonly)

Returns the value of attribute unmanage_agent.



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

def unmanage_agent
  @unmanage_agent
end

Instance Method Details

#setLicenseKey(lkey) ⇒ Object



106
107
108
109
110
111
# File 'lib/agent/util/am_constants.rb', line 106

def setLicenseKey lkey
	@apm_gem="site24x7_apminsight"
	@connect_data_uri="arh/data?license.key="+lkey+"&instance_id="
	@connect_trace_uri="arh/trace?license.key="+lkey+"&instance_id="
	@connect_config_update_uri="arh/agent_config_update?license.key="+lkey+"&instance_id="
end