All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.savantly.graphite.impl.SimpleCarbonMetric Maven / Gradle / Ivy

The newest version!
package net.savantly.graphite.impl;

import net.savantly.graphite.CarbonMetric;

public class SimpleCarbonMetric implements CarbonMetric {
	
	String metricName;
	String value;
	long epoch;
	

	/**
	 * @param metricName
	 * @param value
	 * @param epoch
	 */
	public SimpleCarbonMetric(String metricName, String value, long epoch) {
		this.metricName = metricName;
		this.value = value;
		this.epoch = epoch;
	}

	@Override
	public String getMetricName() {
		return metricName;
	}

	@Override
	public String getValue() {
		return value;
	}

	@Override
	public long getEpoch() {
		return epoch;
	}

	@Override
	public String toString() {
		return "SimpleCarbonMetric [metricName=" + metricName + ", value=" + value + ", epoch=" + epoch + "]";
	}

	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy