class MetricMapper {

	static Point map(MeasurementInfo info, Instant timestamp, Gauge<?> gauge) {
		Point.Builder builder = builder(info, timestamp);
		Object value = gauge.getValue();
		if (value instanceof Number) {
			builder.addField("value", (Number) value);
		} else {
			builder.addField("value", String.valueOf(value));
		}
		return builder.build();
	}

}