cloudwatch-metrics 0.1.19 → 0.1.20

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: 2cf213da73437c9d5d4e161a5c521187b7e10c6dec006e5b0d9dca7311a9ec72
4
- data.tar.gz: eed0f8940588afa007452cebb3e991ad932c8b18ebae148465769440cf2c328e
3
+ metadata.gz: ed2bfc01b8f1d2dbab1c056bd3de5b8bc6c6eec68d1272eb79bfc3c2afe58c14
4
+ data.tar.gz: a6bde815572b5da17b8deb2e7b333474647c7b35bb0aee4f6a48785518808978
5
5
  SHA512:
6
- metadata.gz: 2985f423ac16673f9ca42ca7841d192bf109fdd6f59e60f793c369ecf39e2439b8af38254a95068eba4545720e523c9ef0d3d9317d4f05c0e64eceaa2f775bea
7
- data.tar.gz: b53195c2982138aad940409ace56540bf244bf672c74aae80c823b9d0b945371d920927496039ee034789d26d5a8f7818c837645e6ec3e54d9eb42a93907a43e
6
+ metadata.gz: 036ca0062180ec4ef115f450b6d6b23c79acf9a9f31a3339de0de0aab50c6dcbf3156cf99f06752cbb4ee1641d61007c77dda14e5864d43dabcc5381c5913d0d
7
+ data.tar.gz: 8a478644a87967e0521f22eee3cd1988df05c3da34ae6bd35afa1139a4850cf26f39f20505fbc49f1015c1b86187f6daf4d54fcd51bad4987fd5cb1c53fa7f9a
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.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 within a particular metric. Default is `nil`.
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)`
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudwatchMetrics
4
- VERSION = '0.1.19'
4
+ VERSION = '0.1.20'
5
5
  end
@@ -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: [], timestamp: nil
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.19
4
+ version: 0.1.20
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-07 00:00:00.000000000 Z
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