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

com.wavefront.internal.reporter.Reporter Maven / Gradle / Ivy

The newest version!
package com.wavefront.internal.reporter;

import java.util.concurrent.TimeUnit;

/**
 * A reporter to report metrics/histograms to periodically Wavefront
 *
 * @author Sushant Dewan ([email protected]).
 */
public interface Reporter {
  /**
   * Start Wavefront Internal Reporter
   *
   * @param period    How often you want to send metrics/histograms to Wavefront
   * @param unit      period time unit
   */
  void start(long period, TimeUnit unit);

  /**
   * Get total failure count reported by this reporter
   *
   * @return total failure count
   */
  int getFailureCount();

  /**
   * Stop the Wavefront Internal Reporter
   */
  void stop();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy