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

org.metricssampler.sampler.Sampler Maven / Gradle / Ivy

The newest version!
package org.metricssampler.sampler;

import org.metricssampler.config.SamplerConfig;

import java.util.Set;

/**
 * An active component which fetches metrics from a configured input, selects and transforms them and sends them to a configured list of outputs.
 */
public interface Sampler {
	/**
	 * fetch metrics from the input, select appropriate metrics, transform them and send them to the list of outputs. 
	 */
	void sample();
	
	/**
	 * @return fetch metrics and return {@code true} if all selectors match at least one metric
	 */
	boolean check();

    Set metrics();

	SamplerConfig getConfig();
	
	void reset();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy