File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ def upload_aggregates aggr_metrics
203203 mon_info = @monitor_ids [ metric . name_key ]
204204 else
205205 req = @metrics_sender . monitor_info metric
206- if req . try ( :code ) == ' 200'
206+ if req . try ( :status ) == 200
207207 mon_info = JSON . parse req . body
208208 if !mon_info . nil? && !mon_info [ 'MonitorID' ] . nil? && mon_info [ 'MonitorID' ] > 0
209209 @monitor_ids [ metric . name_key ] = mon_info
@@ -229,7 +229,7 @@ def upload_aggregates aggr_metrics
229229 #get identified once
230230 aggr_metrics_for_upload = aggr_metrics . select { |_key , aggr_metric | !aggr_metric . monitor_id . nil? }
231231 response = @metrics_sender . upload_metrics aggr_metrics_for_upload
232- Stackify . internal_log :info , 'Metrics are uploaded successfully' if response . try ( :code ) == ' 200'
232+ Stackify . internal_log :info , 'Metrics are uploaded successfully' if response . try ( :status ) == 200
233233 all_success
234234 end
235235 end
You can’t perform that action at this time.
0 commit comments