yabeda-cloudwatch 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/yabeda/cloudwatch/adapter.rb +3 -3
- data/lib/yabeda/cloudwatch/version.rb +1 -1
- 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: aa0069018a29aff09a73a40422b9393213e3cefb4e25c7ff5c149fa4f627052e
|
4
|
+
data.tar.gz: 5361b950d71cf40c3a8930870b55359db341c370410acaa442fe65e1e9f14d51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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 ||
|
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 ||
|
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 ||
|
66
|
+
unit: (histogram.unit || :seconds).to_s.camelcase,
|
67
67
|
value: value,
|
68
68
|
},
|
69
69
|
],
|
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.
|
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-
|
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
|