5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 21:26:21 +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|
values.each do |value|
column_dimensions = { host: host }
column_dimensions[column] = value
square_rollup(name: "host|uri|#{column}", square_rollup(name: "host|uri|#{column}",
new_name: "host|#{column}", new_name: "host|#{column}",
interval: starting_interval, interval: starting_interval,
dimensions: host_dimensions, dimensions: column_dimensions,
beginning: beginning) beginning: beginning)
reduce_rollup("host|#{column}", beginning, :sum, **host_dimensions) reduce_rollup("host|#{column}", beginning, :sum, **column_dimensions)
end
end end
end end