//go:generate stringer -type=MetricType
generate stringer -type=MetricType
// go : generate stringer - type = MetricType
func (m MetricType) isCompatibleInt(val int) bool {
	v := int64(val)
	switch m {
	case Int32Type:
		return v >= math.MinInt32 && v <= math.MaxInt32
	case Int64Type:
		return true
	case Uint32Type:
		return v >= 0 && v <= math.MaxUint32
	case Uint64Type:
		return v >= 0
	}
	return false
}
func ( m MetricType ) isCompatibleInt ( val int ) bool { v := int64 ( val ) switch m { case Int32Type : return v >= math . MinInt32 && v <= math . MaxInt32 case Int64Type : return true case Uint32Type : return v >= 0 && v <= math . MaxUint32 case Uint64Type : return v >= 0 } return false }
generate stringer -type=MetricType
generate stringer - type = MetricType