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

agregar la dimensión al agrupar

This commit is contained in:
f 2022-04-30 16:38:50 -03:00
parent d181c179ff
commit 604ee233bd

View file

@ -78,13 +78,18 @@ class UriCollectionJob < PeriodicJob
reduce_rollup('host', beginning, :sum, **host_dimensions) reduce_rollup('host', beginning, :sum, **host_dimensions)
columns.each_key do |column| columns.each_key do |column|
square_rollup(name: "host|uri|#{column}", values.each do |value|
new_name: "host|#{column}", column_dimensions = { host: host }
interval: starting_interval, column_dimensions[column] = value
dimensions: host_dimensions,
beginning: beginning)
reduce_rollup("host|#{column}", beginning, :sum, **host_dimensions) square_rollup(name: "host|uri|#{column}",
new_name: "host|#{column}",
interval: starting_interval,
dimensions: column_dimensions,
beginning: beginning)
reduce_rollup("host|#{column}", beginning, :sum, **column_dimensions)
end
end end
end end