
org.kairosdb.metrics4j.reporting.ReportedMetric Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of metrics4j Show documentation
Show all versions of metrics4j Show documentation
Java library for reporting metrics to any timeseries database.
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