GoogleCloudMonitoring: Refactor types (#58644)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user