Merge pull request #10983 from zhaoxiangchun/bugfix/zxc-monitor

fix(monitor): monitor query : cloudaccount no data fix
This commit is contained in:
Zexi Li
2021-05-08 17:25:26 +08:00
committed by GitHub
+5
View File
@@ -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: