fluent-plugin-jfrog-metrics 0.2.12.1 → 0.2.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/fluent-plugin-jfrog-metrics.gemspec +1 -1
- data/lib/fluent/plugin/in_jfrog_metrics.rb +10 -12
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38cfa0bcb5a231e76d279f77fcc986f593d0b3419a382db75b7fbbced8462afd
|
4
|
+
data.tar.gz: 569d77cf394b138961124c823e90672d941e1c207acdfcf2eb682632d29b5e05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcca22a3705f8d6c7b711748203ba7bd3ea06d9779b9dfe4082e1990a19af5d2ed74926e91150f624c9023b830209080594514459dc05ca9faf65c930a568713
|
7
|
+
data.tar.gz: a218f823e45bf3ff3ac0674d1384c69342fb1e6bffd96ed3fc98b6fb8b3f8d1259af492632f1af7d80d0f0585741858adeedb02c0afb9faae3feae6ea17d28c7
|
data/Gemfile.lock
CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = 'fluent-plugin-jfrog-metrics'
|
6
|
-
spec.version = '0.2.12.
|
6
|
+
spec.version = '0.2.12.2'
|
7
7
|
spec.authors = ['MahithaB, BenHarosh']
|
8
8
|
spec.email = ['cpe-support@jfrog.com']
|
9
9
|
|
@@ -97,7 +97,7 @@ module Fluent
|
|
97
97
|
raise e
|
98
98
|
end
|
99
99
|
end
|
100
|
-
|
100
|
+
timer_task.add_observer(TaskObserver.new)
|
101
101
|
timer_task.execute
|
102
102
|
sleep 100
|
103
103
|
end
|
@@ -131,8 +131,6 @@ module Fluent
|
|
131
131
|
$logger.error("The request timed out while trying to open a connection. The configured request timeout is: #{@request_timeout}")
|
132
132
|
rescue RestClient::Exceptions::ReadTimeout
|
133
133
|
$logger.error("The request timed out while waiting for a response. The configured request timeout is: #{@request_timeout}")
|
134
|
-
rescue RestClient::Exceptions::RequestTimeout
|
135
|
-
$logger.error("The request timed out. The configured request timeout is: #{@request_timeout}")
|
136
134
|
rescue RestClient::ExceptionWithResponse => e
|
137
135
|
$logger.error("HTTP request failed: #{e.response}")
|
138
136
|
rescue StandardError => e
|
@@ -142,15 +140,15 @@ module Fluent
|
|
142
140
|
end
|
143
141
|
end
|
144
142
|
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
143
|
+
class TaskObserver
|
144
|
+
def update(time, result, e)
|
145
|
+
if result
|
146
|
+
$logger.info("Timer task Execution successfully returned: '#{result}' at: #{time}")
|
147
|
+
else
|
148
|
+
$logger.error("Timer task Execution failed with error: #{e} at: #{time}")
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
154
152
|
end
|
155
153
|
end
|
156
154
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-jfrog-metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.12.
|
4
|
+
version: 0.2.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MahithaB, BenHarosh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|