site24x7_apminsight 1.7.3.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -247,6 +247,9 @@ module ManageEngine
247
247
  begin
248
248
  # Check for AWS environment
249
249
  response = Net::HTTP.get_response(URI('http://169.254.169.254/latest/meta-data/'))
250
+ # url = URI.parse('http://169.254.169.254/latest/meta-data/')
251
+ # request = Net::HTTP::Get.new(url.path)
252
+ # response = Net::HTTP.start(url.host, url.port, :read_timeout => 2) {|http| http.request(request)}
250
253
  if (response.kind_of? Net::HTTPOK)
251
254
  @hostType = "AWS"
252
255
  return @hostType
@@ -257,6 +260,9 @@ module ManageEngine
257
260
  begin
258
261
  #Check for Azure environment
259
262
  response = Net::HTTP.get_response(URI('http://169.254.169.254/metadata/v1/maintenance'))
263
+ # url = URI.parse('http://169.254.169.254/metadata/v1/maintenance')
264
+ # request = Net::HTTP::Get.new(url.path)
265
+ # response = Net::HTTP.start(url.host, url.port, :read_timeout => 2) {|http| http.request(request)}
260
266
  if (response.kind_of? Net::HTTPOK)
261
267
  @hostType = "AZURE"
262
268
  return @hostType
@@ -84,8 +84,10 @@ module APMInsight
84
84
  if @exceptionBag == nil
85
85
  @exceptionBag = Set.new
86
86
  end
87
- exceptionRecord = ::APMInsight::Errors::ExceptionRecord.new(exception)
88
- @exceptionBag.add(exceptionRecord)
87
+ if (@exceptionBag.size() < 10)
88
+ exceptionRecord = ::APMInsight::Errors::ExceptionRecord.new(exception)
89
+ @exceptionBag.add(exceptionRecord)
90
+ end
89
91
  rescue Exception=>e
90
92
  end
91
93
  end
@@ -99,7 +101,8 @@ module APMInsight
99
101
  end
100
102
 
101
103
  def checkAndArrestSequence
102
- if ++@trackerCount == 1000
104
+ @trackerCount += 1
105
+ if @trackerCount == 1000
103
106
  @listenFlag = 1
104
107
  end
105
108
 
@@ -6,8 +6,8 @@
6
6
 
7
7
  module ManageEngine
8
8
  class APMInsight
9
- VERSION = '1.7.3.0'
10
- MAJOR_VERSION = '1.7'
11
- MINOR_VERSION = '3.0'
9
+ VERSION = '1.8.0'
10
+ MAJOR_VERSION = '1.8'
11
+ MINOR_VERSION = '0'
12
12
  end
13
13
  end
metadata CHANGED
@@ -4,10 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 1
7
- - 7
8
- - 3
7
+ - 8
9
8
  - 0
10
- version: 1.7.3.0
9
+ version: 1.8.0
11
10
  platform: ruby
12
11
  authors:
13
12
  - Adithyan P
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2018-12-28 00:00:00 +05:30
17
+ date: 2019-04-08 00:00:00 +05:30
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency