mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(monitor): fix alert record not return resource details
This commit is contained in:
@@ -40,6 +40,7 @@ var (
|
||||
"brand": "brand",
|
||||
"domain_id": "domain_id",
|
||||
"project_domain": "project_domain",
|
||||
"access_ip": "access_ip",
|
||||
}
|
||||
|
||||
RdsTags = map[string]string{
|
||||
|
||||
@@ -509,7 +509,7 @@ func (c *QueryCondition) checkGroupByField() {
|
||||
}
|
||||
|
||||
func (c *QueryCondition) setResType() {
|
||||
var resType = ""
|
||||
var resType = monitor.METRIC_RES_TYPE_HOST
|
||||
if len(c.Query.Model.GroupBy) == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user