fix(cloudmon): remove cloudmon metadata tag

This commit is contained in:
ioito
2022-09-28 18:14:07 +08:00
parent 59fd4f61be
commit 48436a7d3c
7 changed files with 0 additions and 42 deletions
-6
View File
@@ -16,7 +16,6 @@ package compute
import (
"net/http"
"strings"
"yunion.io/x/pkg/errors"
"yunion.io/x/pkg/util/regutils"
@@ -79,11 +78,6 @@ func (self BucketDetails) GetMetricTags() map[string]string {
"tenant": self.Project,
"tenant_id": self.ProjectId,
}
for k, v := range self.Metadata {
if strings.HasPrefix(k, apis.USER_TAG_PREFIX) {
ret[k] = v
}
}
return ret
}
-6
View File
@@ -17,7 +17,6 @@ package compute
import (
"fmt"
"reflect"
"strings"
"yunion.io/x/jsonutils"
"yunion.io/x/pkg/gotypes"
@@ -328,11 +327,6 @@ func (self CloudaccountDetail) GetMetricTags() map[string]string {
"domain_id": self.DomainId,
"project_domain": self.ProjectDomain,
}
for k, v := range self.Metadata {
if strings.HasPrefix(k, apis.USER_TAG_PREFIX) {
ret[k] = v
}
}
return ret
}
-5
View File
@@ -344,11 +344,6 @@ func (self DBInstanceDetails) GetMetricTags() map[string]string {
if len(self.IpAddrs) > 0 {
ret["rds_ip"] = strings.ReplaceAll(self.IpAddrs, ",", "|")
}
for k, v := range self.Metadata {
if strings.HasPrefix(k, apis.USER_TAG_PREFIX) {
ret[k] = v
}
}
return ret
}
-6
View File
@@ -15,7 +15,6 @@
package compute
import (
"strings"
"time"
"yunion.io/x/onecloud/pkg/apis"
@@ -57,11 +56,6 @@ func (self ElasticcacheDetails) GetMetricTags() map[string]string {
"domain_id": self.DomainId,
"project_domain": self.ProjectDomain,
}
for k, v := range self.Metadata {
if strings.HasPrefix(k, apis.USER_TAG_PREFIX) {
ret[k] = v
}
}
return ret
}
-6
View File
@@ -16,7 +16,6 @@ package compute
import (
"fmt"
"strings"
"time"
"yunion.io/x/jsonutils"
@@ -288,11 +287,6 @@ func (self ServerDetails) GetMetricTags() map[string]string {
"account": self.Account,
"account_id": self.AccountId,
}
for k, v := range self.Metadata {
if strings.HasPrefix(k, apis.USER_TAG_PREFIX) {
ret[k] = v
}
}
return ret
}
-7
View File
@@ -15,8 +15,6 @@
package compute
import (
"strings"
"yunion.io/x/jsonutils"
"yunion.io/x/onecloud/pkg/apis"
@@ -250,11 +248,6 @@ func (self HostDetails) GetMetricTags() map[string]string {
"res_type": "host",
"account_id": self.AccountId,
}
for k, v := range self.Metadata {
if strings.HasPrefix(k, apis.USER_TAG_PREFIX) {
ret[k] = v
}
}
return ret
}
-6
View File
@@ -16,7 +16,6 @@ package compute
import (
"strconv"
"strings"
"yunion.io/x/jsonutils"
@@ -159,11 +158,6 @@ func (self StorageDetails) GetMetricTags() map[string]string {
"domain_id": self.DomainId,
"project_domain": self.ProjectDomain,
}
for k, v := range self.Metadata {
if strings.HasPrefix(k, apis.USER_TAG_PREFIX) {
ret[k] = v
}
}
return ret
}