mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 18:46:22 +00:00
usar el id del sitio como dimensión
This commit is contained in:
parent
92cd2ac052
commit
756fb8f1cb
1 changed files with 1 additions and 6 deletions
|
@ -60,12 +60,7 @@ class StatsController < ApplicationController
|
|||
def resources
|
||||
return unless stale? [last_stat, interval, resource, period]
|
||||
|
||||
options = {
|
||||
interval: interval,
|
||||
dimensions: {
|
||||
deploy_id: @site.deploys.where(type: 'DeployLocal').pluck(:id).first
|
||||
}
|
||||
}
|
||||
options = { interval: interval, dimensions: { site_id: site.id } }
|
||||
|
||||
render json: rollup_scope.series(resource, **options)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue