fluent-plugin-jfrog-metrics 0.2.3 → 0.2.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21102bd90a5d5cb08bc3277e641dc23d00f11a6beb7d4bd5c1256efc1b354d30
4
- data.tar.gz: 6bd16774a36b1d1ffa6f1286e43e11915aae029faae8ba9eb6f0df93b240b639
3
+ metadata.gz: c00c423ab9491557efdbe34b16c0ce13efa20a311e8f91fe9d89a6385e95d9db
4
+ data.tar.gz: b2bb9ea1003ce8b06bef69fbd6a8d28605e928e7842b2a85cbe6a490c10854d7
5
5
  SHA512:
6
- metadata.gz: 28b40128a2fa43f3d74d78bdfe6e322adcafd70492cf4eb6363990596c02e78b7c0e13391ccef7a8771fe96e443f9ab27060d7e71f5e87297f95c8262c5b63f4
7
- data.tar.gz: 7cd90e2cd932bf0cd2c0717cea0711cff814d5403d7e3be9cd7ccefd8611f717af6afa60f334d2e579d3f72c5a74a1c7a0fc654ba8d6dd658db980f90727e49a
6
+ metadata.gz: 860cdc25af5d5922732a15a82ec3fa597e66e6acf51f90a827397e10469b0dfe45b2b4d83b58c4f24635743b1e612b41c45ab779f64f2f7d34565d3257faefba
7
+ data.tar.gz: 664974e6bdcd74531c020381b015ff5783080124bf3d16eec9ef72b6861819b9fa1a5c1759a4616aa99640bbee231c5b044797836a705e56e5ba539c52c48b4c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fluent-plugin-jfrog-metrics (0.2.3)
4
+ fluent-plugin-jfrog-metrics (0.2.4)
5
5
  fluentd (>= 0.14.10, < 2)
6
6
  rest-client (~> 2.0)
7
7
 
@@ -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.3'
6
+ spec.version = '0.2.4'
7
7
  spec.authors = ['MahithaB, VasukiN, giri-vsr']
8
8
  spec.email = ['cpe-support@jfrog.com']
9
9
 
@@ -20,12 +20,11 @@ class ElasticMetricsParser < BaseMetricsParser
20
20
  additional_dims.split(/,/).map do |interim_dim_data|
21
21
  hash_data_with_dim_fields[prefix + separator + "label" + separator + interim_dim_data.split(/=/)[0]] = interim_dim_data.split(/=/)[1].gsub(/"/, '') if interim_dim_data =~ /=/
22
22
  end
23
- hash_data_with_dim_fields[prefix + separator + metric_name] = metric_val_and_time.strip.split[0] =~ /^\S*\.\S*$/ ? metric_val_and_time.strip.split[0].to_f : metric_val_and_time.strip.split[0].to_i
23
+ hash_data_with_dim_fields[prefix + separator + metric_name] = metric_val_and_time.strip.split[0].to_f
24
24
  hash_data_with_labels << hash_data_with_dim_fields
25
25
  else
26
26
  metric_name, value, = interim_data.split
27
- hash_data[prefix + separator + metric_name] =
28
- value =~ /^\S*\.\S*$/ ? value.to_f : value.to_i
27
+ hash_data[prefix + separator + metric_name] = value.to_f
29
28
  end
30
29
  end
31
30
  hash_data_array << hash_data
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-jfrog-metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - MahithaB, VasukiN, giri-vsr