cloudwatch-metrics 0.1.19 → 0.1.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/cloudwatch_metrics/version.rb +1 -1
- data/lib/cloudwatch_metrics.rb +2 -2
- 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: 41179d4e917327cef33e11238f08f5db64e3273a9d604796c32dc62f7d9b7e17
|
4
|
+
data.tar.gz: c6c41cf350ace1d9f30a7d268c43c114e4dfa9ee2a61113e922e2b2c0107bcfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 441baeab14d2d0224b9fe60b1ab11d39384fdbe737fc12df2928a8e7b23d9d5a521b1c89c1da11302e517c4fd6b0b8030d04a6e4e7a2e18ae922dcf7093487f6
|
7
|
+
data.tar.gz: e828b703ae6eae50242e9893e1afdf42e9414adac61b2077f22f5f5a488a6fe7bfb4665d0e985c676c2348499301a961ca8c313fe74423467b5dbba1fd0f7456
|
data/README.md
CHANGED
@@ -51,9 +51,9 @@ E.g. `CW.record_all(name: 'search_result_count', values: [25, 50, 65], counts: [
|
|
51
51
|
|
52
52
|
Both recording methods accept optional parameters, which are detailed below, along with their default values
|
53
53
|
|
54
|
-
* `unit`: The unit of measure for this data point. Units help provide conceptual meaning to your data, but CloudWatch attaches no significance to a unit internally. Common values are `Seconds`, `Kilobytes`, `Percent`, `Count`, `Kilobytes/Second`. Default value is `None`. A full list of available units is available at `CloudwatchMetrics
|
55
|
-
* `namespace`: Override the namespace set in the initializer. Default is `nil
|
56
|
-
* `dimensions`: A hash of name/value pairs that form part of the identity of a metric. Dimensions allow you to group and filter data points
|
54
|
+
* `unit`: The unit of measure for this data point. Units help provide conceptual meaning to your data, but CloudWatch attaches no significance to a unit internally. Common values are `Seconds`, `Kilobytes`, `Percent`, `Count`, `Kilobytes/Second`. Default value is `None`. A full list of available units is available at `CloudwatchMetrics::Units`.
|
55
|
+
* `namespace`: Override the namespace set in the initializer. Default is `nil`.
|
56
|
+
* `dimensions`: A hash of name/value pairs that form part of the identity of a metric. Dimensions allow you to group and filter data points for a particular metric. Default is `nil`.
|
57
57
|
* `timestamp`: The time associated with the data point. The timestamp can be up to two weeks in the past and up to two hours into the future. Default is the current time.
|
58
58
|
|
59
59
|
E.g. `CW.record(name: 'search_result_count', value: 25, unit: CW::COUNT, namespace: 'custom_namespace', dimensions: { group: 'A', subgroup: 'B' }, timestamp: Time.current - 1.day)`
|
data/lib/cloudwatch_metrics.rb
CHANGED
@@ -17,7 +17,7 @@ module CloudwatchMetrics
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def record(
|
20
|
-
name:, value:, unit: nil, namespace: configuration.namespace, dimensions:
|
20
|
+
name:, value:, unit: nil, namespace: configuration.namespace, dimensions: nil, timestamp: nil
|
21
21
|
)
|
22
22
|
metric_data = [{
|
23
23
|
metric_name: name,
|
@@ -30,7 +30,7 @@ module CloudwatchMetrics
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def record_all(
|
33
|
-
name:, values:, counts:, unit: nil, namespace: configuration.namespace, dimensions:
|
33
|
+
name:, values:, counts:, unit: nil, namespace: configuration.namespace, dimensions: nil, timestamp: nil
|
34
34
|
)
|
35
35
|
metric_data = [{
|
36
36
|
metric_name: name,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudwatch-metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Puckett
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-cloudwatch
|