mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(monitor): monitor query : cloudaccount no data fix
1.修复云账号余额监控查询无数据返回
This commit is contained in:
@@ -555,6 +555,9 @@ func (c *QueryCondition) getOnecloudResources() ([]jsonutils.JSONObject, error)
|
||||
allResources, err = ListAllResources(&mc_mds.ElasticCache, query)
|
||||
case monitor.METRIC_RES_TYPE_OSS:
|
||||
allResources, err = ListAllResources(&mc_mds.Buckets, query)
|
||||
case monitor.METRIC_RES_TYPE_CLOUDACCOUNT:
|
||||
query.Remove("status")
|
||||
allResources, err = ListAllResources(&mc_mds.Cloudaccounts, query)
|
||||
case monitor.METRIC_RES_TYPE_TENANT:
|
||||
allResources, err = ListAllResources(&mc_mds.Projects, query)
|
||||
case monitor.METRIC_RES_TYPE_DOMAIN:
|
||||
@@ -721,6 +724,8 @@ func (c *QueryCondition) getTagKeyRelationMap() map[string]string {
|
||||
relationMap = monitor.RedisTags
|
||||
case monitor.METRIC_RES_TYPE_OSS:
|
||||
relationMap = monitor.OssTags
|
||||
case monitor.METRIC_RES_TYPE_CLOUDACCOUNT:
|
||||
relationMap = monitor.CloudAccountTags
|
||||
case monitor.METRIC_RES_TYPE_TENANT:
|
||||
relationMap = monitor.TenantTags
|
||||
case monitor.METRIC_RES_TYPE_DOMAIN:
|
||||
|
||||
Reference in New Issue
Block a user