Package ratpack.dropwizard.metrics
Class CsvConfig
- java.lang.Object
-
- ratpack.dropwizard.metrics.ReporterConfigSupport<T>
-
- ratpack.dropwizard.metrics.ScheduledReporterConfigSupport<CsvConfig>
-
- ratpack.dropwizard.metrics.CsvConfig
-
public class CsvConfig extends ScheduledReporterConfigSupport<CsvConfig>
-
-
Constructor Summary
Constructors Constructor Description CsvConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CsvConfig
enable(boolean enabled)
Set the state of the CSV publisher.java.io.File
getReportDirectory()
The directory to output CSV metrics reports to.boolean
isEnabled()
The state of the CSV publisher.CsvConfig
reportDirectory(java.io.File reportDirectory)
Configure the output directory for csv metrics reports.-
Methods inherited from class ratpack.dropwizard.metrics.ScheduledReporterConfigSupport
getReporterInterval, reporterInterval
-
Methods inherited from class ratpack.dropwizard.metrics.ReporterConfigSupport
excludeFilter, getExcludeFilter, getIncludeFilter, includeFilter
-
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
The state of the CSV publisher.- Returns:
- the state of the CSV publisher
-
enable
public CsvConfig enable(boolean enabled)
Set the state of the CSV publisher.- Parameters:
enabled
- True if metrics are published to CSV. False otherwise- Returns:
- this
-
getReportDirectory
public java.io.File getReportDirectory()
The directory to output CSV metrics reports to.- Returns:
- the output directory
-
reportDirectory
public CsvConfig reportDirectory(java.io.File reportDirectory)
Configure the output directory for csv metrics reports.- Parameters:
reportDirectory
- The directory to place csv metrics reports- Returns:
- this
-
-