strongmind-sidekiq-cloudwatchmetrics 2.6.4 → 2.6.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5fe6e911e4388260d1bf13674dce5e4ab6d3433799bfd2848186a43a2d67b809
4
- data.tar.gz: a1c919b1af2905a9591a7aab9c79e691ba361fc286a311fd285e4b55ba252815
3
+ metadata.gz: 76720cee023b118e0506a7cf56d1fe2d0fc66aef61673cd2ea7fbd0904b37488
4
+ data.tar.gz: 77ebeab2c1b6745343911f9386b2dc2b70ee08dfcbf3c90fb820f72af1ee058a
5
5
  SHA512:
6
- metadata.gz: 48aa39fe0f573e0db86d27928efb73aeddec2058e24ed6bc8255164514ca128120ca8f548f6f53c3da4156016e577e723e90df32922700f412ead3a313f9890c
7
- data.tar.gz: 58a0d087fa7575ad6935fc40f03b673595fb5338ea591e5ea97d4f64ccc8d699ed50515175d77ff68e26d9936ccf3a9e9d768d17c80ae8319499e7f5a6959017
6
+ metadata.gz: 8dcdb99043069126657adcecd78a844dd71b3eb8ca695823ccf7f8547c43b6e8d58d7015fab1e721f8ed1a6996f1f9c688118cc4f276f88fc020c9b264986c53
7
+ data.tar.gz: cd331c6110543580105e29c1bb869f6c7ec3c0a53f828a300028b326ce84743a19beae65a69e684bbadd6400992b89b6af635d0183b4b7988c5871ac79140b29
@@ -223,6 +223,17 @@ module Sidekiq::CloudWatchMetrics
223
223
  }
224
224
  end
225
225
 
226
+ highest_latency_metric = metrics.select { |metric| metric[:metric_name] == 'QueueLatency' }
227
+ .max_by { |metric| metric[:value] }
228
+
229
+ metrics << {
230
+ metric_name: "MaxQueueLatency",
231
+ dimensions: [{name: "QueueName", value: "AllQueues"}],
232
+ timestamp: now,
233
+ value: highest_latency_metric[:value],
234
+ unit: "Seconds",
235
+ }
236
+
226
237
  unless @additional_dimensions.empty?
227
238
  metrics = metrics.each do |metric|
228
239
  metric[:dimensions] = (metric[:dimensions] || []) + @additional_dimensions
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strongmind-sidekiq-cloudwatchmetrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.4
4
+ version: 2.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - StrongMind Devops
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-20 00:00:00.000000000 Z
11
+ date: 2024-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq