Files
i2p.i2p/apps/jrobin/java/src/org/rrd4j/data/IPlottable.java
T
2024-01-27 12:23:26 +00:00

21 lines
655 B
Java

package org.rrd4j.data;
/**
* Interface to be used for custom datasources.
*
* <p>If you wish to use a custom datasource in a graph, you should create a class implementing this interface
* that represents that datasource, and then pass this class on to the RrdGraphDef.</p>
* @since 3.7
*/
@FunctionalInterface
public interface IPlottable {
/**
* Retrieves datapoint value based on a given timestamp.
* Use this method if you only have one series of data in this class.
*
* @param timestamp Timestamp in seconds for the datapoint.
* @return Double value of the datapoint.
*/
double getValue(long timestamp);
}