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

org.kairosdb.metrics4j.reporting.ReportedMetric Maven / Gradle / Ivy

The newest version!
package org.kairosdb.metrics4j.reporting;

import java.time.Instant;
import java.util.List;
import java.util.Map;

public interface ReportedMetric
{
	String getClassName();

	String getMethodName();

	Map getTags();

	List getSamples();

	Map getContext();


	interface Sample
	{
		String getFieldName();

		MetricValue getValue();

		Instant getTime();

		Sample setTime(Instant time);

		/**
		 Sets context for this sample.  The object set is determined
		 by the type of metric that is being reported.  See ReportingContext
		 * @param obj Context to set
		 * @return This reference
		 */
		Sample setSampleContext(Object obj);

		Object getSampleContext();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy