Skip to content

Commit 48b40af

Browse files
committed
Merge pull request #14 from stackify/SF-2912
SF-2912
2 parents 4d76d7e + 4ae8bbb commit 48b40af

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
stackify-api-ruby (1.0.7)
4+
stackify-api-ruby (1.0.8)
55
faraday (>= 0.8)
66

77
GEM

lib/stackify/metrics/metrics_sender.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@ def monitor_info aggr_metric
1414
def upload_metrics aggr_metrics
1515
return true if aggr_metrics.nil? || aggr_metrics.length == 0
1616
current_time = Stackify::Utils.rounded_current_time
17+
device_id = Stackify::EnvDetails.instance.auth_info['DeviceID']
1718
if Stackify.authorized?
1819
records = []
1920
aggr_metrics.each_pair do |_key, metric|
2021
next if metric.sent || metric.occurred_utc.to_i >= current_time.to_i
21-
records << Stackify::Metrics::MetricForSubmit.new(metric).to_h
22+
record = Stackify::Metrics::MetricForSubmit.new(metric).to_h
23+
record['ClientDeviceID'] = device_id if !device_id.nil?
24+
records << record
2225
metric.sent = true
2326
end
2427
if records.any?

lib/stackify/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Stackify
2-
VERSION = '1.0.7'
2+
VERSION = '1.0.8'
33
end

0 commit comments

Comments
 (0)