Package com.trib3.server.config.dropwizard

Types

Link copied to clipboard
class CloudWatchReporterFactory(val appConfig: TribeApplicationConfig, val cloudwatch: CloudWatchAsyncClient) : BaseReporterFactory

BaseReporterFactory that creates a CloudWatchReporter based on the dropwizard configuration.

Link copied to clipboard
class FilteredLogbackAccessRequestLogFactory : LogbackAccessRequestLogFactory

Configure the requestLog to skip logging of fast, OK ping responses to avoid cluttering the logs with, eg, ELB health check requests. Also set the requestLog layout pattern to include timestamp and requestId prefix.

Link copied to clipboard
class HoconConfigurationFactory<T>(    val klass: Class<T>,     val validator: Validator,     mapperArg: ObjectMapper,     val configLoader: ConfigLoader) : ConfigurationFactory<T>

A ConfigurationFactory that returns config instantiated by parsing hocon from application.conf

Link copied to clipboard
class HoconConfigurationFactoryFactory<T> @Inject constructor(val configLoader: ConfigLoader) : ConfigurationFactoryFactory<T>

Bootstrap hook to allow dropwizard config to be provided by a HoconConfigurationFactory

Link copied to clipboard
class RequestIdLogbackAccessRequestLayout(context: LoggerContext, timeZone: TimeZone) : LogbackAccessRequestLayout

LogbackAccessRequestLayout that also includes the request Id read from the response headers, and timestamp in the same layout we use for the regular application log.

class RequestIdLogbackAccessRequestLayoutFactory : LayoutFactory<IAccessEvent>

Layout factory that returns a RequestIdLogbackAccessRequestLayout

Link copied to clipboard
class TimestreamReporterFactory(val appConfig: TribeApplicationConfig, val timestreamWriteClient: TimestreamWriteClient) : BaseReporterFactory

BaseReporterFactory that creates a TimestreamReporter based on the dropwizard configuration.

Properties

Link copied to clipboard
private const val FAST_RESPONSE_TIME: Int = 200