mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-08-30 17:13:08 +08:00
fix(region): add domain container usage (#24561)
This commit is contained in:
@@ -388,6 +388,8 @@ func getDomainGeneralUsage(ctx context.Context, userToken mcclient.TokenCredenti
|
||||
count.Add("domain.cpu_commit_rate.running_containers", utils.FloatRound(float64(containerRunningCpu)/pcpuTotal, 2))
|
||||
|
||||
count.Include(
|
||||
ContainerNormalUsage(ctx, userToken, getKey(scope, "containers"), scope, cred, rangeObjs, hostTypes, []string{api.HostResourceTypeShared}, providers, brands, cloudEnv, false, nil, policyResult),
|
||||
|
||||
VpcUsage(ctx, userToken, "domain", providers, brands, cloudEnv, cred, rbacscope.ScopeDomain, rangeObjs, policyResult),
|
||||
|
||||
DnsZoneUsage(ctx, userToken, "domain", cred, rbacscope.ScopeDomain, policyResult),
|
||||
|
||||
Reference in New Issue
Block a user