com.netflix.servo.stats
Class StatsConfig

java.lang.Object
  extended by com.netflix.servo.stats.StatsConfig

public final class StatsConfig
extends java.lang.Object

Configuration options for a StatsTimer

By default we publish count (number of times the timer was executed), totalTime, and 95.0, and 99.0 percentiles.

The size for the buffer used to store samples is controlled using the sampleSize field, and the frequency at which stats are computed is controlled with the computeFrequencyMillis option. By default these are set to 100,000 entries in the buffer, and computation at 60,000 ms (1 minute) intervals.


Nested Class Summary
static class StatsConfig.Builder
          Builder for StatsConfig.
 
Constructor Summary
StatsConfig(StatsConfig.Builder builder)
          Creates a new configuration object for stats gathering.
 
Method Summary
 boolean equals(java.lang.Object o)
          
 long getFrequencyMillis()
          Get the frequency at which we should update all stats.
 double[] getPercentiles()
          Get a copy of the array that holds which percentiles we should compute.
 boolean getPublishCount()
          Whether we should publish a 'count' statistic.
 boolean getPublishMax()
          Whether we should publish a 'max' statistic.
 boolean getPublishMean()
          Whether we should publish an 'avg' statistic.
 boolean getPublishMin()
          Whether we should publish a 'min' statistic.
 boolean getPublishStdDev()
          Whether we should publish a 'stdDev' statistic.
 boolean getPublishTotal()
          Whether we should publish a 'totalTime' statistic.
 boolean getPublishVariance()
          Whether we should publish a 'variance' statistic.
 int getSampleSize()
          Get the size of the buffer that we should use.
 int hashCode()
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatsConfig

public StatsConfig(StatsConfig.Builder builder)
Creates a new configuration object for stats gathering.

Method Detail

getPublishCount

public boolean getPublishCount()
Whether we should publish a 'count' statistic.


getPublishTotal

public boolean getPublishTotal()
Whether we should publish a 'totalTime' statistic.


getPublishMin

public boolean getPublishMin()
Whether we should publish a 'min' statistic.


getPublishMax

public boolean getPublishMax()
Whether we should publish a 'max' statistic.


getPublishMean

public boolean getPublishMean()
Whether we should publish an 'avg' statistic.


getPublishVariance

public boolean getPublishVariance()
Whether we should publish a 'variance' statistic.


getPublishStdDev

public boolean getPublishStdDev()
Whether we should publish a 'stdDev' statistic.


getSampleSize

public int getSampleSize()
Get the size of the buffer that we should use.


getFrequencyMillis

public long getFrequencyMillis()
Get the frequency at which we should update all stats.


getPercentiles

public double[] getPercentiles()
Get a copy of the array that holds which percentiles we should compute. The percentiles are in the interval (0.0, 100.0)


toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object