5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 21:46:22 +00:00

fixup! mostrar la cantidad de visitas por origen y pais

This commit is contained in:
f 2022-04-30 18:05:08 -03:00
parent e00780c7f0
commit 224e599de2

View file

@ -68,7 +68,7 @@ class UriCollectionJob < PeriodicJob
end end
# Reducir todas las visitas a cantidad de visitas por host # Reducir todas las visitas a cantidad de visitas por host
rollup('host', beginning, :sum, **host_dimensions) rollup('host', beginning, **host_dimensions)
# Acumular por mes y año # Acumular por mes y año
reduce_rollup('host', beginning, :sum, **host_dimensions) reduce_rollup('host', beginning, :sum, **host_dimensions)
@ -78,7 +78,7 @@ class UriCollectionJob < PeriodicJob
column_dimensions = { host: host } column_dimensions = { host: host }
column_dimensions[column] = value column_dimensions[column] = value
rollup("host|#{column}", beginning, :sum, **column_dimensions) rollup("host|#{column}", beginning, **column_dimensions)
reduce_rollup("host|#{column}", beginning, :sum, **column_dimensions) reduce_rollup("host|#{column}", beginning, :sum, **column_dimensions)
end end
end end