cloudwatch-metrics 0.1.20 → 0.1.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloudwatch_metrics/version.rb +1 -1
- data/lib/cloudwatch_metrics.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a95af2bfa68089210a8e148db134dc22201b624896e7e104c8472672df1323d2
|
4
|
+
data.tar.gz: c51f0c22924537d53849f39b189dc4bbf8c27564f54a5804bcc912446fe6814e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a63bba52e9bab8798d226e636c1acff12443f7e6081444dc0a7374afeacbae67b47f01717ebcfd57450aa9f4ce60b69b372fe50e145afaf6dfac965ec384f27
|
7
|
+
data.tar.gz: 2c75231f1164b4d9376d506fe02d70b44ecb3befdb5e69b53e03fcfef4b40301b4e32a1b75924e334a97a192357e2f7099b75cd22dfa1ad830c46fb076edc867
|
data/lib/cloudwatch_metrics.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'aws-sdk-cloudwatch'
|
3
4
|
require_relative 'cloudwatch_metrics/configuration'
|
4
5
|
require_relative 'cloudwatch_metrics/constants'
|
5
6
|
|
@@ -17,7 +18,7 @@ module CloudwatchMetrics
|
|
17
18
|
end
|
18
19
|
|
19
20
|
def record(
|
20
|
-
name:, value:, unit: nil, namespace: configuration.namespace, dimensions:
|
21
|
+
name:, value:, unit: nil, namespace: configuration.namespace, dimensions: nil, timestamp: nil
|
21
22
|
)
|
22
23
|
metric_data = [{
|
23
24
|
metric_name: name,
|