datadog-accessors.go
func (p *Period) HasUnit() bool {
	if p != nil && p.Unit != nil {
		return true
	}

	return false
}
func (p *Period) HasUnit() bool {
	if p != nil && p.Unit != nil {
		return true
	}

	return false
}
func ( p * Period ) HasUnit ( ) bool { if p != nil && p . Unit != nil { return true } return false }
// HasUnit returns a boolean if a field has been set.
HasUnit returns a boolean if a field has been set .