ffwd-google-cloud 0.4.6 → 0.4.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 361e6fba065147958d18bf71cc0b48bb96f8f5bb
4
- data.tar.gz: 8dedd6d559bc81c6542a3bdfa39d3ed8ebd7e8b5
3
+ metadata.gz: 84c666a41c289090d1b5dd9bbcf1098c6f092ba0
4
+ data.tar.gz: d645a274b454c71d377dd838df336e59dad1d5c4
5
5
  SHA512:
6
- metadata.gz: b6e8bcbc321302513fb3814e3d4e9975da9640e2ebbbc552ed7e3816953a3888b68160b035064fbf995cf3c3f2b7b5572d0419a34dad5f4d43f9f7133601f640
7
- data.tar.gz: 8682ee6cabafb38d1117279dd99f38db593dcd967c869c851e677db08b797d2bf11385e830ea21eec145bd0b94a9071f68e4c3a390ce09378c0c84d47799977d
6
+ metadata.gz: 73a5f21b4d43b7d596e62ac274892436959cd449451f6d06f9aa32c1de875abe9339b0af052ee0e818ed6ae3eb4787621f576f76a1c5cabf0d4762be7378139a
7
+ data.tar.gz: b5ebc654cdb5b2c3a9638d996e1665b7cd195303d39ca78737f8e26f7faca859e4a39421d6dcf0eddbee0521dc343192f05a8adf7c23f60cc019499aa1459d31
@@ -36,8 +36,11 @@ module FFWD::Plugin::GoogleCloud
36
36
  buffer.each do |m|
37
37
  d = make_desc(m)
38
38
 
39
- # using built-in hash OK since we are only internally de-duplicating.
40
- seen_key = [d[:metric], d[:labels].keys.sort].hash
39
+ # Deduplicate batches.
40
+ #
41
+ # Asserts that each batch only contains one point for each label
42
+ # configuration.
43
+ seen_key = [d[:metric], d[:labels].map.sort].hash
41
44
 
42
45
  if seen.member?(seen_key)
43
46
  dropped += 1
@@ -16,7 +16,7 @@
16
16
  module FFWD
17
17
  module Plugin
18
18
  module GoogleCloud
19
- VERSION = "0.4.6"
19
+ VERSION = "0.4.7"
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffwd-google-cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - John-John Tedro
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.4.6
33
+ version: 0.4.7
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.4.6
40
+ version: 0.4.7
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement