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
|
-
|
|
88
|
-
|
|
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
|
-
|
|
104
|
+
@trackerCount += 1
|
|
105
|
+
if @trackerCount == 1000
|
|
103
106
|
@listenFlag = 1
|
|
104
107
|
end
|
|
105
108
|
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -4,10 +4,9 @@ version: !ruby/object:Gem::Version
|
|
|
4
4
|
prerelease: false
|
|
5
5
|
segments:
|
|
6
6
|
- 1
|
|
7
|
-
-
|
|
8
|
-
- 3
|
|
7
|
+
- 8
|
|
9
8
|
- 0
|
|
10
|
-
version: 1.
|
|
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:
|
|
17
|
+
date: 2019-04-08 00:00:00 +05:30
|
|
19
18
|
default_executable:
|
|
20
19
|
dependencies:
|
|
21
20
|
- !ruby/object:Gem::Dependency
|