
com.librato.metrics.Measurement Maven / Gradle / Ivy
package com.librato.metrics;
import java.util.Map;
/**
* Represents a Librato measurement
*/
public interface Measurement {
/**
* @return the (unix) timestamp of the measure. Optional, null returned if no specific time
* is present. Instead the measure time will be taken from the top level of the POST
* payload to Librato
*/
Long getMeasureTime();
/**
* @return the source of the measurement
*/
String getSource();
/**
* @return the name of the measurement
*/
String getName();
/**
* @return the period of the measurement
*/
Number getPeriod();
/**
* @return a map of metric names to numbers
*/
Map toMap();
/**
* @return the metric attributes that should be applied to this metric when created
*/
Map getMetricAttributes();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy