|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.servo.stats.StatsConfig
public final class StatsConfig
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 |
|---|
public StatsConfig(StatsConfig.Builder builder)
| Method Detail |
|---|
public boolean getPublishCount()
public boolean getPublishTotal()
public boolean getPublishMin()
public boolean getPublishMax()
public boolean getPublishMean()
public boolean getPublishVariance()
public boolean getPublishStdDev()
public int getSampleSize()
public long getFrequencyMillis()
public double[] getPercentiles()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||