yabeda-cloudwatch 0.1.2 → 0.1.3

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: 4d3095d52f7abd0b17d606a82fb4e4e7f32922e1b8734d13929a4fe18a41a5d2
4
- data.tar.gz: 803fa0b4f3181e81a94bd80729b96f9586d7f624500d820b8447f05c80958764
3
+ metadata.gz: aa0069018a29aff09a73a40422b9393213e3cefb4e25c7ff5c149fa4f627052e
4
+ data.tar.gz: 5361b950d71cf40c3a8930870b55359db341c370410acaa442fe65e1e9f14d51
5
5
  SHA512:
6
- metadata.gz: 9a638f40684c7946d3a13218310f08cd95aa012962930c7290f5ce8c24a09a0b93e6eb1d3145d76d9600fd700533c14f51653926ac5c1974917c1f78a42ea7a2
7
- data.tar.gz: '06892b48b26a0b28282dd822ad106a6b45d0700c599ebbe86da7b6b2859d3893492f70bb542ae23ae1e19932f3d4be63e376cdff2c63540b3bc7c0817bb6a877'
6
+ metadata.gz: c24515152cdcf42844690525d19b90a90c42bac7eccbfd85260cb85cf029a047b443bd8762e51dc0bfec0bd9d44292f9a3ec24e0af94d11be2ad9b6f19b503f2
7
+ data.tar.gz: e42eeaa5dae89461aa12a4842825962ac376a03f27a0824fce7c281df74093468232f8dacbc0f6b1912cd987667a5d0859f6213cfd92d3ffa24082b584caa944
data/CHANGELOG.md CHANGED
@@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## 0.1.12- 2023-01-31
8
+ ## 0.1.3 - 2023-02-13
9
+
10
+ - Fix wrong metric unit format in #put_metric_data. @retsef
11
+
12
+ ## 0.1.2 - 2023-01-31
9
13
 
10
14
  - Improve specs. @retsef
11
15
  - Update cloudwatch adapter to send string :namespace and :metric_name instead of symbol. @retsef
@@ -25,7 +25,7 @@ module Yabeda
25
25
  metric_name: counter.name.to_s,
26
26
  timestamp: Time.now,
27
27
  dimensions: tags.map { |tag_name, tag_value| { name: tag_name.to_s, value: tag_value } },
28
- unit: counter.unit || 'Count',
28
+ unit: (counter.unit || :count).to_s.camelcase,
29
29
  value: increment,
30
30
  },
31
31
  ],
@@ -44,7 +44,7 @@ module Yabeda
44
44
  metric_name: gauge.name.to_s,
45
45
  timestamp: Time.now,
46
46
  dimensions: tags.map { |tag_name, tag_value| { name: tag_name.to_s, value: tag_value } },
47
- unit: gauge.unit || 'Count',
47
+ unit: (gauge.unit || :count).to_s.camelcase,
48
48
  value: value,
49
49
  },
50
50
  ],
@@ -63,7 +63,7 @@ module Yabeda
63
63
  metric_name: histogram.name.to_s,
64
64
  timestamp: Time.now,
65
65
  dimensions: tags.map { |tag_name, tag_value| { name: tag_name.to_s, value: tag_value } },
66
- unit: histogram.unit || 'Seconds',
66
+ unit: (histogram.unit || :seconds).to_s.camelcase,
67
67
  value: value,
68
68
  },
69
69
  ],
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Yabeda
4
4
  module Cloudwatch
5
- VERSION = '0.1.2'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yabeda-cloudwatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Scinocca
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-31 00:00:00.000000000 Z
11
+ date: 2023-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-cloudwatch