site24x7_apminsight 1.7.0 → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,7 +24,7 @@ module ManageEngine
24
24
  @alreadyconnected = checkAgentInfo
25
25
  @site24x7 = checkLicenseFile
26
26
  if (@site24x7)
27
- @site24x7url = @license_key.start_with?('eu') ? @obj.constants.site24x7EUurl : @obj.constants.site24x7USurl
27
+ @site24x7url = @license_key.start_with?('eu_') ? @obj.constants.site24x7EUurl : @license_key.start_with?('cn_') ? @obj.constants.site24x7CNurl : @obj.constants.site24x7USurl
28
28
  end
29
29
  @db_operations =["select","insert","update","delete"]
30
30
  urlMergePattern
@@ -209,9 +209,9 @@ module ManageEngine
209
209
  #Checks whether the given value is Environment Variable
210
210
  def checkAndGetEnvValue(data)
211
211
  begin
212
- value = "#{data}"[/{(.*)}/,1]
212
+ value = "#{data}"[/\{(.*)\}/,1]
213
213
  if (value != nil && ENV.has_key?(value))
214
- return data.gsub(/{.*}/, ENV[value])
214
+ return data.gsub(/\{.*\}/, ENV[value])
215
215
  end
216
216
  rescue Exception=>e
217
217
  end
@@ -142,8 +142,8 @@ module ManageEngine
142
142
  end
143
143
  end
144
144
  rescue Exception=>e
145
- @obj.log.info "Exception in getTranseData: #{e}"
146
- @obj.log.logException "#{e.message}",e
145
+ #@obj.log.logException "Exception in getTranseData: #{e.message}",e
146
+ raise e
147
147
  end
148
148
  ret
149
149
  end
@@ -2,7 +2,8 @@
2
2
  module ManageEngine
3
3
  class APMConstants
4
4
 
5
- attr_reader :apm_gem,:s247_apm_gem,:apm_conf,:agent_conf,:connection_open_timeout,:connection_read_timeout,:connect_uri,:connect_data_uri,:connect_trace_uri,:connect_config_update_uri,:site24x7USurl, :site24x7EUurl, :mergepattern_conf
5
+ attr_reader :apm_gem,:s247_apm_gem,:apm_conf,:agent_conf,:connection_open_timeout,:connection_read_timeout,:connect_uri,:connect_data_uri,:connect_trace_uri,:connect_config_update_uri,:mergepattern_conf
6
+ attr_reader :site24x7USurl, :site24x7EUurl, :site24x7CNurl
6
7
  attr_reader :licence_exceeds,:licence_expired,:unmanage_agent,:manage_agent,:agent_config_updated,:error_notfound,:error_server,:delete_agent,:response_code,:custom_config_info, :agent_specific_info
7
8
  attr_reader :mf_transaction,:mf_separator,:mf_db,:mf_apdex,:mf_namespace,:mf_name,:mf_all,:agent_store,:agent_lock,:mf_overflow
8
9
  attr_reader :mf_logmetric, :mf_logmetric_warning, :mf_exception_st, :mf_err_st, :mf_loginfo, :mf_loginfo_time, :mf_loginfo_level, :mf_loginfo_str, :mf_loginfo_err_clz, :mf_loginfo_st, :mf_loginfo_level_warn
@@ -49,9 +50,9 @@ module ManageEngine
49
50
  @connect_config_update_uri="arh/agent_config_update?instance_id="
50
51
 
51
52
  #Site24x7 url for agent communication
52
- @site24x7USurl="https://plusinsight.site24x7.com/"
53
-
53
+ @site24x7USurl = "https://plusinsight.site24x7.com/"
54
54
  @site24x7EUurl = "https://plusinsight.site24x7.eu/"
55
+ @site24x7CNurl = "https://plusinsight.site24x7.cn/"
55
56
 
56
57
  #Response Codes
57
58
  @licence_expired = 701
data/lib/version.rb CHANGED
@@ -6,8 +6,8 @@
6
6
 
7
7
  module ManageEngine
8
8
  class APMInsight
9
- VERSION = '1.7.0'
9
+ VERSION = '1.7.2'
10
10
  MAJOR_VERSION = '1.7'
11
- MINOR_VERSION = '0'
11
+ MINOR_VERSION = '2'
12
12
  end
13
13
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 7
8
- - 0
9
- version: 1.7.0
8
+ - 2
9
+ version: 1.7.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Adithyan P
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2018-04-27 00:00:00 +05:30
17
+ date: 2018-06-21 00:00:00 +05:30
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency