com.netflix.servo.monitor
Class BucketConfig

java.lang.Object
  extended by com.netflix.servo.monitor.BucketConfig

public final class BucketConfig
extends java.lang.Object

Configuration options for a BucketTimer

By default we publish count (number of times the timer was executed), totalTime, and the counts and times for the following buckets: 0ms, 100ms, 200ms, 500ms 1000ms 2000ms, 3000ms, 5000ms


Nested Class Summary
static class BucketConfig.Builder
           
 
Method Summary
 boolean equals(java.lang.Object o)
          
 long[] getBuckets()
          Get a copy of the array that holds the bucket values.
 java.util.concurrent.TimeUnit getTimeUnit()
          Get the TimeUnit of the buckets.
 java.lang.String getTimeUnitAbbreviation()
          Returns an abbreviation for the Bucket's TimeUnit.
 int hashCode()
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getTimeUnit

public java.util.concurrent.TimeUnit getTimeUnit()
Get the TimeUnit of the buckets.


getTimeUnitAbbreviation

public java.lang.String getTimeUnitAbbreviation()
Returns an abbreviation for the Bucket's TimeUnit.


getBuckets

public long[] getBuckets()
Get a copy of the array that holds the bucket values.


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