@Stability(value=Stable) public static final class GelfLogDriver.Builder extends Object implements software.amazon.jsii.Builder<GelfLogDriver>
GelfLogDriver
.Modifier and Type | Method and Description |
---|---|
GelfLogDriver.Builder |
address(String address)
The address of the GELF server.
|
GelfLogDriver |
build() |
GelfLogDriver.Builder |
compressionLevel(Number compressionLevel)
UDP Only The level of compression when gzip or zlib is the gelf-compression-type.
|
GelfLogDriver.Builder |
compressionType(GelfCompressionType compressionType)
UDP Only The type of compression the GELF driver uses to compress each log message.
|
static GelfLogDriver.Builder |
create() |
GelfLogDriver.Builder |
env(List<String> env)
The env option takes an array of keys.
|
GelfLogDriver.Builder |
envRegex(String envRegex)
The env-regex option is similar to and compatible with env.
|
GelfLogDriver.Builder |
labels(List<String> labels)
The labels option takes an array of keys.
|
GelfLogDriver.Builder |
tag(String tag)
By default, Docker uses the first 12 characters of the container ID to tag log messages.
|
GelfLogDriver.Builder |
tcpMaxReconnect(Number tcpMaxReconnect)
TCP Only The maximum number of reconnection attempts when the connection drop.
|
GelfLogDriver.Builder |
tcpReconnectDelay(Duration tcpReconnectDelay)
TCP Only The number of seconds to wait between reconnection attempts.
|
@Stability(value=Stable) public static GelfLogDriver.Builder create()
GelfLogDriver.Builder
.@Stability(value=Stable) public GelfLogDriver.Builder env(List<String> env)
If there is collision between label and env keys, the value of the env takes precedence. Adds additional fields to the extra attributes of a logging message.
Default: - No env
env
- The env option takes an array of keys. This parameter is required.this
@Stability(value=Stable) public GelfLogDriver.Builder envRegex(String envRegex)
Its value is a regular expression to match logging-related environment variables. It is used for advanced log tag options.
Default: - No envRegex
envRegex
- The env-regex option is similar to and compatible with env. This parameter is required.this
@Stability(value=Stable) public GelfLogDriver.Builder labels(List<String> labels)
If there is collision between label and env keys, the value of the env takes precedence. Adds additional fields to the extra attributes of a logging message.
Default: - No labels
labels
- The labels option takes an array of keys. This parameter is required.this
@Stability(value=Stable) public GelfLogDriver.Builder tag(String tag)
Refer to the log tag option documentation for customizing the log tag format.
Default: - The first 12 characters of the container ID
tag
- By default, Docker uses the first 12 characters of the container ID to tag log messages. This parameter is required.this
@Stability(value=Stable) public GelfLogDriver.Builder address(String address)
tcp and udp are the only supported URI specifier and you must specify the port.
address
- The address of the GELF server. This parameter is required.this
@Stability(value=Stable) public GelfLogDriver.Builder compressionLevel(Number compressionLevel)
An integer in the range of -1 to 9 (BestCompression). Higher levels provide more compression at lower speed. Either -1 or 0 disables compression.
Default: - 1
compressionLevel
- UDP Only The level of compression when gzip or zlib is the gelf-compression-type. This parameter is required.this
@Stability(value=Stable) public GelfLogDriver.Builder compressionType(GelfCompressionType compressionType)
Allowed values are gzip, zlib and none.
Default: - gzip
compressionType
- UDP Only The type of compression the GELF driver uses to compress each log message. This parameter is required.this
@Stability(value=Stable) public GelfLogDriver.Builder tcpMaxReconnect(Number tcpMaxReconnect)
A positive integer.
Default: - 3
tcpMaxReconnect
- TCP Only The maximum number of reconnection attempts when the connection drop. This parameter is required.this
@Stability(value=Stable) public GelfLogDriver.Builder tcpReconnectDelay(Duration tcpReconnectDelay)
A positive integer.
Default: - 1
tcpReconnectDelay
- TCP Only The number of seconds to wait between reconnection attempts. This parameter is required.this
@Stability(value=Stable) public GelfLogDriver build()
build
in interface software.amazon.jsii.Builder<GelfLogDriver>
Copyright © 2021. All rights reserved.