activeinsights 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/active_insights/controller_p_values_controller.rb +1 -1
- data/app/controllers/active_insights/p_values_controller.rb +1 -1
- data/app/controllers/active_insights/rpm_controller.rb +1 -1
- data/app/models/active_insights/request.rb +1 -1
- data/db/migrate/20240111225806_active_insights_request.rb +1 -1
- data/lib/active_insights/version.rb +1 -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: b7cd811a762ab51064d53274437f64f93f74779801c01ca7862994d5680fc236
|
4
|
+
data.tar.gz: 289bdbf78cfaa3497dd2943752ca074fce616171020828a1ac519cac4cb647b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '052695741cc87fd2615062dd310808f7c518cbbe5019ffc20086a6c0d0776ab00d149716743dd8f642c0625c439c20bfa35e2ceb0191bf920cbb38eb25172cfb'
|
7
|
+
data.tar.gz: e0635d4cef4b87156b71c3e7fe30ef1520b11df3787ba2e04acb8150d955492edb5eddb2cdaca90da7c637f3c0f14f10aa41809792e336ab64d16bcbd77d59f9
|
@@ -19,7 +19,7 @@ module ActiveInsights
|
|
19
19
|
@minutes ||=
|
20
20
|
ActiveInsights::Request.where(started_at: @date).
|
21
21
|
where(formatted_controller: params[:formatted_controller]).
|
22
|
-
|
22
|
+
minute_by_minute.with_durations.select_started_at
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
@@ -5,7 +5,7 @@ module ActiveInsights
|
|
5
5
|
def index
|
6
6
|
@minutes =
|
7
7
|
ActiveInsights::Request.where(started_at: @date).
|
8
|
-
|
8
|
+
minute_by_minute.select("COUNT(id) AS rpm").select_started_at.
|
9
9
|
map { |minute| [minute.started_at.strftime("%-l:%M%P"), minute.rpm] }
|
10
10
|
end
|
11
11
|
|
@@ -10,7 +10,7 @@ module ActiveInsights
|
|
10
10
|
select("STRING_AGG(CAST(duration AS varchar), ',') AS durations")
|
11
11
|
end
|
12
12
|
}
|
13
|
-
scope :
|
13
|
+
scope :minute_by_minute, lambda {
|
14
14
|
case connection.adapter_name
|
15
15
|
when "SQLite"
|
16
16
|
group("strftime('%Y-%m-%d %H:%M:00 UTC', " \
|