GoogleCloudMonitoring: Refactor types (#58644)

This commit is contained in:
Andres Martinez Gotor
2022-11-28 09:17:01 +01:00
committed by GitHub
parent 16af756d50
commit 64143ea7d0
8 changed files with 624 additions and 408 deletions
+7
View File
@@ -45,3 +45,10 @@ func addInterval(period string, field *data.Field) error {
}
return nil
}
func toString(v interface{}) string {
if v == nil {
return ""
}
return v.(string)
}