Class DefaultMetricsReporterConfig
java.lang.Object
org.eclipse.ditto.internal.utils.health.config.DefaultMetricsReporterConfig
- All Implemented Interfaces:
MetricsReporterConfig
@Immutable
public final class DefaultMetricsReporterConfig
extends Object
implements MetricsReporterConfig
This class is the default implementation of the health check persistence
metrics-reporter config.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.ditto.internal.utils.health.config.MetricsReporterConfig
MetricsReporterConfig.MetricsReporterConfigValue -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns how many historical items to keep.Returns the resolution how far apart each measurement should be done.inthashCode()static DefaultMetricsReporterConfigof(com.typesafe.config.Config config) Returns an instance ofDefaultMetricsReporterConfigbased on the settings of the specified Config.toString()
-
Method Details
-
of
Returns an instance ofDefaultMetricsReporterConfigbased on the settings of the specified Config.- Parameters:
config- is supposed to provide the settings of the persistence config at "metrics-reporter".- Returns:
- the instance.
- Throws:
DittoConfigError- ifconfigis invalid.
-
getResolution
Description copied from interface:MetricsReporterConfigReturns the resolution how far apart each measurement should be done.- Specified by:
getResolutionin interfaceMetricsReporterConfig- Returns:
- the resolution how far apart each measurement should be done.
-
getHistory
public int getHistory()Description copied from interface:MetricsReporterConfigReturns how many historical items to keep.- Specified by:
getHistoryin interfaceMetricsReporterConfig- Returns:
- how many historical items to keep.
-
equals
-
hashCode
public int hashCode() -
toString
-