public class CSVMetricsPlugin extends Object
| Constructor and Description |
|---|
CSVMetricsPlugin(org.slf4j.Logger logger,
com.codahale.metrics.MetricRegistry metricRegistry,
ScriptContext scriptContext) |
| Modifier and Type | Method and Description |
|---|---|
CSVMetrics |
log(String filename)
Create a new CSV metrics logger, without starting it.
|
CSVMetrics |
start(String filename,
long period,
String timeUnit,
String... pattern)
Create a new CSV metrics logger, configure it with a regex filter pattern, and start it.
|
public CSVMetricsPlugin(org.slf4j.Logger logger,
com.codahale.metrics.MetricRegistry metricRegistry,
ScriptContext scriptContext)
public CSVMetrics log(String filename)
filename - The file to write CSV metrics data topublic CSVMetrics start(String filename, long period, String timeUnit, String... pattern)
filename - the file to write CSV metrics data toperiod - The time period to write attimeUnit - A time unit for the time period, from NANOSECONDS, MICROSECONDS, MILLISECONDS, SECONDS, MINUTESpattern - Zero or more patterns to use for filtering metric namesCopyright © 2018. All rights reserved.