File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11PATH
22 remote: .
33 specs:
4- stackify-api-ruby (1.0.7 )
4+ stackify-api-ruby (1.0.8 )
55 faraday (>= 0.8 )
66
77GEM
Original file line number Diff line number Diff 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?
Original file line number Diff line number Diff line change 11module Stackify
2- VERSION = '1.0.7 '
2+ VERSION = '1.0.8 '
33end
You can’t perform that action at this time.
0 commit comments