Package ratpack.dropwizard.metrics
Class GraphiteConfig
- java.lang.Object
- 
- ratpack.dropwizard.metrics.ReporterConfigSupport<T>
- 
- ratpack.dropwizard.metrics.ScheduledReporterConfigSupport<GraphiteConfig>
- 
- ratpack.dropwizard.metrics.GraphiteConfig
 
 
 
- 
 public class GraphiteConfig extends ScheduledReporterConfigSupport<GraphiteConfig> A Configuration implementation to setupGraphiteReporterinstances.
- 
- 
Constructor SummaryConstructors Constructor Description GraphiteConfig()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphiteConfigdurationUnit(TimeUnit durationUnit)Convert durations to the given time unit.TimeUnitgetDurationUnit()The state of duration conversion.StringgetPrefix()The state of the metric name prefix.TimeUnitgetRateUnit()The state of rate conversion.com.codahale.metrics.graphite.GraphiteSendergetSender()TheGraphiteSenderinstance.GraphiteConfigprefix(String prefix)Prefix all metric names with the given string.GraphiteConfigrateUnit(TimeUnit rateUnit)Convert rates to the given time unit.GraphiteConfigsender(com.codahale.metrics.graphite.GraphiteSender sender)Configure theGraphiteSenderinstance.- 
Methods inherited from class ratpack.dropwizard.metrics.ScheduledReporterConfigSupportgetReporterInterval, reporterInterval
 - 
Methods inherited from class ratpack.dropwizard.metrics.ReporterConfigSupportenable, excludeFilter, getExcludeFilter, getIncludeFilter, includeFilter, isEnabled
 
- 
 
- 
- 
- 
Method Detail- 
getSenderpublic com.codahale.metrics.graphite.GraphiteSender getSender() TheGraphiteSenderinstance.- Returns:
- the Graphite report sender
 
 - 
senderpublic GraphiteConfig sender(com.codahale.metrics.graphite.GraphiteSender sender) Configure theGraphiteSenderinstance.- Parameters:
- sender- the report sender
- Returns:
- this
 
 - 
getPrefixpublic String getPrefix() The state of the metric name prefix.- Returns:
- the metric prefix value
 
 - 
prefixpublic GraphiteConfig prefix(String prefix) Prefix all metric names with the given string.- Parameters:
- prefix- the prefix for all metric names
- Returns:
- this
 
 - 
getRateUnitpublic TimeUnit getRateUnit() The state of rate conversion.- Returns:
- the rate conversion unit
 
 - 
rateUnitpublic GraphiteConfig rateUnit(TimeUnit rateUnit) Convert rates to the given time unit.- Parameters:
- rateUnit- a unit of time
- Returns:
- this
 
 - 
getDurationUnitpublic TimeUnit getDurationUnit() The state of duration conversion.- Returns:
- the duration conversion unit
 
 - 
durationUnitpublic GraphiteConfig durationUnit(TimeUnit durationUnit) Convert durations to the given time unit.- Parameters:
- durationUnit- a unit of time
- Returns:
- this
 
 
- 
 
-