|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.servo.publish.BaseMetricObserver
com.netflix.servo.publish.FileMetricObserver
public final class FileMetricObserver
Writes observations to a file. The format is a basic text file with tabs separating the fields.
| Constructor Summary | |
|---|---|
FileMetricObserver(java.lang.String name,
java.io.File dir)
Creates a new instance that stores files in dir with a prefix of
name and a suffix of a timestamp in the format
yyyy_dd_MM_HH_mm_ss_SSS. |
|
FileMetricObserver(java.lang.String name,
java.io.File dir,
boolean compress)
Creates a new instance that stores files in dir with a prefix of
name and a suffix of a timestamp in the format
yyyy_dd_MM_HH_mm_ss_SSS. |
|
FileMetricObserver(java.lang.String name,
java.lang.String namePattern,
java.io.File dir,
boolean compress)
Creates a new instance that stores files in dir with a name that
is created using namePattern. |
|
| Method Summary | |
|---|---|
void |
updateImpl(java.util.List<Metric> metrics)
Update method that should be defined by sub-classes. |
| Methods inherited from class com.netflix.servo.publish.BaseMetricObserver |
|---|
getFailedUpdateCount, getName, getUpdateCount, incrementFailedCount, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileMetricObserver(java.lang.String name,
java.io.File dir)
dir with a prefix of
name and a suffix of a timestamp in the format
yyyy_dd_MM_HH_mm_ss_SSS.
name - name to use as a prefix on filesdir - directory where observations will be stored
public FileMetricObserver(java.lang.String name,
java.io.File dir,
boolean compress)
dir with a prefix of
name and a suffix of a timestamp in the format
yyyy_dd_MM_HH_mm_ss_SSS.
name - name to use as a prefix on filesdir - directory where observations will be storedcompress - whether to compress our output
public FileMetricObserver(java.lang.String name,
java.lang.String namePattern,
java.io.File dir,
boolean compress)
dir with a name that
is created using namePattern.
name - name of the observernamePattern - date format pattern used to create the file namesdir - directory where observations will be storedcompress - whether to compress our output| Method Detail |
|---|
public void updateImpl(java.util.List<Metric> metrics)
updateImpl in class BaseMetricObserver
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||