Package io.dropwizard.metrics.common
Class ConsoleReporterFactory
java.lang.Object
io.dropwizard.metrics.common.BaseReporterFactory
io.dropwizard.metrics.common.BaseFormattedReporterFactory
io.dropwizard.metrics.common.ConsoleReporterFactory
- All Implemented Interfaces:
io.dropwizard.jackson.Discoverable,ReporterFactory
A factory for configuring and building
ConsoleReporter instances.
Configuration Parameters:
| Name | Default | Description |
| timeZone | UTC | The timezone to display dates/times for. |
| output | stdout | The stream to write to. One of stdout or stderr. |
See BaseFormattedReporterFactory for more options. |
||
See BaseReporterFactory for more options. |
||
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.codahale.metrics.ScheduledReporterbuild(com.codahale.metrics.MetricRegistry registry) Configures and builds aScheduledReporterinstance for the given registry.voidvoidsetTimeZone(TimeZone timeZone) Methods inherited from class io.dropwizard.metrics.common.BaseFormattedReporterFactory
getLocale, setLocaleMethods inherited from class io.dropwizard.metrics.common.BaseReporterFactory
getDisabledAttributes, getDurationUnit, getExcludes, getExcludesAttributes, getFilter, getFrequency, getIncludes, getIncludesAttributes, getRateUnit, getUseRegexFilters, getUseSubstringMatching, setDurationUnit, setExcludes, setExcludesAttributes, setFrequency, setIncludes, setIncludesAttributes, setRateUnit, setUseRegexFilters, setUseSubstringMatching
-
Constructor Details
-
ConsoleReporterFactory
public ConsoleReporterFactory()
-
-
Method Details
-
getTimeZone
-
setTimeZone
-
getOutput
-
setOutput
-
build
public com.codahale.metrics.ScheduledReporter build(com.codahale.metrics.MetricRegistry registry) Description copied from interface:ReporterFactoryConfigures and builds aScheduledReporterinstance for the given registry.- Parameters:
registry- the metrics registry to report metrics from.- Returns:
- a reporter configured for the given metrics registry.
-