Require validation for uint64 as well as int64
This commit is contained in:
		
							parent
							
								
									e442d754d0
								
							
						
					
					
						commit
						2364595697
					
				|  | @ -107,6 +107,17 @@ func (a *Accumulator) HasIntValue(measurement string) bool { | |||
| 	return false | ||||
| } | ||||
| 
 | ||||
| func (a *Accumulator) HasUIntValue(measurement string) bool { | ||||
| 	for _, p := range a.Points { | ||||
| 		if p.Measurement == measurement { | ||||
| 			_, ok := p.Values["value"].(uint64) | ||||
| 			return ok | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
| 	return false | ||||
| } | ||||
| 
 | ||||
| func (a *Accumulator) HasFloatValue(measurement string) bool { | ||||
| 	for _, p := range a.Points { | ||||
| 		if p.Measurement == measurement { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue