mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-21 11:31:49 +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
|
def resources
|
||||||
return unless stale? [last_stat, interval, resource, period]
|
return unless stale? [last_stat, interval, resource, period]
|
||||||
|
|
||||||
options = {
|
options = { interval: interval, dimensions: { site_id: site.id } }
|
||||||
interval: interval,
|
|
||||||
dimensions: {
|
|
||||||
deploy_id: @site.deploys.where(type: 'DeployLocal').pluck(:id).first
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
render json: rollup_scope.series(resource, **options)
|
render json: rollup_scope.series(resource, **options)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue